Convert Spatial into Google Earth KML - ORA06512

Hi!
Theres my procedure:
create or replace procedure generateKmlPoints
is
y number;
begin
y:=1;
owa_util.mime_header('application/vnd.google-earth.kml+xml', true, 'ISO-8859-1');
htp.p('<?xml version="1.0" encoding="UTF-8"?>
             <kml xmlns="http://earth.google.com/kml/2.0">
                <Document>
                  <description>Cities</description>
                <Folder>');
for x in (select initcap(a.ort) name, a.geo_location.sdo_point.x lon, a.geo_location.sdo_point.y lat from e_30019 a
    where a.dbk = '301920010110165415550001' )
loop
htp.p('<Placemark>');
  htp.p('<name>'||x.name||'</name>');
  htp.p('<Point>');
    htp.p('<coordinates>'||x.lon||','||x.lat||', 0</coordinates>');
  htp.p('</Point>');
  htp.p('</Placemark>');
end loop;
htp.p('</Folder></Document></kml>');
end;Error Message:
SQL> execute generateKmlPoints
BEGIN generateKmlPoints; END;
FEHLER in Zeile 1:
ORA-06502: PL/SQL: numerischer oder Wertefehler: Schl³sselwert NULL auf
Indextabelle
ORA-06512: in "SYS.HTP", Zeile 1536
ORA-06512: in "SYS.HTP", Zeile 1714
ORA-06512: in "NAVTEQ.GENERATEKMLPOINTS", Zeile 9
ORA-06512: in Zeile 1
Message was edited by:
yoda

Now I tried another table, same error:
create or replace procedure TestKml
is
y number;
begin
y:=1;
owa_util.mime_header('application/vnd.google-earth.kml+xml', true, 'ISO-8859-1');
htp.p('<?xml version="1.0" encoding="UTF-8"?>
             <kml xmlns="http://earth.google.com/kml/2.0">
                <Document>
                  <description>Cities</description>
                <Folder>');
for x in (select initcap(a.poi_name) name, a.geom.sdo_point.x lon, a.geom.sdo_point.y lat from p_hospital a
    where a.geom.get_gtype()=1 )
loop
htp.p('<Placemark>');
  htp.p('<name>'||x.name||'</name>');
  htp.p('<Point>');
    htp.p('<coordinates>'||x.lon||','||x.lat||', 0</coordinates>');
  htp.p('</Point>');
  htp.p('</Placemark>');
end loop;
htp.p('</Folder></Document></kml>');
end;

Similar Messages

  • Is it possible to import and display/plot (Google Earth) KML files as overlays in Mac OS 10.9 Maps application?

    Is it possible to import and display/plot (Google Earth) KVM files as overlays in Mac OS 10.9 Maps application?
    Here is the particular application: (note I haven't gotten the code to compile yet -- seems to be several differently named environment variables in Mac unix than in Linux that are making the compile blow up -- but that's another issue) there is a freeware application that can do radio path loss prediction and plot path loss contours on a map. It has an option to output the data as KML files which can be imported into Google Earth, in order to display the path loss contours on Google Earth maps. I guess you could liken it to displaying overlays of GIS-like data in Google Earth. I would like to know if there is a mechanism to facilitate importing KML data files to overlay (preferably in a translucent fasion so that you could see the underlying map) onto Mac OS 10.9 Maps?

    varjak paw wrote:
    They're also known to patent things they never release. So while it indicates that they're investigating such things, a patent application is no guarantee that anything will ever come of it, much less be immanent. And that application was filed in 2012 and is really for something rather different.
    Regards.
    As I stated, "possibly."
    While the commerce side of it has little to do with the KML files, per se, the API for the layer data should allow for any type of overlay.
    Also, the patent was filed Dec 19, 2013. There was a related patent filed in 2012. Not sure what it is about.

  • Is it possible to create a google earth kml or kmz file with photos from aperture?

    It is possible to obtain a plugin for Lightroom that will create a single google earth file that includes all geo tagged photos on a track viewable in google earth.  Does anyone know if this is possible from within Aperture?

    Frank,
    Thanks for your quick post. My question involves the zipping up together a batch of geotagged photos along with the track, not necessarily the procedure for importing tracks; I am already familiar with that.  I would like to do this from within Aperture.  Since the first posting this morning I have downloaded Picasa for the Mac.  I know I can do what I want with that software.  Thanks again.
    Rob

  • Informational post - Apex and Google Earth

    Hi all -
    I've been rather busy and away from the forum for a while, so figured it was time to make my presence here again with maybe some useful information for others.
    My main app now has the capability to generate KML files (had this for a while now), but I also just added the capability to allow the users to create a polygon in Google Earth, copy the polygon definition into the database, query against the polygon, and then to export the polygon definition back out into another KML file for redisplay with other sites (points) that exist in the database.
    For a quick background, I have a database of mine sites around the world. Some sites are current, others are historical. Quite a few of the 'current' sites are huge open pit mines that wound up swallowing numerous smaller underground mines.
    Previously, we had no easy way to identify these smaller underground mines, but now the users can draw a polygon around the open pit mine, save it into the database, then query the database for everything (or any user-specified additional criteria) either within the open pit polygon and even within a specified distance from the polygon.
    They can then select the option to generate a KML file of the polygon and any records returned and re-plot the results back into Google Earth for further analysis.
    It's a multi-step process, but it is going to add a whole new level of capability to my database and application.
    My organization is licensed for Oracle Spatial, so I didn't pay attention to whether or not I was only using Locator or the full-blown Spatial features, and I hate java with a passion, so I avoided any of the free java-based options that would accomplish similar results. Google Earth is easy to use and free, so I don't have any headaches with web server setup and configuration or requiring the users to buy and install other software.
    I won't go into the full-blown details yet, unless people have some specific questions, as there turned out to be many different steps invlove in getting this configured (mainly coding). I've searched the forum, and didn't see any similar posts, so maybe this capability may give some of you some additional ideas of how to add a new level of functionality to your database and app.
    If there are any questions, ask away and I'll answer as best as I can.
    Bill Ferguson

    Thank you very much, Stanley!
    I have only been working on Apex for since 2006 (and a year of that time was to do Java work). It was the responses that I got on this forum when I first started that inspired me, so I'm happy to return the favour. It was certainly a pleasant change to come across a forum where you could actually get detailed answered.
    If there is one recommendation I could make to anyone it's: Get yourself an OTN workspace and then set aside some regular time and play. See what Apex can do or, sometimes, can't do. I have not been on any Apex courses (but that doesn't mean you shouldn't!!) so have learnt everything I know from the documentation, this forum, a few blogs and playing. Of course, sometimes I get it wrong, but I'll skip over that bit :D
    Best regards and happy Apexing (not sure that's a proper word yet, but it should be!)
    Andy

  • Link to Google Earth

    How can I can have a button in iWeb which when clicked takes me to a specific location of google earth (either within my site or a separate window)?
    Thanks

    I haven't the foggiest. This is the first I've heard of the Google Earth AVI. You're the first to mention it in these forums. It sounds like you have to sign up for a AVI account, give them the URL to the page you want to put it on and then add the code. But I didn't see where to get the code.
    It's API (not AVI): http://en.wikipedia.org/wiki/API.
    You sign up with google and they send you a hash key, then you have to work out the code with the API and add to your page using HTML Snippet.
    But you can keep it simple and go with google map (instead of google earth).
    I have a rough mashups system for my geotag system (see my home page), generate google earth KML, google map and then link back to iweb photos page.
    Sorry, I'm not posting any of that here (not just yet).

  • [SOLVED] google earth strange interface

    hello there. I'm actually using the google-earth version: 5.1.3509.4636-2
    I got a bar which I cannot remove. How can I solve this?
    Last edited by quarkup (2009-12-18 12:57:11)

    okay it is solved.
    using different theme for google earth than bespin solves the problem.
    just add in the Exec entry of the .desktop file the '-style oxygen' flag
    the file is located in /usr/share/applications/googleearth.desktop
    [Desktop Entry]
    Encoding=UTF-8
    Name=Google Earth
    GenericName=3D planet viewer
    Comment=Explore, search and discover the planet
    Exec=/usr/bin/googleearth -style oxygen %f
    Terminal=false
    MultipleArgs=false
    Type=Application
    Icon=/usr/share/pixmaps/googleearth-icon.png
    Categories=Application;Network
    MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole
    or change the google-earth launcher /usr/bin/googleearth
    and add the flag. should be something as simple as
    #!/bin/sh
    GOOGLEEARTH_DATA_PATH="/opt/google-earth"
    LD_LIBRARY_PATH=.:${GOOGLEEARTH_DATA_PATH}:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    cd "${GOOGLEEARTH_DATA_PATH}/"
    exec "./googleearth-bin" -style oxygen $*
    Last edited by quarkup (2009-12-18 13:25:35)

  • Connecting google earth to oracle

    Im working in a project that consist of projecting datas (with latitude and longitude) from oracle DB 10, into google earth; is it possiblei ? and haw?
    think you!

    Need more details...what exactly do you want to do? Pull coordinates from Oracle and pass them to Google Earth to be displayed?
    It seems reasonable that you could write a program that connects to a database, gets some coordinate data from the db, then launches Google Earth with the coordinates as parameters, and zooms in on that location....
    Seems reasonable, not sure if it's possible.....
    -Mark

  • Iweb, google maps/earth .kml or api

    i am trying to do is put a web album on my iweb website, i would like to have the photos shown in a google map such as using in a kml from google earth or maybe create it in "my maps" and embedding it in on my website. any ideas how i can do that or am i doomed to only be able to link it to another webpage not made with iweb? my friend has done so using wordpress for the and the site is http://www.aaron-and-erika.com
    he used a javascript which i tried to convert to a html snippet and failed horribly.

    I have seen a tutorial (Google Maps demo Custom Markers ) by Raymond Camden
    posted in the new issue of Appliness magazine  on the iPad and they got PDF version as well check it out. http://appliness.com/code/Appliness-10-Jan-2013.pdf
    Mohd

  • How to get KMZ (Google Earth) files into FCPX.

    What do I have to do to get Google Earth KMZ files into FCPX? Hopefully I can convert these files easily. I don't see any other file type options given by Google.
    Thank You,
    Craig

    One simple way would be to get Google Earth displaying its videos and then use QT Player's "New Screen Recording" facility.

  • How do you plot a path using a .kml file in an embedded google earth in Labview?

    Over the last few days I have been reading all the google earth and lv postings that I can find and I have downloaded a variety of vis and examples that people have posted. I haven't been able to find or figure out a way to display a .kml file that I am creating based on a path of lat and long values in an embedded google earth map in labview.  I was hoping to have the user select a portion of the path on a x,y lv graph and then use those cursor coordinates to create a kml file of the lat and long values of that selected path (I have already completed this portion of the code) and display that alongside in a google earth map.  All the examples I have found show how to display a point in the embedded GE map - does anyone know how to display a number of points along a path?
    Thanks so much!

    Hi,
    I have found an example thatprogramatically creates and modifies a .kml file with pushpin information:
    https://decibel.ni.com/content/docs/DOC-11225
    Regards,

  • Importing google earth into iMovie

    Is there a way to import the moving Google earth into iMovie?

    This is second hand knowledge so take it with a grain of salt.
    For professional or commercial use, you need a pro version (paid version) of Google Earth, and you can create this within Google Earth.
    For non-commercial, or home use, you can do this with the free version of Google Earth, but you will have to use a screen capture program to capture it. QuickTime Player X comes with your Mac and will capture the screen for you. There are many other screen capture programs as well, like Snaps Pro, etc.
    QuickTime Pro will save the screen capture as a quicktime file. You can import it into an iMovie Event using FILE/IMPORT MOVIE from within iMovie.
    There is a really interesting application of this. You can "zoom in" on a particular place in the world from outer space using Google Earth. This would be hard to do in iMovie, but it can be done in Final Cut Pro X and Motion.
    Here is a link. http://youtu.be/u3H5Ej9TMl8

  • Looking for assistance importing Google Earth into WCS

    The documentation for creating the CSV file for importing Google Earth coordinates into WCS is very vague. Can anyone provide some sort of a template or an example of their CSV file they succcessfully imported?

    I don't know of any, but is has been rumored that Google will be porting their turn-by-turn nav app to the iPhone.

  • KMZ (Google Earth) files on iWeb site

    I use MotionX GPS to record tracks of our trips.
    I then email the track to myself. This results in an attached KMZ file.
    Launching the file launches Google Earth and the track is nicely displayed with the start and finish pins at the top and bottom of the window.
    I would like to add the tracks to my iWeb blog, so that a visitor could select a track and GE would launch (in another window, if need be) and display the track.
    Does anyone (Old Toad maybe?) know how to do this in iWeb?
    Thanks, HNick

    OK. I think I got it so far. I got the GE plug-in (really the API, right?). Got my magic ID number (long). I now have GE in iWeb.
    there are two parts, the ifr part is web gadget and an api for embed kml link to the gadget.
    What I don't understand is how to get the KMZ files (one for each trip - 6 of them so far) into iWeb, so that they can be opened in GE.
    first, upload your kmz files to your web host.
    It looks like Cyclosaurus' example uses the track as part of the GE api - in my case that would be a separate instance (?) of GE for each track?
    that's correct, go to my GE example here: http://goo.gl/w307f
    copy the url (it's a long url) and paste it in text editor.
    search for &upkmlurl= , you'll see it points to my kmz file on my site, replace my url with an absolute url points to one of your kml file.
    also search for &title= and replace what after that with a title for your track.
    end product is your GE URL to view in a browser. - long url -
    back to your iweb project, add an html snippet; copy + paste the following:
    <iframe src="put your GE URL here - the long url " frameborder="0" style="width: 100%; height: 100%;" scrolling="no" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>
    in iweb this will display as google map because iweb does not have support for GE plug-in, this also is true for browser that does not support GE plug-in such as ie. that's the fall back mode.
    repeat the process for the other KMZ.

  • Working with WMV Google Earth Video

    Howdy.  I am attempting to integrate a Google Earth movie I recorded (WMV format) into my project and to put it lightly... it's not going well.  Not only is it unable to render the timeline in the project window when it gets to the wmv footage (just gets stuck while audio continues), but it takes an insanely long time to render... six hours for a 30 second clip.
    I took a shot at transcoding the clip using handbrake to mp4 but it crashed instantly when added to the premier timeline.
    Sorry for the ametuerish question.  As you can tell, I'm new at this.  Any help is much appreciated.

    Good news. AME is a good "converter" too, and is often overlooked. While it might not have the range of some dedicated conversion apps., when it can work with footage, it does a good job.
    Thanks for reporting your success!
    Good luck,
    Hunt

  • Prime Infrastructure - Google earth maps integration question

    Hello All,
    I am in doubt about a specific statement found in the P.I configuration guide:
    Adding an AP to Google Earth map without having the AP associated on a standard map, you do not see
    any heatmap when you view the AP in Google Earth.
    So, just to understand, its not just enough to import a kml with the access point information to P.I?
    IF not, then do i have just to add the access point in any standard map (could even be an irrelevant map to the actual kml map?)
    Can somebody please clarify and provide some tips?!!
    Thanks in advance

    The point is , the AP which is being added into google maps , should also be a part of any standard map. Standard Map will show the areas ( so that you can see and understand heat maps) , however, they don't actually give the presence of the area in global map ( in terms of geographical coordinates). Kml file is data of coordinates, it is not the actual MAP.

Maybe you are looking for