Oracle locator - chapter 12 in pro orcale spatial

I am trying to launch the sample application of chapter 12 pro orcale spatial book (by Ravi kothuri) . But I am getting the following error.
Errors compiling:C:\OC4J\j2ee\home\application-deployments\MapViewer\web\persistence\_pages\_spatial_2d_book\_sample_2d_app\_SAMPLEAPPLICATION.java
package oracle.spatial.geometry does not exist import oracle.spatial.geometry.*;
package oracle.spatial.network does not exist import oracle.spatial.network.*;
cannot resolve symbol symbol : class Network location: class spatial2d_book._sample_2d_app._SAMPLEAPPLICATION Network net = (Network) session.getAttribute("NetworkHandle");
When I saw the jsp code for this application it imports the following .
<%@ page import="oracle.lbs.mapclient.MapViewer" %>
<%@ page import="oracle.spatial.geometry.*" %>
<%@ page import="oracle.spatial.network.*" %>
I did try to Create a new user environment variable called class path and include path to sdoapi.jar,sdoutl.jar/classes12.jar
but i still get the error . Could somebody help me please.

I'm not sure if book mentions using MapViewer 10.1.2 rather than 9.0.4 for the Network stuff, but, MapViewer 10.1.2 is the first version to add the capability for rendering networks using the Oracle10g Spatial Network model. This of course is also supprted in the documentation (below):
http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10559/toc.htm (9.0.4)
http://download.oracle.com/docs/cd/B14099_01/web.1012/b14036/toc.htm (10.1.2)
An easy way to test this out would be to download the MapViewer 10.1.2 Quickstart Kit (which includes a ready-to-run standalone OC4J with MapViewer 10.1.2 pre-deployed and configured):
http://download.oracle.com/otn/other/mapviewer/mapviewer101202_qs.zip
-Justin

Similar Messages

  • Is there any alternative for SDO_RELATE in Oracle Locator [not in spatial!]

    Hi,
    We are looking alternative arrangement in place of SDO_RELATE function in oracle Locator i.e. which is free and has no bindings with oracle spatial license.
    e.g. http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/55/oracle-locator-vs-enterprise-licensing-the-sdogeom-package/
    Any information will be great help on this.
    Thanks in advance!!

    Hi,
    You are allowed to use the sdo_relate operator in locator. You are not allowed to use sdo_geom.relate function in locator.
    Look [Table B-1|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_locator.htm#CFACCEEG] in the [Oracle Spatial Developers Guide 11g Release 1|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/toc.htm].
    Yavuz

  • Oracle Locator or Spatial?

    Hi,
    I'm trying to decide if I can do the following with just Oracle Locator (with Oracle 9i), or if my organization needs to purchase Oracle Spatial. I have a web page where a user drags out a rectangular area of interest on a web map, and the values identifying this area are inserted into four variables - minlong, maxlong, minlat, and maxlat. The user can then query a database where the records contain coordinates defining rectangular areas. Using just Oracle Locator, is it possible to search this database and return only those records whose coordinates fall within the area of interest defined by the user? I am brand new to Oracle, but this seems pretty basic, and I'm almost sure that Locator can handle it, but I want to make sure before buying the Oracle license. Sorry I can't point you to the web page to see what I mean, but it's only on our development server.
    Any help would be appreciated thanks.

    Hi,
    If you are using Oracle9i you can do this with locator. Before Oracle9i this required spatial.
    Hope this helps,
    Dan

  • Study of feasibility with Oracle Locator or Spatial with personal

    I need to store and retrieve spatial data in a GIS software. However, this software runs on a stand alone platform, that is to say a single computer without any network.(Pentium + Windows XP)
    Can I imagine to embed Oracle Database personal + spatial module in our software or would it be cost prohibitive for my customers ? (Peharps Dev. partners is a solution ?)
    Thanks in advance,
    Jean.

    Hi,
    If you are using Oracle9i you can do this with locator. Before Oracle9i this required spatial.
    Hope this helps,
    Dan

  • What are the requirements for Oracle Locator?

    Hi, when installing a new database, we want to trim out the stuff that Oracle installs by default that we don't absolutely need. However, we do want to make use of the MDSYS.SDO_GEOMETRY type and Oracle Locator (not Spatial).
    Oracle has all these different components, and we jut found out that in order to use Locator, you have to install Oracle interMedia. Is there anything else there that Locator has a dependency on that we would be missing? We intend to install these:
    Oracle Workspace Manager
    Oracle Enterprise Manager
    Oracle Database Catalog Views
    Oracle Database Packages and Types
    But out of the list of the rest of them, what is needed for Oracle Locator?
    Spatial
    Oracle interMedia
    OLAP Catalog
    Oracle XML Database
    Oracle Text
    Oracle Expression Filter
    Oracle Rules Manager
    Oracle Workspace Manager
    Oracle Data Mining
    Oracle Database Catalog Views
    Oracle Database Packages and Types
    JServer JAVA Virtual Machine
    Oracle XDK
    Oracle Database Java Packages
    OLAP Analytic Workspace
    Oracle OLAP API

    Oracle Locator is implemented in the MDSYS userid. (It's included in every version and edition of the database since 8i, including 10gR2 Express Edition.)
    As you have noted, Locator is considered part of intermedia. (In some versions of Oracle, Locator is officially a feature of intermedia, in others it seems to be independent. In all versions, it uses a commono install with intermedia.) The install for intermedia 10gR2 is described at http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14302/ap_instl_upgrd.htm#sthref649
    I believe there are some Locator funtions in 10gR2 that are impemented in Java and require the JVM. The 10gR2 Express Edition (XE) does not include JVM and Locator seems to be mostly functional, but there are areas that do not work.
    Technically you do not need Oracle Text or Oracle XDK/XMLDB. I've found they are extremely useful so I do include them in my minimum installs. They are also included in XE.
    In your list the following are related to separately licensed EE options: Spatial, OLAP and Data Mining

  • Using Mapviewer with Oracle Locator

    We're currently using Oracle Locator as a datasource for Mapviewer 10g and we're running into a slight problem when loading simple points from a table. We have the table containing these ponits added to the USER_SDO_GEOM_METADATA table and the spatial index is created on the specific column with the SDO_GEOMETRY type. When the map loads up the following error is generated when a dynamic jdbc query is run:
    MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:ORA-29900: operator binding does not exist
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced by MDSYS.SDO_FILTER)
    I've looked in the database for the MDSYS.SDO_3GL object and it's definitely there, so I'm a little lost on what could be causing this. I thought perhaps that our user schema may not have execute privileges associated with that specific procedure, but I believe the entire point of MDSYS is that it's available to any user on the database.
    Any help with this would be greatly appreciated.
    Edited by: user1175540 on Oct 29, 2010 7:10 PM

    We're currently using the javascript api for oracle maps (using the matching javascript file, oraclemaps.js, that came directly from the mapviewer application download). All that I'm calling is a single table and then getting some hidden info columns as well off of it too. I've tried this on a different schema and database that's also only running Locator and the query runs just fine with the points on the map displaying as intended.
    Here's the current theme request that I'm submitting:
    <theme name= 'lowerTheme' >
    <jdbc_query spatial_column='GEOMETRY' jdbc_srid='8307' render_style= 'V.AVCD_BUILD' datasource='mvdemo' >
    select * from build where subtype in('ABC','123','DEF')
    <hidden_info>
    <field column='SUBTYPE' name='Type'/>
    <field column='NAME' name='Name'/>
    <field column='ADDR' name='Address'/>
    <field column='CITY' name='City'/>
    <field column='STATE' name='State'/>
    <field column='ZIP_CODE' name='ZIP Code'/>
    </hidden_info>
    </jdbc_query>
    <rendering>
    <style name='V.AVCD_BUILD' value_columns='SUBTYPE'/>
    </rendering>
    </theme>
    Within the actual function adding that theme to the 'mapview' variable I'm creating a new MVThemeBasedFOI object using the name 'lowerTheme' and the above definition for the second parameter in the constructor.
    Is there a listing of procedures on the MDSYS schema that I should check to make sure they're valid for spatial queries to work?
    Thanks in advance for the help.

  • Trying to use Oracle Locator for latitude and longitude proximity searches

    I am prototyping using Oracle Locator to do proximity searches and other spatial operations within the database in our software products. I’ve got it working fine in SQL Server, where geodetic is built in as well as geometric features, but with Oracle we’re trying to restrict ourselves to the Locator features so our customers are forced to buy the add-on. I am getting perplexing results, as you can see if you run the little test program I wrote.
    I am using lat and long as the point coordinates. I am inserting the data using
    SDO_GEOMETRY(2001, 4326, SDO_POINT_TYPE(?, ?, null), null, null
    Then I am doing the search with
    SELECT pointname, SDO_NN_DISTANCE (1) distance_in_miles
    FROM geotest g
    WHERE SDO_NN(g.geopoint, sdo_geometry(2001, 4326, SDO_POINT_TYPE(38.683, 123.083, NULL), NULL, NULL), 'distance=1000 unit=mile', 1) = 'TRUE'
    ORDER BY distance_in_miles
    I am getting distances from 56 to 86 units, whatever the units are.
    Am I attempting the impossible with Locator, to use lat and long and then expect the sdo_nn function to work in miles?
    Select results:
    POINTNAME DISTANCE_IN_MILES
    Point number 19 56.8497254738894
    Point number 17 57.0758802885512
    Point number 5 62.096857977487
    Point number 3 67.3555572959989
    Point number 16 70.8005407529483
    Point number 1 73.0370426667902
    Point number 9 73.1047740624495
    Point number 14 73.1451566004902
    Point number 11 74.9344307572887
    Point number 10 75.3710529989389
    Point number 2 75.423714095366
    Point number 8 77.2121183101138
    Point number 4 77.6458963754559
    Point number 18 80.4569749046142
    Point number 6 81.0025026191188
    Point number 20 81.8444977200089
    Point number 13 83.4095236051998
    Point number 15 86.9333533902019
    Point number 7 88.9312783958262
    Point number 12 98.72957787982
    Point number 0 98.9999489634554
    21 rows selected

    Couple of things that we found out using sdo_nn here...
    It works...but the knobs need to be turned in the right order...
    You may have done this already...but here is what we have...
    a. we create our table containing the location sdo_geometry column ..( in our case the column is called location )
    b.We loaded the data..If you elected to use a partitioned table for your spatial data and created the corresponding spatial index as local...your sql will need to account for that.if your index is global ..don't worry about it
    c. We inserted the metadata...this needs to be done once per table...by either the dba or the schema owner...
    INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('<YOUR TABLE NAME>', '<SPATIAL COLUMN NAME>',
    MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('LONGITUDE', -180.0, 180.0, 0.5),
    MDSYS.SDO_DIM_ELEMENT('LATITUDE', -90.0, 90.0, 0.5)
    8307);
    COMMIT;
    If this is not done before the spatial index is created...stuff won't work...
    d. create your spatial index
    e. our query looked something like this...( I changed the table names )
    This returns the top 30 results sorted by distance in feet...
    SELECT LOCATION_KEY,
    result_center_distance
    FROM
    SELECT LOCATION_KEY,
    SDO_NN_DISTANCE(1) result_center_distance
    FROM LOCATION_OWNER.D_LOCATION dlocation
    WHERE SDO_NN(dlocation.LOCATION,
    MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(-97.07845,33.138006,null),null,null), 'SDO_NUM_RES=31 unit=FOOT distance=5800.0 SDO_MAX_MEMORY=50000000', 1) = 'TRUE'
    ORDER BY 2
    WHERE ROWNUM <= 31
    We had to use this structure because our index is local...and sdo_nn will return the sdo_num_res results for each partition...so you need to get the results first..then treat it as a top-n query...
    If you index is global...this should work
    SELECT LOCATION_KEY,
    SDO_NN_DISTANCE(1) result_center_distance
    FROM LOCATION_OWNER.D_LOCATION dlocation
    WHERE SDO_NN(dlocation.LOCATION,
    MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(-97.07845,33.138006,null),null,null), 'SDO_NUM_RES=31 unit=FOOT distance=5800.0 SDO_MAX_MEMORY=50000000', 1) = 'TRUE'
    ORDER BY 2
    If you want the distance in MILE...replace FOOT by MILE...
    good luck...
    Edited by: user5431290 on Oct 23, 2011 9:36 AM

  • Oracle Locator - Implementation

    I have a need to calculate shortest distance between any two locations (addresses) using Oracle Locator. The only parameters that are available to me as inputs are the 5 digit zip code, latitude and longitude of the location. I am looking for help in implementing a solution. I have the 10g enterprise database that comes with Locator as standard.

    Wellllll
    My first guess is that you need a bit more than just those pieces. When you say 'shortest distance' are you expected to get that by route or as the crow files?
    You may want to check in the 'Spatial' forum where this kind of thing is likely to be discussed in much more depth (as the Spatial and Locator specialists tend to hang out there).
    There are subtle differences between 10gR1 and 10gR2 - which in particular are you using?
    Do you know the coordinate system? Long/Lat comes in a variety of subtly-different flavours, depending on the actual coordinate system. (Since you mention zip code, I assume you mean the US, and 8302 will probably do reasonably well.)
    You will probably want to create a spatial index and defnitely need to create the user_sdo_geom_metadata for your layer.
    Have you looked in the Spatial Reference manual in the Oracle docco? Specifically at the Locator appendix, which describes exactly what parts of Spatial you can use in Locator. And at the sdo_distance function and examples at http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_objgeom.htm#i857957

  • Oracle LOCATOR - Standard Edition

    Hello,
    Can you please to tell me if there is any customer using Oracle Locator with Standard Edition?
    Regards,
    Andre

    There are indeed may success stories for Locator.
    Appendix B Oracle Locator of the manual deals with the differences .... here is the headline info
    Oracle Locator (also referred to as Locator) is a feature of Oracle Database 11g Standard Edition. Locator provides core features and services available in Oracle Spatial. It provides significant capabilities typically required to support Internet and wireless service-based applications and partner-based GIS solutions. Locator is not designed to be a solution for geographic information system (GIS) applications requiring complex spatial data management. If you need capabilities such as linear referencing, advanced spatial functions, or Spatial Web services, use Oracle Spatial instead of Locator.
    Yours sincerely
    Rich

  • Configure MS VC++ 6.0, Per Oracle 8.1.6 and Pro*C

    Hello All,
    Could someone help in configuring MS VC++ 6.0, Per Oracle 8.1.6 and Pro*C. Per the Personal Oracle 8.1.6 document when I start locating Header files directory at C:\<Per_Ora_Dir>\Precomp\Public I could not find the directory nor Proc executable at Bin directory. Anybody encountered similar problem or could some one give some hint as where to look for it would be great.
    Thanks,
    Soum.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Migration Workbench Team:
    The Oracle Migration Workbench will assist you in the Migration of the SQL*Server 7 DB. It is available as a free download from this site.
    <HR></BLOCKQUOTE>
    null

  • What is Oracle Locator

    I have been working with I guess spatial with the mapviewer demos and
    never knew there was a product that comes with the database called Oracle
    Locator... so how do I find out if it is installed properly, spatial is not installed
    and what is it... and what are its capabilities.
    thanks

    http://www.oracle.com/technology/products/spatial/index.html
    at the bottom there are some links that will help you

  • Is Oracle Locator part of Oracle Standard

    Do we know for sure that Oracle Locator is part of Oracle Standard Edition? I have tried many places and nowhere I see anything that clearly states that it is part of what edition. We have both Oracle Enterprise and Standard and on Enterprise we have Spatial Licence and wondering if we could utilize Oracle LOcator on the Standard.
    Thanks
    -Alfred

    Hi Alfred ,
    I found something from Intergraph about the new Geomedia version which may give a hint
    http://www.ingr.com/gis/newsroom/press02/gm5_rlsf.asp
    <quote>
    The GeoMedia 5.0 product suite now runs with the Oracle 9i Standard Edition, providing a considerable overall price improvement for GeoMedia customers.
    </quote>
    If Intergraph is using Standard Edition they may use at least Locator to run GeoMedia.
    Uwe

  • Oracle 9i on Windows XP Pro

    We are looking at installing Oracle 9i (Release 2) on a desktop here for testing purposes. We used to have Oracle installed on a 2000 Pro machine but we had a lot of problems with it and were informed that it was known that Windows 2000 Pro and Oracle didnt get along.
    I am trying to find out if there is similar problems with Oracle 9i and Windows XP Pro. Are there any issues that I should know of?
    Thanks in advance.
    Trevor

    Trevor,
    I doubt there are any problems with 9i on XP that can't be handled. I used it for some time on that same OS without problems though I didn't do a great amount of work with it. Check the release notes they should say something about that.
    One

  • Can I add a secondary location for Final Cut Pro Documents?

    Hi Guys,
    I'm working on a large project which has taken up most of my 2tb hard drive which I use for my final cut pro documents (capture scratch, render files etc). Is it possible if I plug in another hard drive to use that as a secondary location for final cut pro documents as I have other (smaller) projects which I could be uploading and working on in the mean time? If so, how is this achieved and what are the pros / cons?

    Sure -- go to Final Cut Pro menu on your menu bar and select System Settings.
    The first tab is SCRATCH DISKS -- that's the term too -- not secondary folder for FCP Documents.
    Change it there.
    Drawbacks...
    It has been a while since I've had to deal with this, but FCP used to not remember (feature or bug??) a project's original scratch disk location and if you change it for ONE project it will be changed for ALL future AND past projects... until you change it back.
    Now, that in itself isn't a BAD thing. All that that means is that if you continue to capture material into that old project it will now put it over here instead of over there. Also, other things like render files and such which won't really matter much unless they do... and now you've got stuff spread over a coupla drives.
    FCP's projects don't care. They've already mapped where they need to go to get the video and render files it needs. Move your Scratch Disk 33 times... won't make a difference to the browser and timeline. -- UNTIL you remove one of the important drives. THEN red lines galore! Un renders, missing files... messy messy messy!
    Much better to start and finish a project in scratch disk. Makes for easy cleanup. Kinda like cooking thanksgiving dinner (American??) in 5 houses at once.
    Good luck,
    CaptM

  • Where is the custom stamp location in Acrobat 9 Pro for Win Vista

    Where is the custom stamp location in Acrobat 9 Pro for Win Vista?

    See this thread to find out how to determine the location:
    http://acrobatusers.com/forums/aucbb/viewtopic.php?id=17521

Maybe you are looking for

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge. I am using  the edge commons JS library to load multiple compositions into a main composition. You can see how this works here: Edge Commons - Extension

  • Run-Time error 1004 when VBA run Text-To-Column

    Expert,   I got error message 1004 said "Excel can convert only column at a time, The range can be many rows tall but no more than one column wide, try again by selecting cells in one column only. my VBA code is this. If I copy B5 only, the Text-To-C

  • How Do You Maintain OS X in a Pro Situation Environment?

    This has come up - I want to see what others do to'maintain' their systems I run this: http://www.maintain.se/cocktail once a week (pilot run the standard crons and cache cleaning... etc..) Then once a month I run Disk Warrior and Tech Tool I've been

  • Pdf does not appear in acrobat 9

    So, when I open certain pdf documents they do not show up, only a gray background.  I believe I changed some setting that is causing this to happen.  The pdf is opened, it will appear in the Window menu list.  It will print, but I can't see it.  I ca

  • ITunes wont start and something with Norton 2005 ends with error

    When I click to start up iTunes, nothing shows up. I am unable to terminate process in task manager, and a process under Norton ends with an error. Now, the irony- there is no problem with anything under my Moms account, and a system restore did noth