noob - is this possible with Oracle Locator?

Hello
I'm a DBA/PLSQL developer for a small project on a small database. We were recently asked if we could do the following, inside an Oracle PL/SQL procedure:

* Given a lat/lon, find the center closest to the population

I am brand new to Oracle Spatial and am scouring the Oracle Spatial information on the Oracle web site. I'm learning tons of new things... but I've not seen many examples of code or examples of applications. I understand that Oracle "Locator" is delivered with Oracle DB, so I already have this installed - so I can use it?

#1) can I search the name of city of lat/lon with Oracle Locator or do I have to tell my boss that we must concede the true Oracle Spatial?
(#2) someone at - it a simple PL/SQL procedure or something that can take a lat/lon and find the city nearest? Is this even possible, without loading a ton of additional information cards / superimposed and other things? I'm really confused as to what the Oracle Locator of out-of-the-box 'maps', or which include... the PDF Locator said it comes with a 'whole earth geometry model', but I don't know exactly what this means. I'm going to guess the name of the city might be there, but people in the city are not (?)

I have access to Metalink too, so feel free to point me to the Oracle documentation and other things, if there is.

Thanks for any help/tips

-Keith

I wanted to get back to you on this last week, but the site is down whenever I tried...

Out of the box, Oracle Locator does not come with any data. SDO_GEOMETRY is just another type of data, and Locator gives you the ability to index data SDO_GEOMETRY and run operators on data.

can I search the name of city of lat/lon with Oracle Locator or do I have to tell my boss that we must concede the true Oracle Spatial?

Absolutely, base location based applications run well on Locator and did not need the extra features of real Oracle Spatial.

Is this even possible, without loading a ton of additional information cards / superimposed and other things?

Well you need some data. If I asked you to write a stored procedure that takes a customer code and returns the details of the customer, you expect for there to be a Customers table somewhere. Similarly, you will need a table "Population Center" If you want to request, where is the nearest Population Center.

the Locator PDF says it comes with a «whole earth geometry model»

Is not referring to the data. Geometry whole earth model means that you can run queries that respects the fact that the Earth is not flat when calculating of distance/area etc.

#1) No, internal Oracle cards/data have no existing cities? I create my own table with name of city, population, lat/lon and a column of type SDO_GEOMETRY?

Fix. Out of the box, there is no spatial data. However, it is not that hards to get your hands on some, depending on where is your area of interest and specify how it should be.
Have a look here for examples of data:
http://www.Oracle.com/technetwork/database/options/spatial/spatial-partners-data-087203.html

(#2) can I use this type SDO_GEOMETRY and the other SDO types/packages/functions, to locate a closest city to a lat/lon data, using the Oracle Locator's free/included? I don't need parts extra-licence Oracle Spatial for this?

Yes. Have a look here to see what is in and out of the index of development:
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e11830/sdo_locator.htm#i632018

It is written on XE 10 g, but I can assume that this example also works on (10.2.0.5) 10g or 11g?

Yes the type of query, you're going to run probably work on the release of all the > 9.0.1.

Note that in Oracle Locator/Spatial, you need to store the data in longitude and latitude, and not the opposite... common mistake.

Here is a simple example of a stored procedure that returns to the city that is the point.

create or replace procedure get_city_by_lat_long(in_long in number, in_lat in number, out_cursor out sys_refCursor) is
begin
  open poutCursor for
     select id, name
  from cities
  where sdo_anyinteract(geometry,
     sdo_geometry(2001, 8307, sdo_point_type(in_long, in_lat, null), null, null)) = 'TRUE';

end get_city_by_lat_long;
/

Also... google for "Oracle Spatial tutorial Performing location benchmarking. The first result will take you to a great tutorial that covers a large part of what you are looking for.

John

Tags: Database

Similar Questions

  • I have a Mac Book Pro with a CD/DVD drive.  I want to copy a home made DVD.  Is this possible with iMovie or another application?

    I have a Mac Book Pro with a CD/DVD drive.  I want to copy a home made DVD.  Is this possible with iMovie or another application?

    Look for the hand brake.

    It is a free application which can convert your DVD to QuickTime formats.

  • Is this possible with the 6 having touch 3D iPhone

    Is this possible with the 6 having touch 3D iPhone

    Is there anyone to answer my question pl

  • How to pass a pci device to vm? is this possible with the merger?

    I'd like spend peripheral scary pci directly to a virtual machine. is this possible with the merger?

    as long as im asking a pony on a mac with intel and nvidia graphics, is possible to map nvidia to a virtual machine and let the host with intel one? If Yes, is it possible for a virtual machine running os x?

    Hello

    No, you can't.

    The only VMware product that can pass through the PCIe card is vSphere.

    vSphere work on some apple hardware, but it is a bare metal hypervisor, you cannot use OS X on the machine itself locally then (only remote via another computer that connects to the server for vSphere)

    --
    Wil

  • I need a culture customized for my site, I work with a minority language, and I need to have calendar dates in this language. Is this possible with a widget in Muse?

    I wonder if there is no way to do a culture customized for my site hosted with BC's domain? I work with a minority language, and I need to have calendar dates in this language.

    Is this possible with a widget in Muse? -to change my language in this particular calendar, t.i.: may is in my language, and Monday is my language

    This stuff is usually coded in the underlying JavaScript widget, derived from locale hard your computer or browser / language setting or gleaned from the respective server configuration information, so most likely, it can not be done, if not already covered by one of these methods. Hacking jQuery would of course always possible, but the other options are beyond your control, anyway.

    Mylenium

  • Is this possible with ExtendScript?

    Hello, just a quick question, is a dialog like this possible with ExtendScript, especially the fields of text input Slider or something else called. I think that the arrangement of the top entries right lower left would be possible through the groups and alignments.

    Screen Shot 2015-03-31 at 22.14.51.png

    Are you talking about scrubable hot text entries where you can just drag and drop the value?

    I'm not aware of any way to do it within a script UI.

    Dan

  • Is this possible with LR5 to export the EXIF of every photo album (or albums) to an Excel file? My goal is to analyse the focal length I use most

    Is this possible with LR5 to export the EXIF of every photo album (or albums) to an Excel file? My goal is to analyse the focal length I use most. It could be used for various other analysis also

    Therefore change one of your columns in the filter bar to display the focus distance.

  • I need an app that interacts with the user... user answers a question, app indicates correct or not. Is this possible with DPS?

    I'm a provider of publication for an educational publisher. Customer wants to allow students to test and receive feedback on their answers within the app. Also, the client wants to receive the responses made by the student to measure progress through the "book."

    Is this possible with DPS?

    It must be created with HTML.

  • With the help of Mapviewer with Oracle Locator

    We are currently using Oracle Locator as a source of data for Mapviewer 10 g and we lack in a slight problem when loading simple points to a table. We have the table containing these added to the USER_SDO_GEOM_METADATA table and index space is created on the column with the SDO_GEOMETRY type. When the map loads the following error message is generated when a dynamic jdbc query is executed:

    MAPVIEWER-06009: error during the processing of a FAITH ask.
    Root cause: FOIServlet:ORA - 29900: operator of link does not exist
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-907: unable to load library MDSYS unit. SDO_3GL (referenced by MDSYS. SDO_FILTER)

    I looked in the database to the MDSYS. SDO_3GL object and it's there, so I'm a little lost on what could be the cause. I thought that maybe our diagram of the user does not have execute privileges associated with this specific procedure, but I believe that the whole point of MDSYS is that it is available to any user on the database.

    Any help with this would be greatly appreciated.

    Published by: user1175540 on October 29, 2010 19:10

    It looks like MDSYS. SDO_3GL is not valid. You can try the following query to see if it is not valid:

    Select the State, owner, object_name object_type of object
    where owner = 'MDSYS' and object_name = "SDO_3GL";

    If it is not valid, try "alter compilation package mdsys.sdo_3gl;" and see if he can drop the valid packet.

  • DTS - HD and Dolby TrueHD audio via HDMI or S/PIDF. Is this possible with HPE-140sc?

    I have an audio DTS - HD and Dolby TrueHD via HDMI or S/PIDF of blu - ray movie? I request because the Nvidia homepage not listed this support function for gtx260 (http://www.nvidia.com/object/3d-vision-requirements.html) and the homepage of Reatek'a is the same for ALC888S (http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=28&Level=5&Conn=4&ProdID=141).  What kind of problems is if there is no support in the HPE-140sc for Dolby TrueHD or DTS - HD audio? 3D-Cinema compatible reading is necessarily I can't find reading compatible sound card 3d video. Is the cheapest solution in this case buying gtx460 if I want to get DTS - HD and Dolby TrueHD audio?

    Pether, I don't think it's possible with the GTX260.

  • Is this possible with 11 subjects dynamically robohelp in Word/Pdf print numbers?

    Hello

    is it possible with 11 subjects dynamically robohelp in Word/Pdf printed numbers?

    For example in my project there

    -> 3 topics (TopicA TopicB, TopicC)

    -> 2 profile of printed documents (sales = > TopicA, TopicC) and (developers = > TopicB, TopicC)

    I want to dynamically dial as

    Sales

    1 TopicA

    2 TopicC

    Developers

    1 TopicB

    2 TopicC

    Is this possible?

    Best regards

    It might be possible if you have mapped to a Word template which has been implemented with the titles bunch. I don't know and not able to test this right now, but I think it should work.

    Otherwise, it must be somehow, in Word, post-build, and once generate your PDF file.

    Please post back how you are going.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Lot: Open Bridge "Stacks" in the form of layers in PS CS5 + run action. Is this possible with script?

    A couple of days, I posted this topic - I did not know this forum/group so the thread is displayed in Photoshop scripts and windows of the bridge. I did find a solution on these forums - can help any person here?


    http://forums.Adobe.com/thread/880777?TSTART=0

    http://forums.Adobe.com/thread/880779?TSTART=0

    I would like to automate a part of my job, which is to open the images superimposed (in Bridge CS5) in the form of layers in Ps CS5 and performs a PS action than the layers of composites and processes the image. Something similar to 'Process Collection' in Bridge CS5 only with my own action instead of merging HDR/panorama.

    Apparently, it's possible with Mac "Automator" - I can do in Windows? I have no experience with writing scripts, but have friends who can help. Can someone tell me if its possible and point me in the right direction please?

    This must be a batch process. I know how to open images in layers of the bridge so that I can manually run action PS - I deal with automatically batches of images in this same way.

    To clarify, if possible script must

    (1) find the first battery (in bridge [in the selected folder])

    2) open as layers in PS

    (3) run PS action

    (4) save and close (like psd retaining layers)

    (5) find battery new bridge (selected folder) and try again.

    I mean by "stack", a set of similar files (for example same scene-2 EV, 0EV, + 2 EV)

    Function 'Collection of process' of the bridge is great because it recognizes very skillfully similar images (I think that you first need to stack them) opens to them and either treated in a hdr or panoramic image. Instead or hdr or pano, wouldn't be great if you can run your own action.

    The bridge Image Processor is fantastic to open a package of individual files and run your own action of treatment, but it will not be open to groups of images ("Stacks" or sets) in the form of layers.

    What I need, is essentially a hybrid of the two.

    In case missed you my end added in the other thread, you can watch the auto collection script that comes with the bridge and use it as a basis for what you want to do. You can also to the controller of the creation of your batteries if their timestamps are nearby. Overnight Auto Collection Script now performs two types of battery HDR and Panoramas.  You may be able to modify it to a third type of battery. You stack type and use your stack of transformation of the process instead of mearge of HDR or PhotoMerge.

    The help of Bridge:

    The script Auto Collection CS5 from Adobe Bridge assembles sets of images into piles for treatment as a high dynamic range (HDR) or composite panoramas in Photoshop CS5. The script collects images into stacks based on capture time, exposure settings and the alignment of the image. The timestamps must be within 18 seconds for the Auto Collection script to process the photos. If the exposure settings vary according to the pictures and content overlaps by more than 80%, the script interprets the photos as a HDR set. If the exposure is constant and content overlaps by less than 80%, the script interprets the photos as part of a panorama.

    Note: You must have Adobe Bridge with Photoshop CS5 CS5 Collection car is available.
    1. To activate the Auto Collection CS5 script, choose the command Edition > Preferences (Windows) or Adobe Bridge CS5.1 > Preferences (Mac OS).
    2. In the Startup Scripts panel, select Auto Collection CS5 and then click OK.
    3. Select a folder with the HDR or panoramic and choose stacks > Auto stack Panorama/HDR.
    4. Choose Tools > Photoshop > process Collections in Photoshop to merge automatically and visualize the result in Adobe Bridge.
  • Is this possible with photshop and 13mpx mobile phone camera?

    Is it possible with the phone mobile camera 13mpx and photshop make image look pro like that? TNX in advance

    http://s1.postimg.org/ta3np201r/MV5_BOTc0_ODk3_Mzg4_OF5_BMl5_Ban_Bn_Xk_Ft_ZTcw_Mz_Iy_Nzgz _ OQ.jpg

    And here's one to correct color and tone.

    many https://helpx.adobe.com/Photoshop/How-to/Color-Tone-Adjustments.html?Set=Photoshop--Fundam image adjustment-

    You can find a lot of Photoshop tutorials from the forums home page. Find 'Adobe learning' in the second list box on the right, then click on the Go button.

  • Is this possible with Cross references?

    My document has 10 digits (photos, for example) while the references in the text. Due to a series of changes, I now need to remove Figure 5. The former Figure 6 must now be Figure 5, the old Figure 7 must be Figure 6, etc.. And corresponding sources of text must be updated as well.

    Is it possible with a Cross device references integrated InDesign? If not, is there a plugin out there that could solve my problem?

    Thank you.

    Ask yourself how you can configure it in the past so in the future, you can automate the process? If so, Yes. I'm doing a book with a somewhat similar feature. But it handles only the text in the document of identity. It does not change the names of the pictures that have been placed. So, if you need to rename the PSD files, I can't help you.

    But, if it is only text, here's what I do.

    My legends of the figures are numbered lists. The format is "Figure #" then on the text. They have been defined through the stories.

    When I x - ref, figure, I x - ref set to pick up the number of the paragraph but not the text of the paragraph.

    If, in your example, I had to get out in figure 5, I would take the picture figure and legend. That would leave a x - missing Ref in the body of the text. It is very good. I would like to delete it. Then the rest of the x-refs will need to be updated.

    Similarly, I could insert an x - ref. I believe that the number of car would come from its position on the text pages.

    HOWEVER, you will need to have set up at the start. It won't help later.

    PS: I hope you ask cela in the future and for a lot more than only 10 digits.

  • Is this possible with the Muse? (Interactive content)

    My company is looking to create a page that uses the functionality seen here for a section of our Web site:
    Resources / market Locator - MNI

    Finally, we want the user to select a region/location, select a category and have then to generate a PDF or PDF for the user to download. Now it comes to the database. But I think that there must be an easier way to have this type of functionality within the Muse or Adobe CC in general.


    Did someone met with something like that? Or anything that could be used in this way?

    Thanks advance!

    M

    Nope, can't do At least not if you insist on the use of this type of selection process, with form elements as these check lists:

    Forms of the Muse still miss on this type of data entry form...

    Rather than use a form to indicate the selection and let it work with a process database, you might consider creating a navigation system technically complex, but visually compact to let the user run through a sequence of pages, to finally find their way to the desired and downloadable content. But I bet there will be another problem growing, as it is tedious to link all the PDF files for each page at the end of the line, or the maintenance of this content.

    Maybe some third-party widget can achieve something like that, but there is no much, and they cannot be modified in many ways to fit your need. Most of them talk about e-commerce (shopping cart typical stuff), disappoint users through collections and not so restrictive browser search with the criteria selections. But feel free to take a look at this: Adobe Muse basket with Ecwid.

Maybe you are looking for

  • What is the type of incoming and outgoing mail to yahoo Server?

    In order to send attachments, that the above information is requested. Please advise if POP3 IMAP SMTP?

  • DV7-3173nr: password error code 55116290?

    can someone send me the new password?

  • Funny moment with CISCO SPA112

    I have successfully set up CIsco SPA112 - almost works, I can't just change admin password. I connect with the default user password: admin/admin I go to the menu of their administration, but on the left, nothing appears in admin link just "quick ins

  • BlackBerry Smartphones Marriott App

    OK - I admit I am newbie to a crackberry - and still working my way through the various forums and others.  In other words - I need some help or insight with the following: 1. in the field of applications, in particular applications, it says all devi

  • Creative to launch cloud apps crash

    Hi I had a ton of questions since I got the update of el Capitan, but some of these problems come from before I've even updated.My questions are:Photoshop Illustrator and indesign periodically freeze especially on open a document or start the program