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

Tags: Database

Similar Questions

  • 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

  • PostGis data .xls to load into Oracle spatial.

    Hi all


    Data extracted on postGis data in a .csv

    Load data into Oracle Spatial 10 G R/2, this conversion to SDO_GEOMTERY compatible!


    Object LOCATION
    POINT (151.176476484116 - 33.8052644650542)
    B POINT (151.206652660049 - 33.8739804536964)
    C POINT (151.119743998673 - 33.7843109035407)
    D POINT (151.199837258644 - 33.8860405175587)
    E POINT(151.174838115067-33.8106921744621)
    F POINT (151.295093932928 - 33.7306503576515)
    G POINT (151.670928051977 - 30.4974655838254)
    H POINT (151.092489089026 - 33.6829842680288)
    I POINT (151.09253200437 - 33.6836270576402)


    How to load this .xls in oracle and transform the place in sdo_geometry

    Hello
    You can use sql loader or an external table to import your data.
    As your location data are in WKT format, it will be easier to use a temp. table (tmp_obj_loc).
    It might be easier to add ',' as delimiters between each column in your data.

    The following example uses sqlldr (the temporary table can be created as an external table):

    -- create a temp. table to hold your location info.
    drop table tmp_obj_loc ;
    
    create table tmp_obj_loc (
    obj varchar(20),
    loc varchar2(200)
    );
    
    -- sqlldr example
    -- use a control file if needed
    -- this creates the temp table
    
    options (skip = 1)
    load data
    infile *
    into table tmp_obj_loc
    fields terminated by ','
    (obj ,
     loc
    )
    BEGINDATA
    Object LOCATION
    A, POINT(151.176476484116 -33.8052644650542)
    B, POINT(151.206652660049 -33.8739804536964)
    C, POINT(151.119743998673 -33.7843109035407)
    D, POINT(151.199837258644 -33.8860405175587)
    E, POINT(151.174838115067 -33.8106921744621)
    F, POINT(151.295093932928 -33.7306503576515)
    G, POINT(151.670928051977 -30.4974655838254)
    H, POINT(151.092489089026 -33.6829842680288)
    I, POINT(151.09253200437 -33.6836270576402)
    
    -- create your location table with sdo_geometry from the temp table
    -- 8307 is the SRID, replace if needed
    
    drop table object_location;
    
    create table object_location
    as select obj object, sdo_geometry(loc,8307) location
    from tmp_obj_loc;
    
    desc object_location ;
    select count(*) from object_location;
    

    Jack

  • How to find the ANGLE b/w two edges in Oracle Spatial

    How to find the ANGLE b/w two edges on Oracle Spatial. I have two edge connected on the same node. I wanted to know the angle betwwn them. Can someone help me?

    Ok. My first example is an approximation. Further you get North or South of the Ecuador, gets the more vague.
    This one should do the trick with some degree of precision.

    declare
      PI constant number := 3.14159265358979;
      g1 sdo_geometry;
      g2 sdo_geometry;
      g3 sdo_geometry;
    
      angle1 number;
      angle2 number;
    
      FUNCTION POINT(P_LAT  IN number
                    ,P_LONG IN number)
        RETURN MDSYS.SDO_GEOMETRY IS
      BEGIN
        -- we load both the ordinate array and the point type because some spatial functions show inconsistent behavior
        -- it is not important for this example, just something to be aware of
        return(mdsys.sdo_geometry(2001,8307 -- WGS84
                                 ,mdsys.sdo_point_type(p_long,p_lat,null)
                                                      ,mdsys.sdo_elem_info_array(1,2,1)
                                                      ,mdsys.sdo_ordinate_array(p_long,p_lat)));
      END;
    
    begin
    
      -- For the example, project in WGS84
      -- g1,g2,g3 could also come straight out of the database as sdo_geometry
      g1 := point(50, 7);          -- Point A
      g2 := point(51, 7);          -- Point B
      g3 := point(50,10);          -- Point C
    
      angle1 := atan2(g2.sdo_point.x - g1.sdo_point.x,
                      g2.sdo_point.y - g1.sdo_point.y);
      angle2 := atan2(g3.sdo_point.x - g1.sdo_point.x,
                      g3.sdo_point.y - g1.sdo_point.y);
    
      -- depending on rotation and where we are on the planet, adjustments may be needed
      if angle1 < 0      then angle1 := angle1 + 2 * PI; end if;
      if angle2 < 0      then angle2 := angle2 + 2 * PI; end if;
      if angle2 < angle1 then angle2 := angle2 + 2 * PI; end if;
    
      dbms_output.put_line('Angle between the lines A-B and A-C: '||
                           round(sdo_util.convert_unit(angle2-angle1,'Radian','Degree'),1));
    end;
    
    Angle between the lines A-B and A-C: 90
    
  • 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

  • Import the layer of ESRI file in Oracle Spatial database

    For my current project, all geographical data are stored in files in ESRI layer. I want to convert SDO_GEOMETRY type and load into the Oracle Spatial database. I checked the OTN site, they provided a utility to load the shapefiles to ESRI in Oracle Spatial database, which does not work for my files from ESRI layer. Does anyone know how to convert a layer of ESRI file? I Googled it and can't find any useful information. Thanks for the help!

    FME will take care of it. It is a commercial product of SAFE, but you can get a trial version 30 days on their web site. I have used this method on several projects, I saw the.

    Ivan

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

  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

  • JDBC Oracle driver loading tests... Failed:

    Test the Oracle Home located at C:\app\oracle\product\11.2.0\instantclient-basic-nt-11.2.0.4.0\instantclient_11_2

    Test client directory... Ok

    JDBC Oracle driver loading tests... Failed:

    C:\app\oracle\product\11.2.0\instantclient-basic-NT-11.2.0.4.0\instantclient_11_2\jdbc\lib\ojdbc6.jar is not a valid jar

    I downloaded and extracted the zip instantclient-jdbc-nt - 11.2.0.4.0 Oracle Technology Network, several times.  Yet, receive the same error weird test Oracle SQL Developer Version 4.0.1.14.  The ojdbc6.jar file was extracted in the instantclient_11_2, not the subdirectory lib subdirectory.  There is no jdbc or lib subdirectory.  Where's configuration is defined jdbc and lib subdirectories?  I need Oracle SQL Developer 4 to look at in the instantclient_11_2 subdirectory.

    Hello

    .. .is not a file valid jar

    This message is quite misleading. It is not due to a corrupted download.  In the case of database > advanced > use Oracle Client > Configure... you select

    Type of customer: Oracle Home

    Location of the client:

    and then click test... this error will occur.  Instead, you need to select

    : Customer Type instant

    Kind regards

    Gary

    SQL development team

  • Is there a function in Oracle Spatial 11 g moving/translation of geometry?

    Hello everyone,

    I am new to Oracle Spatial. I wanted to know if there is any function to move/translate a geometry in Oracle Spatial 11 g? PostGIS is a function named ST_Translate to achieve the same.

    Kind regards

    Shiva Shankar

    Hello

    There's a SDO_UTIL. Function AFFINETRANSFORMS in Package SDO_UTIL (utility)

    Note, that Simon Greener & Siva Ravada have published an excellent book ("application and Oracle Spatial extension") which contains (in Chapter 7) examples of easy to use this packages:

    http://www.packtpub.com/applying-and-extending-Oracle-Spatial/book

    Luke

  • Oracle spatial any function interact

    Hi all

    I have a question about oracle spatial. I have a line (a path) and a type sdo_geometry polygon, and I used "all interact" function to find if the line intersects the polygon. Now I need to find how the trajectory crosses the polygon. For example, the path has 100 points and he in the polygon to 20th and out to the 70th point. Is it possible to find these points?

    Thank you

    Aswin

    Hi Aswin,

    Use SDO_GEOM. SDO_INTERSECTION. This will give you a line, and if your area is a simple box the line will have two points: the points of intersection of the line of origin with the boundary of the polygon. Of course, if your polygons have holes the result will be more than two points.

    HTH,

    Stefan

  • 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

  • Problem loading of Image of CSS by dynamically loading the fxml file?

    H1. Introduction
    I develop load a file FXML leave a controller. The FXML uses CSS and images for buttons are defined in the CSS.

    CSS directory structure
    .fxml < package >

    Images
    the <>package. fxml.resources. < subdir >

    Example of CSS Code
    .buttonImage {
        -fx-background-image: url("resources/subdir/image.png"); 
    }
    Example of loading the controller code fxml
             URL location = getClass().getResource("/package/fxml/UI.fxml");
             FXMLLoader fxmlLoader = new FXMLLoader(location);
             fxmlLoader.setLocation(location);
             fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
             Parent root = (Parent)fxmlLoader.load(location.openStream());
             Controller = (Controller) fxmlLoader.getController();
             newPane.getChildren().add(root);
    H1. Problem
    The fxml file does not load, and causes the following error:
    javafx.fxml.LoadException: Page language not specified.
    Rate this file fxml loaded correctly so that the images have been added.

    Any ideas of what could go wrong?

    H1. Attempted
    I tried the following: tried to change the url of the image as an absolute path.

    The problem is your onAction managers. If you point to a Java controller, we must start by #. for example #profileEventFired

Maybe you are looking for

  • Satellite L450D - not appear networks

    Hi all Help, please! New laptop today, which comes with W - LAN, but it cannot find any connection - my wireless router or any of the others (I know that the neighbours have them, they came on previous laptop). I tried all that is obvious - the WiFi

  • WHEN I RUN TENT "WINDOWS UPDATE", I GET "the site met a problem -".

    THIS IS THE MESSAGE I GET WHEN I TRY THE WINDOWS UPDATE. "The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. » WHAT SHOULD I DO TO SOLVE THIS PROBLEM. T

  • OfficeJet Pro 6830: Scan to PDF files

    Is there software available that will allow the digitisation of PDF files?

  • Constantly go to page alignment

    HP 8500 constantly go to align the page. I cancel and it will be printed and go right back to the alignment page.

  • Windows logon: LogonUI.exe - corrupted file

    After the round of my boyfriend used CCleaner on my windows 7, whenever I'm starting, I get a box labelled windows logon: file logonui.exe - corrupted with the message the file or directory \Program files is damaged and unreadable. Please run the Chk