Contouring from point geometry

Hi all,
Is any spatial utility or methods are available for creating contour or isopleths on Oracle spatial? I want to create contour from point geometry show it on map (using mapviewer) similar to this site.
http://www.bom.gov.au/cgi-bin/silo/rain_maps.cgi?map=contours&variable=totals&area=aus&period=week&region=aus&time=latest
The data required for creation of contour is stored in separate table.
I found some java applet samples are found in this site.
http://cimss.ssec.wisc.edu/wxwise/contour/
But I couldn’t found any algorithm or source code to do this. Pleas share me any idea/information related to this.
Thanks,
Sujnan
Message was edited by:
sujnan

You could use the Surfer or ArcGIS API to create a contour map on the fly given whatever dynamic parameters you have. One challenge with the Surfer API is that the inputs and outputs need to be files named with a filename (as far as I know). That's not convenient in this context. I have not looked in detail at the ArcGIS API to see if it also has this limitation.
You could also prerender all the maps required by the UI. That will give you the best performance. Creating maps can be very slow.

Similar Messages

  • Creating a point geometry with coordinate transformation using JDBC

    If I execute the following SQL statement using a tool such as TOAD then I get a correct value for the point in the oracle column.
    INSERT INTO node (id, position) VALUES (53, SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, 26910, SDO_POINT_TYPE(489535.0, 5457841.0, NULL), NULL, NULL), 4269))
    Point geometry:
    (2001, 4269, (-123.143865452971, 49.2732377100255, ), , )
    If I execute the same statement using JDBC in a Statement or PreparedStatement the Point in the oracle column has 0,0 for the coordinates.
    Point: geometry
    (2001, 4269, (0, 0, ), , )
    In both cases the SQL is exactly the same.
    my JDBC code is
    String insertSql = "INSERT INTO node (id, position) VALUES (" + id
    + ", SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, " + geometrySrid
    + ", SDO_POINT_TYPE(" + coordinate2d.x + ", " + coordinate2d.y
    + ", NULL), NULL, NULL), " + srid + "))";
    Statement insertStatement = connection.createStatement();
    try {
    insertStatement.execute(insertSql);
    } finally {
    JdbcUtils.closeStatement(insertStatement);
    connection.commit();
    Any ideas why this is happening?
    I've tried to do the coordinate transformation in a separate call and pass in the STRUCT returned from that, using JGeometry to create a STRUCT for the value, using a WKT geometry and none of these approaches seem to work

    Paul,
    I have seen this work using JGeometry and STRUCT objects with PreparedStatements. Here's some sample code that seems to work just fine:
    ResultSet rs = null;
    try {
    PreparedStatement ps =
    getConn().prepareStatement("select SDO_CS.TRANSFORM(?, ?) from dual");
    /* constucts JGeometry objects using simple points (doubles) and SRID
    * Per the Javadoc, JGeometry objects can be constructed using the same
    * notation and signature as SDO_GEOMETRY objects -
    * JGeometry(int gtype, int srid, double x, double y, double z, int[] elemInfo, double[] ordinates) */
    JGeometry j_geom1 = new JGeometry(-122.4, 37.8, 8265);
    int newSRID = 4269;
    //convert JGeometry instances to DB STRUCT
    STRUCT obj1 = JGeometry.store(j_geom1, getConn());
    ps.setObject(1, obj1);
    ps.setInt(2, newSRID);
    rs = ps.executeQuery();
    while (rs.next()) {
    //System.out.println(rs.getString(1));
    STRUCT st = (oracle.sql.STRUCT) rs.getObject(1);
    JGeometry j_geom = JGeometry.load(st);
    System.out.println(j_geom);
    ps.close();
    rs.close();
    conn.close();
    } catch (Exception e) {
    System.err.print(e);
    Hope this helps.
    -Justin

  • Retreving X, Y, Z from the Geometry column in oracle 10g

    Dear all ,
    I am stick since 2 days at the same point, I am using 10g, PHP my problem now is how to fecth the X, Y , z coordinates from the geometry column to view it on my web page, i don't understand the (SDO_ORDINATES), what is its type & how i can deal with it. my simple code is:
    $conn=oci_connect('User','pass','//localhost/x')
    $sqlCol="SELECT c.GEOMETRY.SDO_ORDINATES from SSS c WHERE c.CODE = '80A' ";
    $resultCol=oci_parse($conn,$sqlCol);
    $excuteResCol=oci_execute($resultCol);
    $resultRecordsCol=oci_fetch_array($resultCol);
    I got an error on the last line as (ORA-00932: inconsistent datatypes: expected CHAR got ARRAY )
    i don't know how to deal with this resultset.
    If anyone could help please replay.
    Thanks for your help

    Hello, I have the same problem,
    I use php for read data from oracle table,
    all works right but when I must read geometry data like
    (type MDSYS.SDO_GEOMETRY)
    I can't display it on web page.
    esemple of spatial query that I use:
    select INTERSECTIONGEOMETRY0
    from tabella_a
    where
    ID = 970;
    If I use sql plus I have this result
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(1, -0, -
    0, 580094, 4998494, -1))
    I use PHP Version 4.4.0
    modules load are:
    extension=php_sdo.dll
    extension=php_oci8.dll
    But I don't know which other module I need and also which php function to use for read array of array. at the moment I use @OCIFetchInto.
    Someone can help me?
    My English is very bad
    Thanks for all!
    Angelo

  • Generating a Line geometry using collection of point geometry.

    Hi Team,
    Im using Oracle 11g spatial database. As my subject line says, Im trying to write a PL/SQL package, in which, I need to generate a LINE geometry which connects all my collection of POINT geometry. Do we have any in-built spatial SDO utils/packages which can does my work? Can anyone please suggest on this.
    Please let me know if further information is needed.
    Regards,
    Kumar.

    Kumar,
    See if Simon's post answers your question...
    http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/286/creating-linestrings-2002-from-points-2001
    Bryan

  • Value of oriented point geometry into SDO_ETYPE

    Hello! I have this problem:
    I tried to insert an oriented point geometry.
    This coordinates (x,y,z) identifies the point (A ) that I want to place.
    580117.84, 4998489.37, 0
    This coordinates (x,y,z) identifies the coordinates of the end point (B) where is orientated the vector
    580121.56, 4998490.93, 0
    I have read the instruction http://download.oracle.com/docs/html/B14255_01/sdo_objrelschema.htm#CBBIAGFJ
    and I have create this query
    INSERT INTO TABLE_A
    VALUES
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580082.54, 4998456.45, 0, 580080.6, 4998496.5, 0))
    SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    If I make a select row of TABLE_A right for to see SDO_GEOMETRY I find:
    GEOMETRY1(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580117,84, 4998489,37, 0, 3,72, 1,56, 0))
    I work with Geomedia intergraph and if I rotate or spin the symbol at the point and then I do again the same select
    the result is:
    GEOMETRY1(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORD
    INATE_ARRAY(,598974545, -,80076807, 0, 580117,84, 4998489,37, 0))
    I don't understand what mean the number of SDO_ETYPE inside SDO_ELEM_INFO_ARRAY.
    also in SDO_ORDINATE_ARRAY this value identifies the orientation
    ,598974545, -,80076807, 0
    but I can't realize from where this numbers come out.
    Somebody can explain to me?
    Thanks in advance.
    Angelo!

    Excuse!
    I make a mistake the query is
    INSERT INTO TABLE_A
    VALUES
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    and not
    //INSERT INTO TABLE_A
    // VALUES
    // SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1, 4, 1, 0),
    // SDO_ORDINATE_ARRAY(580082.54, 4998456.45, 0, 580080.6, 4998496.5, 0))
    // SDO_ORDINATE_ARRAY(580117.84, 4998489.37 , 0, 3.72, 1.56 , 0 )),
    I wait your news.

  • Get all vertices from a geometry of multiple polygons

    I tried to use sdo_util.GetVertices to retrieve all the vertices from a geometry column. Some of the geometries of gType 2007 that contains more than one element. The getVertices function seems to give back the vertices of the first element only. How can I get all the vertices then?
    Edited by: 937152 on May 29, 2012 11:56 AM

    Why do you have all the NULLs in your sdo_elem_info_array and sdo_ordinate_array? This is very very wrong - see http://docs.oracle.com/cd/E11882_01/server.112/e17766/e12700.htm#sthref3897
    Despite that I am able to get all the "vertices" back from your sample geometry - note that I changed your SELECT statement a little.
    jot_test@JOHNOT> create table assessment_parcel_merged (
      2  id number,
      3  geometry sdo_geometry);
    Table created.
    jot_test@JOHNOT>
    jot_test@JOHNOT> insert into assessment_parcel_merged
      2  (id, geometry)
      3  values
      4  (506833,
      5  mdsys.sdo_geometry(2007,82232,null,
      6  mdsys.sdo_elem_info_array(1,1003,1,13,1003,1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null),
      7  mdsys.sdo_ordinate_array(632941.3695,5536245.0144,632939.95209944,5536241.97593627,633251.020958124,5536096.38289373,633369.443364573,5536040.95632826,633371.0274,5536043.9168,632941.3695,5536245.0144,631892.0616,5536736.1337,631892.8842984,5536702.62493823,632873.47478553,5536243.66593412,632884.740084103,5536267.81696815,632886.1576,5536270.8559,631892.0616,5536736.1337,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)));
    1 row created.
    jot_test@JOHNOT>
    jot_test@JOHNOT> select sdo_geom.validate_geometry_with_context(geometry, 0.0005) as geom_validate
      2  from assessment_parcel_merged;
    GEOM_VALIDATE
    13033
    1 row selected.
    jot_test@JOHNOT>
    jot_test@JOHNOT> set null null
    jot_test@JOHNOT> select o.x, o.y
      2  from assessment_parcel_merged a, table(sdo_util.getvertices(a.geometry)) o
      3  where a.id = 506833;
             X          Y
    632941.37 5536245.01
    632939.952 5536241.98
    633251.021 5536096.38
    633369.443 5536040.96
    633371.027 5536043.92
    632941.37 5536245.01
    631892.062 5536736.13
    631892.884 5536702.62
    632873.475 5536243.67
    632884.74 5536267.82
    632886.158 5536270.86
    631892.062 5536736.13
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    null       null
    50 rows selected.John

  • How to create a "traveling route" line on a map from point A to point B!

    Can someone explained or show me how I to create a clip (it will have a background map of Europe) depicting a “traveling route” line from point A to point B. The “traveling route” line I would like to display follows a Bezier curve path; it would start from point A (as a “dash”) and progressively the dash line lengthens until it reaches point B.
    To expand my request further - can one add a plane or ship icon (image) as the start “header” (starting from point A), move along the Bezier curve path and spits out the trailing “dashes” to form the “traveling route” line?
    I have seen this done on occasions, but I’m unable to create such clip. You help is appreciated.
    I’m using Premiere 6.5 and After Effect 5.5
    You can email me at [email protected]

    I don't remember which site, but I think I have a link to a tutorial site that includes that
    Go to my Adobe notes http://www.pacifier.com/~jtsmith/ADOBE.HTM
    Click on the Tutorial section and check the various sites
    Added
    You should never post a clear email address... spammers use software to harvest such
    Put something like
    myname at partone dot com

  • Load plan not starting from point of failure in obia 11

    hi,
    I am using obia 11..1.1.7 & once load plan is started. few session are failed due to duplicates. After removal of duplicates, once i start load plan from configuration manager. It is starting again from start not from point of failure. I tried restarting load plan from ODI studio also from load plan & scanarios too but it again started from start not from point of failure.
    Can someone explain how to use ODI start from point of failure feature in OBIA.
    Thanks,
    Paresh

    JamesW wrote:
    That's exactly that. Shutdown the database. make the correction in the PFILE, started the DB using the PFILE and then created a new SPFILE .. Restarted the DB (using the SPFILE), restated the upgraded assist.. its not at 9% and running
    Pesky Oracle Thanks guys for your help
    FWIW, and for your future understanding, you didn't actually have to *start* the database with the pfile in order to create the spfile.
    In this example, I don't even have a database named fubar ...
    oracle:fubar$ pwd
    /u01/app/oracle/product/11.2.0/db_1/dbs
    2013-08-15 10:52:29
    oracle:fubar$ ls -l init*
    -rw-r--r-- 1 oracle oinstall 2851 May 15  2009 init.ora
    -rw-r----- 1 oracle oinstall   35 Jan 31  2013 initorcl.ora
    2013-08-15 10:52:36
    oracle:fubar$ ls -l spfile*
    -rw-r----- 1 oracle asmadmin 2560 Aug 15 10:47 spfilekilroy.ora
    2013-08-15 10:52:39
    oracle:fubar$ export ORACLE_SID=fubar
    2013-08-15 10:52:48
    oracle:fubar$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 15 10:52:53 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> create spfile from pfile='init.ora';
    File created.
    SQL> exit
    Disconnected
    2013-08-15 10:53:05
    oracle:fubar$ ls -l spfile*
    -rw-r----- 1 oracle asmadmin 1536 Aug 15 10:53 spfilefubar.ora
    -rw-r----- 1 oracle asmadmin 2560 Aug 15 10:47 spfilekilroy.ora
    2013-08-15 10:53:07
    oracle:fubar$

  • How to make a Line Chart curved instead of straight from point-to-point?

    I have a Line Chart that is is very jagged and plots directly from point to point, like this:
    http://img818.imageshack.us/img818/7408/testhb.jpg
    But I want to achieve something that looks a bit smoother where the line instead is curved from point to point, like this:
    http://download.oracle.com/docs/cd/E12839_01/bi.1111/b32122/img/curvedline_graph.gif
    Is this possible in Xcelsius 2008?  I couldn't find anything in the graph's properties and I also had no luck when searching google/these forums for a solution.  Thanks for the help!

    Hello Richard
    I have come across the same scenario today and I saw your .swf file and it was exactly what i was looking for.
    Can you please be kind enough to send me the .XLF fil on <email address removed>
    Thanks
    Arshiyan
    Message was edited by: Ludek Uher
    I removed the email address as this is against the SCN Rules of engagement. Files can be uploaded via the "Use advanced editor" link on each SCN post.

  • How would one skip from point to point that the video is changing while editing.

    How would one skip from point to point that the video is changing while editing, like if a certain set of pixels changed to white, and then mark it.?
    Basically, I have a set camera, and when certain objects change color I want to mark it.   Think of a baseball flying through the air off a pitchers hand, and be able to skip to each point the pitcher is in that position.

    The only method of this level of content analysis I'm aware of is with your eyes.
    You'll just have to wacth the video to find those parts.

  • FOI marker trimmed when using oriented point geometry

    Greetings,
    I am trying to rotate a FOI polygon marker using oriented point geometry. While the angle of the marker (hollow arrow) is rendered properly in Oracle Maps, the size of the actual marker image shipped to the browser is always constant in size and does not account for the potential increase in image dimensions due to rotation. So, the image always is clipped at the corners, if rotation swings a portion of it outside the static image dimensions. The best way to replicate this behavior is by using a simple square marker on any rotated point geometry: the corners of the square get clipped.
    I appreciate any advice on how to solve or work around this.
    Regards,
    -Simon

    Joao,
    Thanks for your reply. I found that all types of markers, including images and TTF symbols get clipped. The only way that seems to work buffering an image marker symbol by empty pixels in order to provision space for its rotation.
    Regards,
    -Simon

  • Convert from ordinary geometry to LRS geometry

    Hi
    I have converted line geometry to LRS geometry by using the block as given below. I also created metadata for X,Y,M before converting to LRS.
    BEGIN
    IF (SDO_LRS.CONVERT_TO_LRS_LAYER('centerline', 'GEOMETRY') = 'TRUE')
    THEN
    DBMS_OUTPUT.PUT_LINE('Conversion from STD_LAYER to LRS_LAYER succeeded.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('Conversion from STD_LAYER to LRS_LAYER failed.');
    END IF;
    END;
    The conversion is succesful but there are two problems after conversiion:
    (1) SDO_GTYPE, it is 4402 instead of 3302
    (2) The measures are zero
    SQL> select a.geometry.sdo_gtype from centerline a;
    GEOMETRY.SDO_GTYPE
    4002
    4002
    4002
    4002
    SQL> select a.geometry.sdo_ordinates from centerline a;
    GEOMETRY.SDO_ORDINATES
    SDO_ORDINATE_ARRAY(-118.43115, 33.949104, 0, 0)
    SDO_ORDINATE_ARRAY(-118.41902, 33.93364, 0, 0)
    SDO_ORDINATE_ARRAY(-118.41934, 33.935822, 0, 0)
    SDO_ORDINATE_ARRAY(-118.43423, 33.946848, 0, 0)
    Can you help me to convert sdo_gtype to 3302 and how to update measures based on geometry length ??
    Thanks
    Syed Masood

    Hi Syed
    You have not given all details to completely check what you have done or how your source data looks like.
    This feedback is based on the elements you have given.
    The resulting LRS has gtype 4402, this means your input geometry had gtype 3002.
    At the same time, as your resulting LRS geom has only 4 ordinates, means that your input geometry had only 3 ordinates.
    This means that your input geometry was a 3D point.
    The result is an LRS point, with a measure 0 at the start point (itself).
    For 3D geometries there are LRS_3D functions dealing with 3D, however they do not cope with geodetic (latlon) type of geometries, I believe.
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_lrs_concepts.htm#i890852
    What you can do is turn your 3D input geometries into 2D before converting them to LRS geometries, as this seems what your after (with the question to have gtypes 3302), obvisouly you will loose your z info.
    select SDO_LRS.CONVERT_TO_LRS_GEOM(sdo_cs.make_2d(SDO_GEOMETRY(3002, 4326, NULL,
    SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(-118.43115, 33.949104, 0)))) from dual;
    But you will have to check the input as being line strings first.
    Please check this first, if you need more help, post one of your input geometries to start with.
    I hope this helps. (should you feel the same, please mark the post as helpful or as correct answer)
    Luc

  • I would like to see the values from pointer mouse like cursor, i would like to put the mouse in point of graph and see the value of point!

    I want to use the mouse pointer like cursor, i want use in my graph xy, i dont like to move the cursor to see the point.
    is it possible?

    There are vi's available to read mouse position. Look for mouse in the example code section here. You can use the Position attribute of the property node of your graph to get the mouse position within the graph. You can get the range of the scales from the property node. Then it will be a bit of straightforward math to figure out the values.
    Beware that the size of the drawing area of the graph can change as the numbers in the scales get bigger or smaller! Good Luck
    Yours Sincerely
    John

  • How do I change font size from points into pixels?

    I used to be able to set font size in points but CS 6 has removed this? Please dont say that points = pixels. They do not. See for yourself.  A photoshop doc and an Indesign doc have the same pixel size. A 20 point character "A" in InDesign, will be larger than a 20 pixel character "A" in photoshop. This creates hours of extra work when translating text heavy InDesign documents into Photoshop PSDs. Is there any workaround? Help!

    Ok, I know why you dont understand my question. I should have said, that points in InDesign do not equal pixels in HTML  (and I should have left Photoshop out of it). 
    My problem is going directly from InDesign to HTML CSS code. I used to be able to look at the type in my layout sketch in InDesign, select pixels in the units preferences and (assuming I am using the same webfont thanks to google fonts and the @fontface style) the font size would match exactly when I view the webpage in a browser. But now, when I try to code my webpage fonts in pixels, using the value from InDesign's points, fonts sizes dont match when viewed in borwser. This may seem like I am splitting hairs to you but it makes a big difference if I can just look at my InDesign sketch and see the excact size of the type without having to export a tracing/guide image and try to match visually. It just worked when I could see font size in pixles in InDesign in CS 5.5 but does not work in CS 6.
    Try a test: make a div in webpage with same pixel size as an InDeisgn doc. Use a defualt font like helvetic that is aval. to both InDesign and your browser. A 20 point word will not match a 20 pixel word in the same font.
    Also: I believe I rulled out any font replacment issues. For my designes, I am using the same font in both the InDesign doc and webpage code. I am using google fonts (donloaded for indesign and "link href" in head of code on webpage and/or using the @fontface style).

  • How can i store latitude and longitude (of registered user locations) in sql server and how can i query it for finding locations inside X radius from point y (or any user)?

    Hello
    In my app (WP 8.1) i have to store user location (lat,lon) in sql db so how can i store that location detail? And i also have to find all the location which are inside certain radius X from another user location, How can i do this?
    Any Sample project or code or any blog post?
    P.S. I use sql server 2012.

    If you need to do spatial queries like the one you mentioned you'd need to store it as a spatial geography type. For points, a simple SQL INSERT statement using the Point() method would do it. Example here:
    http://msdn.microsoft.com/en-us/library/bb933811.aspx For locations inside a radius, you'd use STDistance() method. All of the methods for the geography data type are documented here:
    http://msdn.microsoft.com/en-us/library/bb933802.aspx and can be used in ordinary T-SQL statements.
    If you need to use the SQL Server spatial library in your .NET application direct, Alastair has some nice blog posts, like this one:
    https://alastaira.wordpress.com/2011/08/19/spatial-applications-in-windows-azure-redux-including-denali/ , he even wrote a book. Or search the answers in this forum.
    Hope this helps, Bob

Maybe you are looking for