About spatial data

I have data for one city delhi in our oracle spatial database.In India around we have 50 major city.I created network data model and populated there data in to database but how i can create network data model and populate data for other city.

Can you explain more in detail?
Do you want a network model for every individual city which you want to be populated after the creation of the specific Network?
what kind of data do you have for these city? line? network data?
how is the data from these 'other' cities stored? in one table or in different tables?
Source?
In the mean while have a look at the following post maybe they can be of use.
Re: Spatial Network constraints
Re: Massive Routing analysis
Should you need more help, feel free to ask.
tx
Luc

Similar Messages

  • Need Help about Spatial Data Load - Mapviewer

    Hello everybody,
    I need an immediate help about spatial data load. I installed Oracle mapviwer quick start and try to work on it. However, I could not pass the load step. My questions are;
    1- Where can I find and download my country's data set (spatial data)
    2- With mapviwer, how can I load spatial data to my tables on database (Oracle). Those tables have sdo_geometry columns and I want to query location data, but could not load
    Regards,
    Dilek

    For Mapviewer questions, please post in the following forum:
    MapViewer
    Thanks

  • Acquiring Oracle Spatial Data through WFS

    Hi,
    I have been researching for awhile and am slightly confused.
    I have Oracle Spatial 11g with geometry data and would like to be able to retrieve that data through a WFS to serve to a viewing application.
    Here's where I am confused:
    1) Spatial has a WFS service which needs to be configured. If I were configure that, would I be able to access the data through URL getFeature commands? The documentation I see for them has the getFeature requests in the form of XML files so I am not sure if I can do that. Also it seems like the service is returning .log files but I think I would want GML...
    If this is the option I should take, the tutorial to setup OC4J and the Web Services are for a Linux machine (http://www.oracle.com/technology/obe/11gr1_db/datamgmt/spatialws/spatialws.htm) -- Is there one for Windows 64bit?
    2) Do I need another "application layer" to enable this URL support? I know MapServer can use URL requests.. can I just run this against the data in my DB and forget about the Oracle WFS?
    3) MapViewer seems to work with WFS Themes and handle requests through Java and SQL.. is this another option?
    I am basically confused as to where everything sits and what I should be focusing on to get my Spatial data out of the DB through a WFS. Any assistance on this matter would be greatly appreciated!
    Thanks!

    Any help debugging this issue would be greatly appreciated:
    As per the documentation:
    http://localhost:8888/SpatialWS-SpatialWS-context-root/wfsservlet?request=GetCapabilities&service=wfs&version=1.0.0
    :this get request should return the capabilities info however I receive this error message instead in the browser:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ogc:ServiceExceptionReport version="1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8888/examples/servlets/xsds/OGC-exception.xsd" xmlns:ogc="http://www.opengis.net/ogc">
    <ogc:ServiceException code="WFS-1042">Exception during processing request</ogc:ServiceException>
    </ogc:ServiceExceptionReport>
    The sytem out from the oc4j container provides this error message:
    10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
    INFO] No subject specified in request.
    10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
    ERROR] Oracle Spatial WS Server could not set up configuration parameters: jav
    a.lang.RuntimeException: No subject specified in request.
    10/04/27 15:47:38 [oracle.spatial.ws.servlet.WFSServlet, Tue Apr 27 15:47:38 MDT
    2010, FATAL] java.lang.RuntimeException: java.lang.RuntimeException: No subject
    specified in request.
    at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:705)
    at oracle.spatial.ws.servlet.WFSServlet.doGet(WFSServlet.java:108)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:734)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:458)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:226)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:127)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:116)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
    SocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocket
    AcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
    ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.RuntimeException: No subject specified in request.
    at oracle.spatial.ws.WSProperties.getUser(WSProperties.java:574)
    at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:695)
    ... 16 more

  • OBIEE -Spatial Data in ST Geometry

    Hi,
    Below is my sample spatial data in oracle 10g database.I am trying to build a OBIEE map with Google maps as background map.Can i  use the ST geomotry as below  directly or should i convert it to SDO geometry .I converted ST geometry to SDO  but when i use it for the maps in obiee the lines are all over the map.Can anyone suggest me the steps i need to take when the spatial data is in ST geometry.SRID for google mpas is 3785.
    ST GEMOTRY
    SDE.ST_GEOMETRY(8,20,-8236196.0936,4971596.5728,-8236021.1316,4971750.2835,NULL,NULL,NULL,NULL,8520.953541,512.173693478845,3857,'oracle.sql.BLOB@14f2c59')
    SDO GEOMETRY
    MDSYS.SDO_GEOMETRY(2003,8307,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(-8236058.0112,4971596.5728,-8236049.1351,4971612.8814,-8236034.0083,4971640.7315,-8236025.6322,4971656.1619,-8236021.1316,4971664.1908,-8236034.878,4971671.5954,-8236036.5026,4971672.5993,-8236061.2461,4971686.0279,-8236089.489,4971701.3389,-8236179.0918,4971750.2835,-8236183.4673,4971742.2546,-8236196.0936,4971718.9202,-8236142.1072,4971688.8009,-8236116.7386,4971674.6197,-8236119.9892,4971667.8453,-8236082.6239,4971647.0125,-8236077.5001,4971644.2516,-8236084.1259,4971632.3338,-8236093.2518,4971616.0251,-8236058.0112,4971596.5728))

    Hi Syedurur,
    You may be in the wrong forum as OBIEE only utilizes MapViewer as far as I know.
    MapViewer
    So as Stefan notes, you are not going to be able to use SDE.ST_GEOMETRY with OBIEE as its not an Oracle product.  However, your ArcSDE registered MDSYS.SDO_GEOMETRY geometry should work fine.  Yet in your example you posted you seem to have Web Mercator (3857) ordinates but the SDO_SRID is WGS 84 (8307) so that is mangled and not going to draw anything correctly.  Try changing the SDO_SRID to 3857.
    Now Stefan is a bit incorrect about the ease of moving from SDE.ST_GEOMETRY to MDSYS.SDO_GEOMETRY.  The folks at ESRI make it simple to move in the other direction but - surprise! - not to move away from their proprietary spatial type. 
    ArcGIS Help (10.2, 10.2.1, and 10.2.2)
    Now you can still accomplish this by exporting your data from the geodatabase and then importing it back in as SDO but that is certainly not as simple as using the above one-step migration tool.
    In theory you could convert SDE.ST_GEOMETRY to MDSYS.SDO_GEOMETRY on the fly in the database with SQL.  Both ESRI and Oracle proudly spout their unwavering support for OGC standards.  Thus this should work
    SELECT MDSYS.SDO_GEOMETRY(SDE.ST_AsText(a.shape),8307) FROM my_ESRI_ST_GEO_table a;
    (Note change the 8307 to the matching Oracle SRID of your data)
    But my experience was that the very old Oracle Java WKT parser mixed with the somewhat non-standard ESRI External DLL WKT writer is not a very reliable combination.  But do give it a try and feel free to report back to us how it goes.  I really have not tried this in a couple of years so perhaps things are better now.
    Cheers and Happy New Years,
    Paul

  • Clustering Spatial Data to minimize disk I/O

    Hi,
    I use Oracle Spatial on an Oracle RDBMS 11gR2 EE.
    I have read that wiht huge spatial tables (few GB for instance), it is possible to "cluster" the rows having an SDO_GEOMETRY data type.
    This can minimized I/O, having spatial geometries grouped in contiguous data blocks.
    I have also found that there is the function MD.HHENCODE encodes a two-dimensional point ino a raw string and this string can be used to sort/re-organize the points in a table.
    I have not find how this function works. Does someone know the principle on which this function works?
    How does this apply to polygons or lines, except by conputing a centroid for these geometries?
    I don't know if I get good approach, but generally speaking, does someone know how to "cluster" spatial data to minimize I/O?
    Thanks by advance for any tip.
    Kind Regards.

    Hi Unnamed Cat Person,
    Sorry I am late responding to your questions.  You should sign your postings with the name of your cat.  I pester posters to provide a name not just to be petulant, but unless we have names to reference it can be difficult to tell if I am responding to you or to Stefan or to Bryan.  It certainly does not have to be your real name, the cat's name would work just fine.
    So you are looking for information not on how to do spatial sorting but rather the "why to do this" and "how does it work" questions surrounding spatial sorting.  This forum is generally not a deep well of such information as it tends to focus on practical implementations.  As a group we often should be more introspective on the reasons why things work they way they do and if there are better ways to do them but then to some degree that is what our employers pay Oracle to do.  You might get better answers for such questions over on stack exchange (Geographic Information Systems Stack Exchange) or you might not.
    MD.HHENCODE is an undocumented, fully wrapped, by default unexecutable function in Oracle Spatial - so you won't find anything on this from Oracle.  Exactly how it works is "beyond our ken".  The 12c version of Pro Oracle Spatial is due out next year and I personally wonder if they should keep this section in the book.  I should also note its quite the pain in the backside to use returning a RAW datatype of all things.  So as the book says, the function "more or less" encodes a point in spatially sorted order.  So its very difficult for any of us to say if this function works well or sensibly or follows some established formula, etc.  Its a proprietary black box.
    So taking a step back and cribbing from Simon's discussion, you also could just sort on the X and Y values.  This is what PostGIS "order by geometry" does and you could set up something similar in Oracle quite easily.  But I don't really see much value in this approach if you are trying to cluster things together.
    Now Simon's article says that sorting on the Morton key is better.  Does he say why Morton keys are better than the above methods?  I guess he does not have a summary section at the top but I feel the results speak for themselves, particularly the illustrations.  Imagine this article without those illustrations and it would be most difficult to visualize.  There are also good illustrations on the wikipedia page
    Z-order curve - Wikipedia, the free encyclopedia
    Note that as none of us can say how HHENCODE functions, none of us can really state definitively that Simon's Morton Curves are better.  Oracle could quietly change the function tomorrow to produce Morton curves (for all I know it does already as I haven't used the thing in years).  But I think Simon's work is fantastic so in my opinion then his way is better!  Take that for what its worth.  Show his nifty illustrations to your boss and that will end any discussion of your rational.
    But wikipedia suggests that an even better way to go is using Hilbert curves.  So hey, does anyone on the list have this implemented in oracle spatial?
    Hilbert curve - Wikipedia, the free encyclopedia
    So there you go, four approaches:
    X Y striping = useless for clustering
    HHENCODE = "more or less" works okay in unknown manner
    Greener Morton Curves = works well, fully explained, coded for you
    Hilbert Curves = might be better, fully explained, you need to code it yourself
    Does anyone on the forum have more entries to add?
    If you are heck-bent on spatially sorting your data, I'd suggest using Simon's code.  You could also do a head-to-head test against HHENCODE and report back to us your findings.  My suspicion though is that as Bryan and Stefan both allude, that spatial sorting won't cure the problem that brought to you to the forum.  I am not saying there could not be a modest little boost, but its dependent on many other factors I mentioned in my first post.  Anyhow, I have appreciated your posting, it lead me to think more about a topic I've not paid much attention to for years.  We could spend more time in this forum on such issues.  But most often things here are just about how to do a task or bug chasing.  Perhaps there is a better place for these things.  Maybe if a question leads beyond the "how" and "bug" topics, we should cross post into stack exchange?  I dunno.
    Cheers,
    Paul

  • Migrate Spatial data to another instance

    i intend to port Oracle Spatial to another instance and get stucked.
    1. can not export/transfer sdo_geom_metadata_table from mdsys
    Try exp on mdsys, Oracle complains invalid username....
    Try database link, Oracle complains about remote access of user-defined datatype...
    2. when import Oracle Spatial data to another instance, most of the indexes failed to be created.
    Not just spatial indexes, even some indexes on attributes are not created.
    Is it caused by (1) ?
    jc

    James,
    If you export the schema with the spatial data in it the export file contains also the registration for the metadata .
    The failing of the creation of the indexes most likely occurs by the fact the tablespace name of the original database is different from the target database.
    You can with the import utility create a indexfile. This file contains all the index create commands. In this file you can correct the tablespace name.
    Jurgen

  • Spatial data replication

    Hi
    Is it right place to ask regarding oracle spacial data replication using goldengate? I posted message goldengate thread but now one is replying to that...

    Hi,
    A few tips for getting useful responses on these forums:
    - Give yourself a better name on OTN. User "931643" isn't great.
    - Give your post a meaningful title such as "Spatial data replication using GoldenGate". Your post (Re:goldengate error over on the Goldengate forum had a subject of "goldengate error". That doesn't say much about your particular question.
    - For this post on the Spatial forum - how about some more background information? What versions of the products? What exactly are you trying to do? What is not working? What error messages? Do you have a test case that somebody could easily reproduce? Have you got the replication working for non Spatial data types?
    I've never used Goldengate so won't be able to help much, and I suspect your best bet of a useful response is on the Goldengate forums.
    Have you checked the Goldengate documenation?
    The "Oracle GoldenGate Oracle Installation and Setup Guide" is available on http://docs.oracle.com/cd/E35209_01/doc.1121/e29797.pdf
    This says: Oracle GoldenGate supports SDO_GEOMETRY, SDO_TOPO_GEOMETRY, and SDO_GEORASTER (raster tables).So that looks promising, but check if that is the case for the Goldengate version your are on.
    Check the following My Oracle Support articles:
    "Does GoldenGate Extract Support Oracle Spatial?" [ID 971719.1]
    "Extract Abend With OGG-00746 Error (100, no Data Found) Selecting Data in CheckForSynonym For Table With Column Type SDO_GEOMETRY" [ID 1382906.1]
    John

  • Spatial data warehouse

    hello,
    i'm doing a research in spatial data warehouse, does anyone who had doing the same thing? and are there any article that explain about it? (especially the ETL process).
    Does OWB support spatial data type?
    thanks
    hadi

    Hi Hakan,
    it's not easy to give a quick answer here.
    a) you want to compare warehouse tables with spatial tables
    To answer this very well you should define what is a warehouse table and what is a spatial table. In this forum you will get for spatial tables the definition "A spatial table is a table with one or more columns of type SDO_GEOMETRY". How do you define a spatial table and how do you define a warehouse table?
    b) you ask for performance
    Performance is not depending only on table type. Performance is depending on a lot of steps. For example on the work which has to be done to answer the question, can data read from buffer cache or must they be read from physical devices, execution plan .....
    I don't know if there is a official statement from Oracle which is usefull to answer your query.
    Can you ask a little bit particular please?
    In my experience there it is not adviseable to store tables in different databases (instances) when I have to query it together. If you split the tables in different instances, the execution has much more overhead because you have to talk to 2 instances and it will very hard for the optimizer to find the best execution plan.
    Regards
    U. Martin

  • Update multiple rows involving spatial data

    Hi,
    i have 2 table, that are
    temp
    store_id
    store_state
    geom mdsys.sdo_geometry
    us_states
    state
    geom mdsys.sdo_geometry
    i have indexed both table with spatial index.
    If i wanna find state that temp.geom is inside us_states.geom using
    SQL> select state from us_states, temp
    where sdo_inside(temp.geom, us_states.geom) = 'TRUE';
    it's work
    but if i wanna update temp.store_state using
    SQL> update temp set store_state = (select state from us_states
    where sdo_inside(temp.geom, us_states.geom) = 'TRUE');
    it gives this error
    update temp set store_state = (select state from us_states where sdo_inside(temp.geom, us_states.geom) = 'TRUE')
    ERROR at line 1:
    ORA-13226: interface not supported without a spatial index
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 62
    ORA-06512: at "MDSYS.SDO_3GL", line 192
    any idea how can i update multiple rows that involving spatial data?
    Thanks
    Hadi

    Hadi,
    There are a number of things wrong with the second item. First up you most likely will return more than one row, which is not allowed as the = expects only one item.
    Here is what I would use, which will update everything that meets the requirements, and ignore the rest:
    UPDATE (
    SELECT /*+ bypass_ujvc */
    state, store_id, store_state
    FROM temp, us_states
    WHERE sdo_inside(temp.geom, us_states.geom) = 'TRUE')
    SET store_state = state;
    With the /*+ bypass_ujvc */ you're telling the db to not worry about requiring a "unique join view condition" -- which roughly mean "trust me, my rows are key preserved." This is important since there is really no "hard" key-based relationship to tie the two together.
    However, unless you really think there are stores that border on two states, this will run much quicker with an anyinteract comparison.
    Bryan

  • Can you help me about change data captures in 10.2.0.3

    Hi,
    I made research about Change Data Capture and I try to implement it between two databases for two small tables in 10g release 2.MY CDC implementation uses archive logs to replicate data.
    Change Data Capture Mode Asynchronous autolog archive mode..It works correctly( except for ddl).Now I have some questions about CDC implementation for large tables.
    I have one senario to implement but I do not find exactly how can I do it correctly.
    I have one table (name test) that consists of 100 000 000 rows , everyday 1 000 000 transections occurs on this table and I archive the old
    data more than one year manually.This table is in the source db.I want to replicate this table by using Change Data Capture to other stage database.
    There are some questions about my senario in the following.
    1.How can I make the first load operations? (test table has 100 000 000 rows in the source db)
    2.In CDC, it uses change table (name test_ch) it consists of extra rows related to opearations for stage table.But, I need the orjinal table (name test) for applicaton works in stage database.How can I move the data from change table (test_ch) to orjinal table (name test) in stage database? (I don't prefer to use view for test table)
    3.How can I remove some data from change table(name test_ch) in stage db?It cause problem or not?
    4.There is a way to replicate ddl operations between two database?
    5. How can I find the last applied log on stage db in CDC?How can I find archive gap between source db and stage db?
    6.How can I make the maintanence of change tables in stage db?

    Asynchronous CDC uses Streams to generate the change records. Basically, it is a pre-packaged DML Handler that converts the changes into inserts into the change table. You indicated that you want the changes to be written to the original table, which is the default behavior of Streams replication. That is why I recommended that you use Streams directly.
    <p>
    Yes, it is possible to capture changes from a production redo/archive log at another database. This capability is called "downstream" capture in the Streams manuals. You can configure this capability using the MAINTAIN_* procedures in DBMS_STREAMS_ADM package (where * is one of TABLES, SCHEMAS, or GLOBAL depending on the granularity of change capture).
    <p>
    A couple of tips for using these procedures for downstream capture:
    <br>1) Don't forget to set up log shipping to the downstream capture database. Log shipping is setup exactly the same way for Streams as for Data Guard. Instructions can be found in the Streams Replication Administrator's Guide. This configuration has probably already been done as part of your initial CDC setup.
    <br>2) Run the command at the database that will perform the downstream capture. This database can also be the destination (or target) database where the changes are to be applied.
    <br>3) Explicitly define the parameters capture_queue_name and apply_queue_name to be the same queue name. Example:
    <br>capture_queue_name=>'STRMADMIN.STREAMS_QUEUE'
    <br>apply_queue_name=>'STRMADMIN.STREAMS_QUEUE'

  • How to load spatial data from .shp file

    Could anyone suggest an easy to use, free tool to upload spatial data from .shp file (or/and other open source spatial file sources) into an Oracle Locator database?
    We have licensing for ArcGIS10, but nobody (including ArcGIS) have been able to successfully create a direct connection from their software to our Oracle 10.2 database.
    Client desktops here are Windows 7 64bit, which further complicates matters (tend to find neither ArcGIS nor Oracle support 64bit OS in a cogent fashion)

    790951,
    . . . .You can also try Oracle's ShapeFile Converter (shp2sdo). It's a command line utility so there's automation potential.
    . . . .Note that ESRI's tools may (depending on how they're used) store spatial content in Oracle Spatial as BLOBs containing their ST_GEOMETRY data-type (rather than Oracle's SDO_GEOMETRY type).
    Regards,
    Noel

  • Error while inserting spatial data

    Hi All,
    I have a problem while inserting spatial data. could some one please help me in solving this.
    I have creatd a table with spatial index.
    INSERT INTO USER_SDO_GEOM_METADATA
                VALUES('SDO_CA_test', 'CA', SDO_DIM_ARRAY(
                    MDSYS.SDO_DIM_ELEMENT ('LON', 71.19545, 120.35101, 0.000005),
                    MDSYS.SDO_DIM_ELEMENT ('LAT', 12.1145, 26.58041, 0.000005)), 8687);
         CREATE INDEX IO_CA_test ON SDO_CAR_test(CA)
        INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('SDO_COMMIT_INTERVAL=10000 SDO_RTR_PCTFREE = 0');when I insert data from another spatail table that does not have a index I get an error.
    insert into sdo_ca_test as select * from base_sdo;
    ORA-29875 Failed in the ececution of the ODCINDEXINSERT routine
    ORA-13354 incorrect offset in ELEM_INFO_ARRAY
    ORA_06512 at MDSYS.SDO_INDEX_METHOD_101 line. 709I believe that there is some incorrect data that is not with my index defination.
    How do I check this invalid data at base_sdo table. The base_sdo table has no index.
    rgds
    Saz
    Edited by: Saaz Ena on Dec 21, 2009 6:16 PM

    Can you try SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
    or SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT? e.g.
    select * from base_sdo a where
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(a.CA, 0.000005) != 'TRUE';

  • Retrieving spatial and non spatial data in one query

    Hello. I am having slight difficulties using JDBC to retrieve both spatial and non spatial data in the same query. The following is code from a sample program of mine that retrives spatial data from spatial tables.
    (In spatialquery geom is a geometry column and city is simply the name of the city):
    try
    Geometry geom = null;
    String database = "jdbc:oracle:thin:@" + m_host + ":" + m_port + ":" + m_sid;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = (OracleConnection)DriverManager.getConnection(database, sUsername, sPassword);
    GeometryAdapter sdoAdapter =
    OraSpatialManager.getGeometryAdapter("SDO", "8.1.7", STRUCT.class, null, null, con);
    String spatialquery = "SELECT a1.geom, a1.city \n" +
    "FROM cities a1";
    Statement stmt = con.createStatement();
    OracleResultSet rs = (OracleResultSet) stmt.executeQuery(spatialquery);
    int i = 0;
    int noOfFeatures = 2;
    while (rs.next())
    for(i = 1; i <= noOfFeatures; i++)
    STRUCT dbObject = (STRUCT)rs.getObject(i);
    try
    geom = sdoAdapter.importGeometry(dbObject);
    catch(GeometryInputTypeNotSupportedException e)
    System.out.println("Input Type not supported");
    catch(InvalidGeometryException e)
    System.out.println("Invalid geometry");
    System.out.println(geom);
    }//end while loop
    This retrieves the sptial data fine, however when I attempt to retreive the non-spatial data I keep getting a "ClassCastException" error. I understand it is something to do with "STRUCT dbObject = (STRUCT)rs.getObject(i);" line. Can anyone tell me how to retrieve both spatial and non-spatial data in the one query using JDBC. I have tried nearly everything at this stage. Cheers joe

    Theresa A Radke
    Posts: 20
    OTN Member Since: Jul, 2001
    retrieving spatial and non spatial in same query. May 23, 2003 12:02 AM
    retrieving spatial and non spatial in same query.

  • Best Practice for Storing Spatial Data in Multiple Projections?

    From what I've been able to determine MS SQL can't do reprojections is that correct? Assuming it is, the state of Washington requires that our GIS data be managed in Washington Stat Plane South
    but for our web mapping sites need the data in Web Mercator.  Is it OK then to have two geometry columns in a spatial enabled table, say a county table, one in WSPS and the other in WM? 
    I’m coming at this from a 30 year background in GIS using ESRI software. 
    Usually we would store the shape / geometry in one projection and project it to other on the fly when needed. 
    That way there is only one definitive source.  I don’t see a way to do this in MS SQL.

    Hi Scott.
    Storing two columns of spatial data is fine in SQL Server. And you are correct that there is no built-in reprojection in SQL Server, most folks do that as part of data loading. There was talk of porting parts of ogr2ogr to SQLCLR, but I don't think anyone
    did that.
    Cheers, Bob

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

Maybe you are looking for

  • ? about image resolution/color correction when apple prints photo book

    My first time making a photo book. I color correct and sharpen all of my images in Adobe Lightroom 2 first. Then I save the jpegs and import into iPhoto to make a book. Is there an option for turning off auto color correction when the file is uploade

  • Classic problems

    I haven't tried to use Classic for ages but today I downloaded some demo software that will only run in Classic and when I tried to launch it I got a message saying that the application couldn't find a printer and telling me to use the Chooser to sel

  • Wireless Internet network adapter

    I recently got an internet adapter for a USB port because I don't have a airport card. The problem is the setup in Internet connect, I"m just not sure how I know I have the configurations correct. The adapter has cd startup, but is only for pc. I dow

  • Dreamweaver CS6 Installation Failed

    I've tried to download Dreamweaver CS6 from the Creative Cloud on 3 different occasions and every time the installation fails. Here is a summary of the errors I encountered:   -------------------------------------- Summary ---------------------------

  • Adoobe Reader "Attempt to access invalid address"

    I have installed Adobe Reader XI.  The installation seems to complete successfully but when I try to launch aplication I get an error with the file path followed by the message "Attempt to access invalid address".  I have tried uninstalling and reins