ORACLE spatial 11g and GRS 80

Hello
I'm working on a project that will require projected and geographical coordinates for different in product files. I have no problem, define, store, extract or corresponding point coordinates. My columns for these coordinates with the SRID 8307 are defined in user_sdo_geom_metadata table as follows:
INSERT INTO
USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES
('INVENTORYGEOMETRY', 'INVGEO', MDSYS. SDO_DIM_ARRAY (MDSYS. SDO_DIM_ELEMENT ('Longitude',-180, 180,.05), MDSYS. SDO_DIM_ELEMENT('Latitude',-90, 90,.05)), 8307);

the index:
creating index 'MYDB '. "' INVGEO_IDX ' on 'MYDB '. "INVENTORYGEOMETRY"("INVGEO") indextype is MDSYS. SPATIAL_INDEX;

However, I'm confused as to how I'm going to have a column that has both geographic and coordinated projected. Am I allowed to set longer SDO_DIM_ELEMENT (s) FRO the SDO_DIM_ARRAY with min/max different values. For example, I'd be able to always use an SRID of 8307 times WGS 84 and data GRS80 (ellipsoid), something like the following:
INSERT INTO
USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES
('INVENTORYGEOMETRY', 'INVGEO', MDSYS. SDO_DIM_ARRAY (MDSYS. SDO_DIM_ELEMENT ('Longitude',-180, 180,.05), MDSYS. SDO_DIM_ELEMENT ("' North latitude-90, 90,.05").
(MDSYS. SDO_DIM_ELEMENT('FIXEDGRID_.5Resolution', 0, 26916,.5)), 8307);

Is that possible or do I have to create a new column in the database?

In addition, I don't know the relationship between the SDO_ELLIPSOIDS and SDO_GEOMETRY tables. You you please explain it to me?

Thank you for any help you can give. I'm confused as to how I'm going to make this work for both geographic and projected coordinates, or if I'll be able to make it work.

Thank you
Erica

Erica,

You have geodetic and projected data in a single column of a table BUT you cannot index in space because the index does not work on the two projections.

You have, says Bryan, create two columns:

create table INVENTORYGEOMETRY (
  fid integer,
  INVGEO sdo_geometry, /* For the geodetic data */
  INVPROJ sdo_geometry /* for the projected data */
);

If you do this, you must create two user_sdo_geom_metadata entries. As you have already done and one for projected data:

INSERT INTO
 USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
 VALUES ('INVENTORYGEOMETRY','INVPROJ',
 MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',0,1000, .05),MDSYS.SDO_DIM_ELEMENT('Y',0,1000, .05)),XXXXX);

Where you replace 0,1000 ranges with your actual data range and XXXXX by your actual SRID projected (for example, 28355 as in the example below).

Now, assuming that this table Gets the INVGEO column populated first (by some external dynamic flow) you could synchronize the column projected via a trigger as follows:

create trigger inventorygeometry_proj_bi
before insert
on inventorygeometry
FOR EACH ROW
begin
   if (:new.invgeo is not null) then
     :new.invproj := mdsys.sdo_cs.transform(:new.invgeo,28355);
   end if;
end;
/

Finally...

In addition, I don't know the relationship between the SDO_ELLIPSOIDS and SDO_GEOMETRY tables. You you please explain it to me?

The SDO_ELLIPSOIDS table is part of the implementation of the projections in the package Oracle Spatial. When you use a SRID in a SDO_GEOMETRY, Oracle uses the SRID to interrogate the underlying tables (which SDO_ELLIPSOIDS is only one member) to get the properties of the projection for example the definition of the ellipsoid being a.

I hope this helps at all.

Don't forget to assign the points you like if our responses are considered correct or useful.

concerning
Simon

Tags: Database

Similar Questions

  • Image SPOT in Oracle Spatial loading

    Hello

    We have a SPOT images with file .dim brandishing the dimensions. Is it possible to load the file into an Oracle Spatial Georaster table?

    Thanks and greetings
    Manoi

    Yes,

    You can use gdal_translate GDAL (www.gdal.org) for this.

    He manages the Dimap SPOT files:

    http://www.GDAL.org/frmt_various.html#dimap

    And manages Oracle Spatial Georaster:

    http://www.GDAL.org/frmt_georaster.html

    See the instructions on how to download and install to:

    http://trac.OSGeo.org/GDAL/wiki/DownloadingGdalBinaries

    If you use Windows, I recommend:

    http://trac.OSGeo.org/OSGeo4W/

    To use GeoRaster you must install "gdal - 1.6" and 'Oracle Spatial libraries' and type:

    C:\ > gdal16

    on the command prompt before using the program version 1.6 gdal_translate:

    C:\ > gdal_translate - of georaster:scott/tiger@orcl input.tif georaster

    Look at the http://www.gdal.org/frmt_georaster.html for more information on how to enter "create options" and specify exactly where you want your GeoRaster to be loaded in your schema.

    Ivan

  • can I use "Oracle Database 12 c: performance management and Tuning" training for the certification "Oracle Database 11g: Performance Tuning 1Z0-054 '"»

    I took "Oracle Database 12 c: new performance management and Tuning" the oracle University training. Now I would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054 ' exam. Is this possible?

    I guess you ask if you can use the course 12 c as long as the condition of course for the review of 11g.  Over 12 c is not listed as one of the options for the 11 g certification and course requirements are normally specific version - at least with DBA certifications.  If you are already an Oracle OCP DBA, of course, there is no requirement of course for the review of performance tuning.  From what I know the training requirements for other certifications, I do not that you will be able to use it. However, Brandye will provide a definitive answer to whether the course 12 c would be acceptable for 11g certification.

    That said, I'm with John - 12 c review is about a community of 85 to 90% in the review of the 11g and is currently about 20% of the price while it is in beta.  What is the point of trying to cross the releases?

  • Oracle 11g and Fusion license

    Hi all

    We want to buy a licsense to the following.

    Oracle Database 11g R2.

    Fusion Middleware 11g Release 1 (11.1.1.7.0)

    WebLogic server 10.3.6

    Oracle Forms and reports 11g 2 (11.1.2.x)

    I have the following queries.

    1. What are the prices?

    2. how many license, we should buy for each?

    3. how much licnense for Oracle Forms and reports 11 g 2 (11.1.2.x).

    We have 10 developers who will develop the applications.

    4. all other guidelines?

    Kind regards.

    All prices and details of licenses how much you need, are on the Store of Oracle, http://shop.oracle.com

    If you want discounts, talk to a dealer! They are more likely to negotiate than Oracle (I know - I work for one).

    --

    John Watson

    Oracle Certified Master s/n

  • Re: Diff between Applications Oracle 11 g and 11g rel2 rel1

    Hello

    Please guide me through a few doc. ID that can tell me the difference between rel1 rel2 11g and 11g.

    Kind regards.

    My bad, sorry!

    Please see these docs/links.

    New features Guide
    http://www.Oracle.com/pls/db112/to_toc?pathname=server.112/e22487/TOC.htm

    Oracle 11 g 2 new features
    http://bit.LY/uBjcZX

    Thank you
    Hussein

  • Oracle 11g and the APEX version

    Hello

    My understanding is that APEX 4.0 comes by default with Oracle 11 g. recently, we have the oracle 10 g updated to 11g and our admin has mentioned that APEX verision shows APEX 3.2.1...

    Please advice...

    Thank you

    No, you'll need to download and install 4.0.2 assuming you want the most recent apex.

  • GML polygon holes and Oracle Spatial polygon those - different standards?

    Hi people,

    I'm working through some reflected in Oracle Spatial via 3 GML geometries validation issues. A small number of polygons is coming with 13349 errors. Looking closer I see all involve situations where there is a hole to touch the outer ring at a single point. GML is representative this hole in the outer ring. Here's an example simplified with bad ascii art (be nice if the forum was a way to post pictures):
     A----------B
     |..........|
     E----F.....|
     |\   |.....|
     |.\  |.....|
     |..\ |.....|
     |....G.....|
     |..........|
     D----------C
    A valid Oracle Spatial polygon would be an outer ring of A.B, C, D, E, A and the inner ring of E, F, G, E.
    However, the GML arrived like a ring outside of A, B, C, D, E, G, F, E, A, who once loaded into Oracle Spatial up 13349 error. SDO_UTIL. FROM_GML311GEOMETRY does not resolve this error but goes right through.

    I spent some time on the documentation of GML, and it does not seem that the standard GML polygon expressly rules on the matter. This document,
    http://www.gdmc.nl/publications/2004/Invalid_Valid_Clean_Polygons.PDF
    seems to confirm this assertion. When we talk about ISO 19107, which forms the basis of the subject polygon GML, the author says in addition, "it is not directly obvious if the outer limit is allowed to touch itself or if it is allowed to touch the inner limits and if so, under what conditions it could."
    Is - it sounds good to you all?
    Note that the WKT specification does not actually say that these holes must be the same stored in Oracle Spatial. Therefore, one question GML.

    So assuming the GML specification allows the storage of polygons with holes of the two types, it seems we until his side Oracle Spatial things to correct the situation, when we meet it? I would suggest that perhaps SDO_UTIL. FROM_GML311GEOMETRY should detect and solve this problem as a matter of course, but I know the issue of rotation ring WKT (SDO_UTIL.) FROM_WKTGEOMETRY seems to ignore the ring rotation Oracle Spatial position is that these incoming error correction is the individual user to address problem. Anyone have any ideas on the issue?

    Note This SDO_UTIL. RECTIFY_GEOMETRY does not seem to solve the problem. I need to write a wrapper to walk the vertices of the ring and sniff for summits in double and then redeploy a hole when the situation is. Am I missing something?

    Thank you and happy Friday,

    Paul

    Paul,

    Frankly, we didn't expect the GML definition differs from that of the simple feature specification that complies
    with the Spatial model. If we had never expected this problem.

    Anyway, the sdo_util.rectify_geometry () should solve the problem depending on your version of database.
    Otherwise, try self-union with the call to sdo_geom.sdo_union () and it should fix the geometry to make a polygon
    with an exterior and an inner ring.

    Siva

  • JavaMail 1.4.5 Oracle database 11g can not send an attachment file

    I use oracle 11g and 1.4.5 javamail to send e-mails via pl/sql, all work fine, but when I add the attachment to the email that she stops with a null pointer exception error

    Exception in thread "Thread root" java.lang.NullPointerException

    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226)

    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299)

    to javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375).

    is there a compatibility problem between javamail and dab 11g or I miss some configurations for the destination of the attachment?

    Thank you

    Sorry, I can't say what's not without more details.  Can you show the code that you use to create the message?

    Also, if possible, you should consider the upgrade to JavaMail 1.5.5.

  • Electrodes for Oracle spatial 11.2.0.4.0

    What patches are needed for Oracle spatial 11.2.0.4.0?

    I don't know what kind of response you expect an open question...

    Simply apply the last power supply and go from there.

    Bryan

  • Find the minimum distance between two SDO_GEOMETRY in Oracle Spatial?

    annular ring edit.png

    A circle (SDO_GEOMETRY)
    B - polygon (SDO_GEOMETRY)

    CASE:
    B contains A (or)
    The Interior of B.

    How to find the minimum distance between A and B in Oracle Spatial

    Hello guuid nameless person.

    What is

    my_answer := MDSYS.SDO_GEOM.SDO_DISTANCE(
       my_circle_geometry
      ,MDSYS.SDO_UTIL.POLYGONTOLINE(my_outer_polygon)
      ,my_tolerance
    );
    

    Now, you may need to pay attention to the holes in your polygon, would you the distance and an inner ring if it was closer to you?

    If the measure is only to outer rings, so something like

    my_answer := MDSYS.SDO_GEOM.SDO_DISTANCE(
       my_circle_geometry
      ,MDSYS.SDO_UTIL.POLYGONTOLINE(
          MDSYS.SDO_UTIL.EXTRACT(my_outer_polygon,1,1)
       )
      ,my_tolerance
    );
    

    And then also beware of the multipolygons as the foregoing only measured against the first polygon in the MultiPolygon.  You need to loop through the polygons of tests just the outer ring in this case.

    See you soon,.

    Paul

  • Oracle forms 11g link java updated request each time, ends up with a blank page

    Hello

    Kindly advice the cause of the issue where my form link 11g oracle launches not required to install the update of java every time after installation of java 8 that it will end with .a page blank for a second time if refresh us the page new message opens to install JAVA8. But same link if I use Windows 7 64 bit IE9, the link works correctly.

    Here is the version of the product

    Form of Oracle & report 11g R2 (11.1.2.2.0) (64-bit)

    Oracle Weblogic Server 10.3.6 (64-bit)

    Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production.

    Standard Windows Server 2012

    Internet Explorer: 10

    WebLogic and WLS_FORMS server is running

    link is http://10.184.152.210:8888/forms/frmservlet? config = rom

    Kind regards

    Supriya.

    The Forms Runtime will use the version of Java that are specified in the formsweb.cfg.  Take a look at your formsweb.cfg and check the jpi_classid = and jpi_mimetype = parameter values and put them in the Java version you want to use.

    Craig...

  • Oracle spatial in ArcSDE

    I am new to oracle spatial and GIS in general. I have a customer who requires diapers space oracle to create in the environment of ESRI ArcSDE.

    anyone can guide me please?

    Hello

    When you create a new class of functionality using ArcCatalog (ESRI ArcGIS Desktop software), you can set the configuration to "SDO_GEOMETRY. This new layer will be saved with ArcSDE system tables and stored in an oracle spatial format.

    of course, you must have activated in your Oracle Spatial database.

    you will find many technical articles on the web on this topic.

    Kind regards

  • Oracle Webcenter 11g R8 recognition forms

    Hello friends,

    Can we install the recognition of forms Oracle Webcenter 11g R8 Windows Server 2012?

    According to my knowledge we can install on Windows 2008 R2.

    I went through the matrix of certification but cannot find my answer.

    -Thank you,

    Prashant.

    Hi Prashant,

    WebCenter 11.1.1.8.0 pattern recognition is not certified against Windows 2012. The operating system that is certified only for this version are Windows Server 2008 R2 and Windows 7.

    NIC

  • Cannot find or load the class main oracle.spatial.util.SampleShapefileToJGeomFeature?

    Hello

    Am getting error below when ESRI shapefile running in the oracle database table.,.

    C:\ > java - cp G:\app\product\11.2.0\dbhome_1\jdbc\lib\ojdbc14.jar; G:\app\product\

    11.2.0\dbhome_1\md\jlib\sdoutl-1.0.jar;\g:\app\product\11.2.0\dbhome_1\md\jlib\s

    doapi - 1.0.jar oracle.spatial.util.SampleShapefileToJGeomFeature localhost h Pei

    Forms - sn of 1521 orcl u MDSYS selva d t f F:\saptial\Africa.shp - r 8307 - g ge

    ometry

    Error: Could not find or load the class main oracle.spatial.util.SampleShapefileToJGeomFeature

    Uses the java version

    C:\ > java-version

    Java version "1.7.0_51".

    Java (TM) SE Runtime Environment (build 1.7.0_51 - b13)

    The Client Java VM (build 24.51 - b03, mixed mode, sharing)

    And also tried in MapBuilder sound fine work., but I need to import java utility assistance help me too this.,.

    I tried below in this way and solved problem.,.

    Until I downloaded

    sdoutl - 11.2.0.jar and sdoapi - 11.2.0.jar used to import a shp file...

    C:\>set ORACLE_HOME=G:\app\product\11.2.0\dbhome_1

    C:\Users\SELVA>CD downloads

    C:\Users\SELVA\Downloads>CD statplanet_zambia

    Card C:\Users\SELVA\Downloads\StatPlanet_Zambia>CD

    located in a particular way and my oracle home

    C:\Users\SELVA\Downloads\StatPlanet_Zambia\map>set ORACLE_HOME=G:\app\product\11.2.0\dbhome_1

    C:\Users\SELVA\Downloads\StatPlanet_Zambia\map>java - classpath %ORACLE_HOME%\jdb

    c\lib\ojdbc5.jar;%O RACLE_HOME%\md\jlib\sdoutl-11.2.0.jar;%O RACLE_HOME%\md\jlib\sdoapi-11.2.0.jar oracle.spatial.util.SampleShapefileToJGeomFeature h localhost Pei 1521 - orcl u MDSYS selva t Zambia SF map geometry 8307 d - g - r

    Host: localhost

    Port: 1521

    SID: orcl

    db_username: MDSYS

    DB_PASSWORD: selva

    db_tablename: Zambia

    shapefile_name: map

    SRID: 8307

    db_geometry_column: geometry

    Connection using Oracle10g...

    localhost, 1521, orcl, MDSYS, selva, Zambia, map, null, 8307

    Old table of fall...

    java.sql.SQLException: ORA-00942: table or view does not exist

    Creating a new table...

    9 response (s) converted.

    Fact.

    Thank you

    Selva

  • spatial index and normal index

    Hi space specialists,.

    I have a question for spatial index performance and how Oracle manages queries that have a space and regular condition combined. We are on the Oracle 10 g Enterprise Edition Release 10.2.0.4.0 database

    Take a query like this one (not a real query but based on the type of query that is generated by ArcGIS):

    Select objectid

    attribute

    geometry

    table

    where mdsys.sdo_filter (geometry, mdsys.sdo_geometry (: gtype1,: srid1, null,: elem_info1,: ordinates1), 'querytype = window') = 'TRUE '.

    and attribute = value

    In our scenario, we have a lot of rows in the table (2 million), but we have only a few lines (2000) where attribute = value.

    It seems that there is a scenario where the performance is really bad. It takes 5 seconds for the query to return the results and you're just too slow for our needs. There is a spatial index on a geometry and a normal index on the field for the attribute. The plan of the explain command shows that both the spatial index and the index of the attribute are used.

    Of course, we can break to the top of the table in separate tables by object type. This would make the index space datamodel much more efficient, but at the expense of our current simple, abstract.

    Do you have suggestions on how we can improve performance without too much impact on our datamodel? Oracle for example has an option where you can create a spatial index on a subset of the data in a table?

    Thank you!

    Rob

    Do not know whether or not the following works for your case:

    use the column range-key attribute to create a partitioned table Beach and then create a local spatial index.

Maybe you are looking for