Debugging data in spatial

I have shape file converted to oracle spatial fromat using shp2sdo.exe.
I did load the data but when I try to validate it , give me the following .I do understand that 13349 means self crossing and 13356 means duplicates .
How do I eliminate these error . The data is huge (2227) rows.I have no clue which co ordinates in which polygon is incorrect.Is there a way I can debugg this data ?Please help.
SQL> SELECT * FROM VALIDATE_RESULTS;
SDO_ROWID
STATUS
Rows Processed <2227>
AAAMncAAEAAAEzGAAD
13349 [Element <1>] [Ring <1>][Edge <68>][Edge <65>]
AAAMncAAEAAAEziAAF
13356 [Element <1>] [Coordinate <2>][Ring <1>]
SDO_ROWID
STATUS
AAMncAAEAAAEzmAAO
13349 [Element <1>] [Ring <1>][Edge <10>][Edge <5>]
AAAMncAAEAAAEznAAG
13349 [Element <1>] [Ring <1>][Edge <106>][Edge <133>]
AAAMncAAEAAAE0LAAM
13349 [Element <1>] [Ring <1>][Edge <95>][Edge <106>]
SDO_ROWID
STATUS
AAMncAAEAAAE0lAAC
13349 [Element <1>] [Ring <1>][Edge <42>][Edge <46>]
AAAMncAAEAAAE0xAAH
13356 [Element <1>] [Coordinate <3>][Ring <1>]
AAAMncAAEAAAE2dAAL
13356 [Element <1>] [Coordinate <11>][Ring <1>]

please the meta data :I dont think this is the problem with tolerance.
But can I use sdo_union on the geometry itself to correct this error . Will this cause error in the object geometry.
SQL> select * from user_sdo_geom_metadata where table_name='CITYZONE';
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
CITYZONE
LOCATION
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 3179015.83, 5444387.95, 5.0000E-10), SDO_DIM_
ELEMENT('Y', 119635.875, 590467.426, 5.0000E-10))
41117
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID

Similar Messages

  • Sun Gathering Debug Data

    I wanted to let everyone on this list know about a new set of tools called Sun Gathering Debug Data (Sun GDD or GDD).
    GDD is a way to better equip and educate customers who need to contact the Sun Technical Support Center on what debug data they need to provide the first time they call. For each product covered, GDD tools provide documentation and scripts that detail the relevant data the Sun Technical Support Center requires for analyzing problems. The tools gather 90% of the debug data frequently requested by the Sun Technical Support Center, including data for more common critical situations such as memory, start/stop, installation, hang, and crash issues. By collecting this data before initiating a Service Request, customers can substantially reduce the time needed to analyze and resolve the problem.
    The first release of GDD supports Messaging Server and Calendar Server, as well as many of the Java ES components, on all of the released operating systems. Support for other products is also currently underway. For more information on GDD, see the following URL :
    http://www.sun.com/service/gdd/index.xml

    I'm not using any specific API for POI yet as I haven't been able to find much info on it online. Could anyone recommend free POI API sources out there?

  • IPad Console Debug data

    *As many other, I have had wireless problems including intermittent connectivity as well as the loss of WEP security settings. After 5 days of reading these posts and troubleshooting, I decided to get into Xcode and start some debugging. I wanted to post some preliminary data so that others could get a look at it right away. I will do some thorough testing today and post the results here.*
    Here are some things I figured out so far. I have listed my findings and the supporting debug data below. (debug info is in italic)
    -John
    *Some setup info:*
    I am using Verizon Fios provided Actiontec (Firmware Version: 4.0.16.1.56.0.10.11.6)
    I have had 50% less failures using WPA2 as compared to using WEP
    _+AppleBCMWLAN Joined BSS: @ 0xc3d1d800, BSSID = 00:18:01:eb:72:87, rssi = -49, rate = 54 (100%), channel = 3, encryption = 0xc, ap = 1, failures = 0, age = 2, ssid 5 = "M9YW1"+_
    All of my tests have been about 15 feet from the router while tethered over USB to be able to receive the debug data. The battery status is "not charging" since I am on a Macbook, however the power is sustained and not dropping power.
    1. There are several power modes and they are changed before and after IP address is received over DHCP. The power management scheme looks to raise the power to the device during network discovery and DHCP discovery, and then lower the power after the IP is received.
    2. Clicking on the wireless section inside of the settings menu causes a "wakeup" of the interface if it has become unresponsive.
    3. The following error regarding network cache shows my network name M9YW1. This error repeats about 20 times and correlates to the times the wireless drops.
    _+WiFiManager(Private) _scanCompletedWithResults:: Had to add our current network(M9YW1) back into our network cache+_
    4. Bad gateway error comes up periodically even though previous debugs show the correct address, as well as the devices settings reflecting it's using the correct address. (not to mention it's communicating with the router just fine up to this point)
    _+<Debug>: nd6_rtrequest: bad gateway value: en0+_
    5. This one is interesting since I am using WPA and it still returns a True for WPA and WEP.
    _+WiFiNetworkGetProperty CaptiveNetwork for M9YW1 : isHidden=0, isEAP=0, isWPA=1, isWEP=1 returned NULL+_
    Interface coming up and getting IP:
    _+AppleBCMWLAN::setPOWER() configd: Setting power state to 1+_
    _+AppleBCMWLANNetManager::prepareToBringUpLink(): Delaying powersave entry in order to get an IP address+_
    _+AppleBCMWLANNetManager::receivedIPv4Address(): Received IP Address: entering powersave mode: 2+_

    I'm curious, have you found anything else out? I'd like to hear this is just a software issue that can be corrected in an update. An update that we get hopefully soon..

  • Updating data in spatial

    Dear Sir,
    i have table plan and projects and spatial table called roads and first fime i have stored data into roads table with projects and plan next time i want to update road and keep old road data and new road data. how do i maintain displaying both old and new data of that road. please can any one help me in this matter.
    i want to maintain the roads updated information in projects table with plan table.
    Thanks
    Kabeer

    Kabeer,
    There are many ways to do this.
    I add columns to the table which are DATE and contain VALID_FROM and VALID_TO values.
    It really depends on what you want to be able to do.
    Regards.
    Ivan

  • Import data to spatial from another resoucres?

    Hi all!
    can anybody help me how to import data to oracle spatial from another resoucre such as : google map, bing...?
    thanks
    Edited by: OBIEE.vn on Dec 3, 2010 8:24 PM

    It depends how did You saved acquired data. It is possible for sure.
    First step, for example, would be to acquire data as KML file from par example google earth.
    Than You have an option to manipulate and manage them.
    You can as well convert data from KML to SDO_GEOMETRY data type.
    For this You can use already created SDO_UTIL.FROM_KMLgeometry.
    Note here, that KML input should start with one of the geometry tags like LinearRing, Polygon, etc.
    Additionally, if You manipulated Your KML file and transformed it to simple data without geographic coordinates - spatial reference,
    You can geocode them with par example GEOCODE_ASGEOMETRY function of oracle geocoder.

  • Load LiDAR data into Spatial 11g making use of Point Cloud Type?

    Dear all,
    from an aerial LiDAR scan I have approximately 226 million points, spread over 9 files. I would like to load them into Oracle Spatial 11g, making use of the new point cloud data type. I have the book "Pro Oracle Spatial for Oracle Database 11g" here and Appendix E explains how you have these two tables that together manage your point cloud. I find the example given in the book rather simplified though as they have only x, y and z and a row id colum. In addition to this I also have r, g, b and i (intensity) values.
    I was wondering if anyone could give me a hint on how to store all the information in one table and making use of the sdo_pc data type at the same time.
    Also, the example has the points already in a table, but I'd like to load it all directly from my files into the point cloud table (I know how to use sqlldr, but how do I get it into this point cloud table structure). What's the cleverest way to go about this?
    All ideas are greatly appreciated!!
    Regards,
    Bia.

    Hi,-
    Our LAS converter supports LAS 1.1 format.
    LAS version 1.0 has fewer entries for the data than LAS version 1.1 so you might just ignore those extra fields that donot exist in LAS 1.0.
    Therefore, i am expecting your data to be fine with our LAS to SDO_PC converter.
    Thanks

  • Validating data in spatial

    Hi,
    I converted a shape file to oracle format and loaded the data . But when i validated it it gives me 13011 error which means out of bounds. I not sure what srid (i chose 8307) and the bounds for it ???
    data which looks as follows:(open_sapce.dat file)
    =================================================
    State Of Oregon|Southern Oregon University|SOU Baseball / Softball Fields|Public|Athletic Field|0|
    #3|8307|
    #1|3|1|/
    #4327093.427897|198680.415369|4327104.000246|199110.295040|
    #4327234.802757|199108.527439|4327270.154787|199237.562348|
    #4327554.738629|199223.421536|4327648.421509|199154.485078|
    #4327706.752358|199242.865153|4328270.294421|198845.513395|
    #4328263.777394|198642.399376|4328171.631553|198647.183447|
    #4327093.427897|198680.415369|/
    Could somebody please help me with this.

    The SRID 8307 is for lat/long (WGS84) and the data sample you provided appears to be some kind of State Plane data set (X,Y in feet or metres). If you are unable to ascertain the coordinate system from your data provider, and you have no immediate need for reprojection I would recommend loading your data without the SRID (i.e. remove the -s 8307 from your shp2sdo command). A null SRID is generally fine for most spatial data visualisation tools.
    Once you have all the data loaded you can update your SDO_GEOM_METADATA record with the actual extents derived using the SDO_AGGR_MBR function (Ref: http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10826/sdo_aggr.htm#g997489)
    An example of how this function returns results is:
    SQL> select sdo_aggr_mbr(geom) from mvdemo.counties;
    SDO_AGGR_MBR(GEOM)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_O
    SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR
    AY(-179.14481, -14.60521, 179.76416, 71.332649))Once you have the MBR coordinates, you can then replace the USER_SDO_GEOM_METADATA record for the table.
    For example (note I have used something resembling the data you have)
    SQL> DELETE from USER_SDO_GEOM_METADATA where table_name = 'OPEN_SPACE';
    SQL> INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('STATES','GEOM',
         MDSYS.SDO_DIM_ARRAY(
              MDSYS.SDO_DIM_ELEMENT('X', 4300000 , 4400000 , 0.05), 
              MDSYS.SDO_DIM_ELEMENT('Y', 198000, 200000  , 0.05)),
         NULL
         );     Once you know the correct SRID (I am hoping someone more familiar with U.S. data responds, and you can find the SRID you need in the MDSYS.CS_SRS table) you can modify the script with the correct SRID and you can update your data with accordingly using a script like:
    SQL>Update STATES c set c.GEOM.SDO_SRID=99999;Cheers,
    Ross.

  • Debugging data flow

    Hi,
    I know that in BI 3.X version we have update rule and transfer rule.
    In BI 7 we have transformations and DTP.
    In 3.X u2013 Data comes to PSA and then goes to Infosource and reaches the data target via Infopackage.
    In BI 7 u2013 Data comes to PSA via Infopackage and from there goes to data target by DTP which executes the transformations.
    There should be an ABAP program to execute the above data flow.
    All I want to know the name of the program and how the 3.X data flow & 7 data flow process can be debugged?  Because as the debugging gives more opportunity to understand the process better. 
    Regards,
    Lakshminarasimhan.N

    Hi Lakshminarasimhan.N:
    Take a look at the documentation below.
    "Steps to Debug Routines in BI Transformations" article by Rudra Pradeep Reddy Neelapu.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/205e46d2-0b30-2d10-cba0-ea9dba0cb1aa?quicklink=index&overridelayout=true
    "SAP NetWeaver 7.0 BI: Extended Capabilities to Debug a Data Transfer Process (DTP) Request" Weblog by Michael Hoerisch.
    /people/community.user/blog/2007/03/29/sap-netweaver-70-bi-extended-capabilities-to-debug-a-data-transfer-process-dtp-request
    "Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations" article by Nageswara Reddy M.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0038ad7-a0c7-2c10-cdbc-dd674682c8e7?quicklink=index&overridelayout=true
    Regards,
    Francisco Milán.

  • Is it possible to down load the debugging data?

    Hi Experts ,
    could you please confirm me whether can we download the data what ever it is displaying in debugg mode
    Thanks.

    dear
    you can download the data to the excel .
    When u are in debugging mode in the menu bar you will find tht option .
    but some time on production you dont have that rights for that please contect to BASIS people so they could provide u the rights .
    Regds ankit

  • RSA3 - Zfield not populating with data.In debugging data is there in BADI

    Hello,
    Added a new Z field to datasource 0CRM_SRV_PROCESS_H.
    Everything Activated in RSA6 and everything is fine.
    Code writeen in BADI CRM_BWA_MFLOW.We checked while debugging the field is getting populated when we modified the internal table CT_DATA data.
    But when we run the RSA3 and check the data the field is there but data is not coming and its coming is blank.
    Everything checked and it looks fine.Request response if someone can guide the reason or the cause that is missed out.
    Thanks,
    Rahul

    Hi,
    Please check if OSS 692195  helps.
    -Vikram

  • Debugging data load from ODS to InfoCube?

    Hi Expert,
    I got some errors when I load data from ODS to Cube. I tried to simulate the load, but I got No data in PSA table. I checked mt Infopakage, it is only update Datatarget directly. How can I debug in this situation. I have only that choice "Data Target only" How can I select update Cube through PSA? Thanks in advance!
    Weidong

    Hi robert,
    Thanks for your reply! Do I have to delete the old one? It looks like that system generated two Infopackages - One is full update and another one is Initial update. I think that I have to delete both of them and re-created both, right? Thanks  a lot!
    Weidong

  • To insert geometry data into spatial oracle table

    How to insert a WKB data with SRID into a geometry column of spatial oracle? I am using OCCI methods.

    Welcome to the Database-General forum.
    Oracle Spatial has a dedicated forum over here: Spatial

  • Creating connectivity data from spatial data

    Hi,
    I have some spatial data, of which I will try to describe the relevant aspects:
    - A LineSegment table, which contains information on cables, including Area ID (approx 4 million rows)
    - A Location table, which contains a LineSegmentID (one-to-one), and a Geometry (spatial) column (approx 4 million rows).
    What I need to do is create a new table, containing conceptual "nodes", containing the following columns:
    - NodeID (number)
    - LineSegmentID (number)
    - LineSegmentEnd (1 or 2)
    So I need to work out, for each cable, which other cables it connects to, by comparing its endpoints with the endpoints of other cables in the same area. An area contains up to 464 cables. There are a total of 160 thousand areas.
    I am trying to work out the most efficient way of achieving this, ideally by performing a batch job that will take less than half an hour. Oracle is relatively new to me, but I am guessing the correct approach would be to use a series of intermediate (staging) tables, as I believe nested cursors would be way too slow (I have performed a simple test to confirm this).
    I guess I will need to extract, into a temp table, the start point and end point of each cable using SDO_LRS.GEOM_SEGMENT_START_PT and SDO_LRS.GEOM_SEGMENT_END_PT, along with area ID. Then join the table with itself and use SDO_GEOM.SDO_DISTANCE to work out which points are close to each other (e.g. less than one metre). However I am struggling to outline a step by step process.
    Does anyone have any thoughts which may help?
    (Oracle 11g)
    Thanks

    As requested Karthick. Please get back to me with any questions...
    create table line_location (lineid number,
    geometry sdo_geometry);
    create table line (id number, areaid number);
    -- one cable in area 1, 2 in area 4, etc.
    insert into line values (1, 1);
    insert into line values (2, 4);
    insert into line values (3, 4);
    insert into line values (4, 3);
    insert into line values (5, 3);
    insert into line values (6, 3);
    insert into line values (7, 2);
    insert into line values (8, 2);
    insert into line values (9, 2);
    insert into line values (10, 2);
    -- in reality the lines aren't necessarily straight and simple like these...
    insert into line_location values (1, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(10,1,10,4))); -- area 1
    insert into line_location values (2, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(3,9,5,9))); -- area 4
    insert into line_location values (3, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(5,9,5,10))); -- area 4
    insert into line_location values (4, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(1,1,2,1))); -- area 3
    insert into line_location values (5, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(2,3,2,1))); -- area 3
    insert into line_location values (6, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(2,3,3,3))); -- area 3
    insert into line_location values (7, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(5,3,5,4))); -- area 2
    insert into line_location values (8, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(4,4,5,4))); -- area 2
    insert into line_location values (9, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(5,9,6,4))); -- area 2
    insert into line_location values (10, MDSYS.SDO_GEOMETRY(2002,3785,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(5,7,5,9))); -- area 2
    create table node_line (node_id number,
    line_id number,
    endpoint_id number, -- 1 for startpoint, 2 for endpoint,
    area_id number
    -- expected output here. if two lines are less than 0.5 from each other, then they should share a node.
    insert into node_line values (1, 1, 1, 1); -- isolated cable in area 1, start point node
    insert into node_line values (2, 1, 2, 1); -- isolated cable in area 1, end point node
    insert into node_line values (3, 2, 1, 4); -- area 4, cable 2, start point node
    insert into node_line values (4, 2, 2, 4); -- area 4, cable 2, end point node
    insert into node_line values (4, 3, 1, 4); -- cable 2's end point node = cable 3's start point node, etc
    insert into node_line values (5, 3, 2, 4);
    insert into node_line values (6, 4, 1, 3); -- node at (1,1)
    insert into node_line values (7, 4, 2, 3); -- node at (2,1)
    insert into node_line values (8, 5, 1, 3); -- node at (2,3)
    insert into node_line values (7, 5, 2, 3); -- node at (2,1)
    insert into node_line values (8, 6, 1, 3); -- node at (2,3)
    insert into node_line values (9, 6, 2, 3); -- node at (3,3)
    insert into node_line values (10, 7, 1, 2); -- node at (5,3)
    insert into node_line values (11, 7, 2, 2); -- node at (5,4)
    insert into node_line values (12, 7, 1, 2); -- node at (4,4)
    insert into node_line values (11, 7, 2, 2); -- node at (5,4)
    insert into node_line values (13, 7, 1, 2); -- node at (5,9)
    insert into node_line values (14, 7, 2, 2); -- node at (6,4)
    insert into node_line values (15, 7, 1, 2); -- node at (5,7)
    insert into node_line values (13, 7, 2, 2); -- node at (5,9)

  • 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.

  • Dates appear different in log file vs. debug page for Deferred Task

    I added a deferred task and in the log file, the date appeared correctly as
    Mon Dec 15 16:34:11 PST 2008
    But when I viewed the user in the debug page, the date appeared as
    <Date>2008-12-16T00:34:11.430Z</Date>
    I called an external java class that return a Date object
    <Action id='0' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='addDeferredTask'/>
    <Argument name='date'>
    <invoke name='addWeekDays' class='MyDateUtil'/>
    </Argument>
    </Action>
    Do you have any ideas?

    IDM commonly stores dates in a Java or JDBC date format (which is what your debug date is) but often formats the date differently for log files and for web pages. It's annoying if you're trying to line two different outputs up.

Maybe you are looking for