Network Model  - Arcs create unexpected results

Hello Spatial Users,
I have created a road network using the "Automatic" Network Definition, loaded all the nodes and links, and everything seems to be OK. It all validates, links and nodes have the correct values. It is an undirected network.
I can create shortest paths, but the issue I'm having is arcs within the links are returning unexpected results. It is as though the start of the arc is used and then it follows the arc and jumps back to the end of the line - so the shortest path is not the shortest with all this jumping from start to finish of the arcs within the line string.
Do I need to convert the arcs to lines or am I missing something else? I was hoping that because it was 'undirected' this would resolve this issue.
We are using 11.1.0.6.0.
Thanks for your help,
Kerryne

Hi, Kerryne,
NDM doesn't support arcs in its spatial path representation. For arcs it will only use start and end pt of the arc. You need to approximate arcs as linear segments for link geometry to get a more accurate path geometry.
Regards,
Jack

Similar Messages

  • Trying to play from an external drive created unexpected results

    I have a Firelight drive that was full of music from another computer so I plugged it into my iMac then held down the option key while opening itunes.\
    Choose Library didn't work so I clicked on Create a new Library in itunes.
    I wanted to just play and burn the songs from the drive but they instead were imported to iTunes.
    This was okay though, I saved the songs to dvd and deleted them.
    What is troubling is this;
    When I click on my hard drive on the desktop it lists all the music that was imported so I guess I really didn't delete anything when I deleted everything in iTunes.
    Question 1 ) why did this happen.
    I suppose I can go ahead and delete everything but....
    Question 2) all that will be left on my iMac's drive after deleting the music is a Users file and a file with a curved arrow on the bottom left corner that says "Users Guide and Information"
    I am sure that there were a lot more things listed on the iMac drive before.
    Everything seems to be working fine and the Home,Applications,Documents,Music and Pictures icons are all unchanged.
    One more thing.
    The Firelight would not turn off or go to sleep even when I turned off the computer. Before it always went to sleep when the computer went to sleep.

    As a test, try removing all USB devices except a standard keyboard and mouse, including any USB hub. Connect the hard drive and iPod directly to the computer. See if that works.
    If it works, try to figure out which USB device makes it NOT work, treating any USB hub as a device.
    If it still does not work, try using the Restore button in iTunes to see of that helps. This will erase the iPod and restore it to original settings.

  • Best networking model for a java network application

    Hi all,
    I am in need of a decision regards the network technology used for a CRM.
    I am thinking about JAX-RPC to build network model for the system.I'll concider functianality details after deciding the network model.
    Which'll be better?.JAX-RPC?.i did'nt used it before.How good is that technology for a client-server CRM which need frequent remote method calls?.
    What about using servlets?.
    My requirement is i'll make XML documents from client and send to the server and server parse the XML file then make necessory method calls and return another XML data to the client.
    I cant use a database server for network functioning.Because the application should run in internet also.So installing a client-server database and only writing client application will not work.
    My application should work equally in internet and local network.
    So which technology can i implement for better results?.
    What about servlets?.
    Servlets can take inputs as web forms.But can servlets work with XML inputs with a swing client(no browser)?.
    What'll be the best technology without EJB?.Becoz only Tomcat can be used for deployment.
    Plz anyone suggest a good opinion.
    What'll the best for me?.

    Many thanks for your efforts,but i already know all what you hav said.Then you should be in fine shape for starting this project.
    But what i need is good insights.You hav told me that
    "start the project and you'll get" .OK.But after doing
    a lot of projects,Onething i know is getting as much
    insights towards a project will help always.Because
    there maybe issues that we dont concider or some
    better patterns.I can't help you based on what you've posted so far. You're talking about gathering good requirements and doing a detailed analysis and design. That's not what this forum is for. You should be doing that with your customers and teammates.
    And i'll be using JDOM.Coz it's quite easy.Very good.
    But some more insights??.
    I need insights in areas like,
    When XML file reach to controller servlet,It should
    dispatch the XML file to many javabean classes
    according to it's purpose.Do you spot anything
    there?.I don't know what those Bean classes will be doing with the XML, so it's hard to say.
    If you're looking to create an XML message broker, where clients send XML requests to be dispatched and then get the response back, you might be talking about an asynchronous application with JMS and queues. That's very different from a servlet, but then I don't know much about what you're really trying to do.
    In either case, whether you use a queue or a servlet, you'll have to think about how you'll go about routing a message. You'll have to figure out how to recognize and associate a particular XML message with the right Java Bean or destination.
    any suggestiens for creating XML files?.Sometimes you just have to bite the bullet and create them. No magic here.
    I already thank to you for ur opinions.But plz take care on these small issues also if u done such
    apps.Lets learn more together so we can make applications very very fast with good insights in
    small deeper areas.I don't mean to be rude, but I can't do any detailed analysis and design with you. That's up to you, your customer, and your teammates.

  • Network Model - Shortest Path

    Hi all,
    I have created spatial network containing non lrs sdo_geometry objects in Oracle 10g (Release 2). In this network model there are 33208 nodes and 42406 links.
    Now I need to write a java program to find shortest route between two selected nodes. Here is snippet of my source code.
    Connection connection = DriverManager.getConnection(dbUrl, databaseUser,   databasePassword);
    boolean readForUpdate = false;
    Network net= NetworkManager.readNetwork(connection, "SDO_ROAD_NETWORK", readForUpdate);
    Path path = NetworkManager.shortestPath(net, startNodeId ,endNodeId);
    System.out.println ("total distance " path.getCost() );+
    Link[] linkArray = path.getLinkArray();
    But this will throws an exception - Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    It was working fine for 1000 nodes and 1000 links. I tried by changing java options like -Xms and Xmx parameters but same result.
    Then I tried to find shortest route using pl/sql using following.
    DECLARE
    testNet VARCHAR2(30) := 'SDO_ROAD_NETWORK';
    startNode NUMBER := 120150;
    endNode NUMBER :=1740034;
    path NUMBER;
    linkArray SDO_NUMBER_ARRAY;
    BEGIN
    sdo_net_mem.network_manager.read_network('SDO_ROAD_NETWORK', 'FALSE');
    dbms_output.put_line('Loading finished');
    path := SDO_NET_MEM.NETWORK_MANAGER.SHORTEST_PATH_DIJKSTRA('SDO_ROAD_NETWORK', startNode, endNode);
    IF path IS NULL THEN
    dbms_output.put_line('route not found');
    return;
    END IF;
    linkArray := SDO_NET_MEM.PATH.GET_LINK_IDS(testNet, path);
    FOR i IN linkArray.first..linkArray.last
    LOOP
    dbms_output.put_line('Link -- ' || linkArray(i) || ' ' ||
    SDO_NET_MEM.LINK.GET_NAME (testNet, linkArray(i)) || ' ' ||
    SDO_NET_MEM.LINK.GET_COST (testNet, linkArray(i)));
    END LOOP;
    END;
    +/+
    But this takes nearly 4 minutes to just read the nework (sdo_net_mem.network_manager.read_network).
    Finally I dowloaded standalone java client application NDM Network Editor from OTN. This application loads entire network within 25 seconds and finds shortest route within 5 seconds.
    Please guide me how can I write improved code reading network. My requirement is to get shortest path between two nodes
    Thanks,
    Sujnan

    Hi Sujnan
    In the past there have been some performance issue for the Oracle JVM. Not sure if this addressed in the latest releases (10.r2 or 11).
    Performance Status OJVM used for SDO Network data Model 10R2.0.2
    Maybe the oracle guys can give an update.
    Luc

  • Questions on the LRS network model.

    On page 6-26 of the "Oracle Spatial Topology and Network Data Models" documentation, the example shows that measures are recorded in the 'roads' table (i.e. the one with the geometry of the feature).
    1. Why in this example is 'null' used for Node 5 ('...automatically calculated and filled...') but not the others?
    2. Why in this example is measure even necessary? There is no link to the underlying route from this table (i.e. measures should only be recorded in the context of a given route).
    3. It seems like this measure is merely the offset from the starting vertex (not true LRS); do we have the wrong interpretation?
    On Page 6-30, the example shows that measures are recorded for each Node and each Link. We had envisioned nodes and links being separate from the route they play a role upon. For example, if the same node was part of two distinct routes, does this mean storing two rows in "road_nodes"? But they're the exact same location and the same node in our network. The same question applies to the 'road_links' table. If the answer is 'duplicate the rows' in nodes and links (once per route), why doesn't 10g Spatial record 'measure' in the "road_paths" table? Note that, on page 6-31, it says that it is '...for possible future use...'...
    This example also implies the rows in the roads table are replicated as the (m)easure of the geometry column would change based on the route involved? If this is not the case why store the measure in the geometry column at all?

    Hi,
    My name is Gary Wong, and the original poster was asking these questions on my behalf. I'd like to continue the thread below in-line....
    A: This is a basic LRS concept. You can have some NULL
    measure values, and LRS can compute the actual measure
    corresponding to a NULL value. This has nothing to do
    with Network modeling, so you can assume a valid
    measure value here for this example.So this was just an example showing both 'manually calculated and entered' and 'let Spatial figure it out'? As this is merely the offset from the starting point, wouldn't a user always use NULL to let Spatial figure it out? It seems like this model will always use whole links in a contiguous fashion, so when would the measure not be the cumulative total?
    2. Why in this example is measure even necessary? There
    is no link to the underlying route from this table
    (i.e. measures should only be recorded in the context
    of a given route).So in this model (and example), the entry in roads is the route itself? Other LRS models allow the re-use of a common route, so multiple entries in the roads table would reference the same route (in another table). A real-life example is a single straight road that has different names, or has different road surface, or road classifications.
    Folowing this example, if I wanted to spatially reference some other business attribution on an existing route, say R1, would I have to create another entry in roads and duplicate the data? Even if it has the same start/end locations and path?
    A: Measure is always an offset from the start vertex
    and this is true for any LRS system. I am not sure what
    you mean by "not true LRS".My mistake in using these words; there is no true LRS, just different models/implementations of it =8^). Other LRS systems can have a measure beginning, say 2.5 metres after the starting node (node, not vertex; I define a vertex as as one of co-ordinates defining the link, and node as a topologically significant vertex such as the start and end vertices).
    Hmmm, does this answer my first question above? If you wished to start a road (as per the example) slightly off of a node, would you enter a non-zero measure as the initial co-ordinate?
    Assuming I'm on the right track (i.e. cannot re-use a route), does anyone know if Oracle plans to implement this kind of LRS in 10g Spatial?
    I see a cryptic ".. for possible future use..." reference on page 6-31 regarding the create_path_table() and create_path_link_table() methods.
    Is this future use to allow multiple uses and references of a route?
    Thanks and sorry for the loooong email..
    gary

  • Predefined network  model themes

    I am having a problem whilst trying to load one of the above into mapviewer. I have a network model that is working, valid and I can perform analysis using the SQL API. I am trying to create a theme with
    insert into user_sdo_themes values(
    'RAILNET',
    'UK Rail Network',
    'LINK',
    'L_GEOM',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules
    theme_type="network"
    network_name="RAILNET"
    network_level="1">
    <rule>
    <features>
    <link
    style="C.YELLOW"
    direction_style="M.DIRECTION"
    direction_position="0.5"
    direction_markersize="7">
    </link>
    <node
    style="M.NODE"
    markersize="5">
    </node>
    </features>
    </rule>
    </styling_rules>');
    The mapviewer returns the following (in FINEST)
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
    <map_request
    datasource="mvdemo"
    width="1159"
    height="793"
    bgcolor="#ffffff"
    bgimage=""
    antialiase="true"
    format="SVGZ_URL" zoomlevels="1" zoomfactor="2.0" zoomratio="1.0" infoon="true" navbar="no" onclick="shiftPressed(evt.shiftKey);svgClicked" onrectselect="shiftPressed(evt.shiftKey);svgRect">
    <center size="10.0">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>-1.4,53.0</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <legend bgstyle="fill:#ffffff;fill-opacity:128;stroke:#ff0000" profile="SMALL" position="NORTH_EAST"><column><entry is_separator="true" /><entry text=" Map Legend " is_title="true" /><entry is_separator="true" /><entry style="L_DOWN" text="Down Track Level" /><entry style="L_UP" text="Up Track Level" /><entry style="L_BI" text="Bi-Dir Track Level" /><entry style="L_UNVAL" text="Unvalidated link" /><entry style="M.NODE" text="Track Level Node" /></column></legend>
    <themes>
    <theme name="RAILNET" min_scale="50000.0" max_scale="0.0" />
    </themes>
    </map_request>
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(mvdemo) begins...
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a predefined theme RAILNET
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=RAILNET]
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :8307
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] before adjusting: minX = -8.707692307692307, maxX=5.907692307692308 minY=48.0, maxY=58.0 w=14.615384615384615, h=10.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] After adjusting: minX = -8.707692307692307, maxX=5.907692307692308 minY=48.0, maxY=58.0 w=14.615384615384615, h=10.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-8
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Master scale] 1.2105926860025222 [Scale factor for theme RAILNET] 1.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] ptvpxfmfxed: xl=-9.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Geometry Network link query]: select ROWID, L_GEOM from LINK WHERE MDSYS.SDO_FILTER(L_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-9.0,48.0,5.907692307692308,58.0)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 WARN [oracle.sdovis.theme.ntp] java.lang.NullPointerException
    at oracle.sdovis.theme.NetworkThemeProducer.processGeomLinkQuery(NetworkThemeProducer.java:2467)
    at oracle.sdovis.theme.NetworkThemeProducer.prepareData(NetworkThemeProducer.java:329)
    at oracle.sdovis.NetworkTheme.prepareData(NetworkTheme.java:64)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 ERROR [oracle.sdovis.DBMapMaker] Message:null
    Description: Nested exception is:
    Message:null
    Description: Nested exception is:
    java.lang.NullPointerException
    Message:null
    Description: Nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at oracle.sdovis.theme.NetworkThemeProducer.processGeomLinkQuery(NetworkThemeProducer.java:2467)
    at oracle.sdovis.theme.NetworkThemeProducer.prepareData(NetworkThemeProducer.java:329)
    at oracle.sdovis.NetworkTheme.prepareData(NetworkTheme.java:64)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 202ms.
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 FINEST [oracle.sdovis.RE] xfm: 79.3 0.0 0.0 -79.3 690.5199999999999 4599.4
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme RAILNET with 0 styled features: 0ms
    If i leave the <link> tag out of the theme definition then the mapviewer loads and renders the nodes, but with the <link> included nothing is rendered.
    Help!

    That works, here is the output. I assume then that there is a bug?
    <map_request
    datasource="mvdemo"
    width="1159"
    height="793"
    bgcolor="#ffffff"
    bgimage=""
    antialiase="true"
    format="SVGZ_URL" zoomlevels="1" zoomfactor="2.0" zoomratio="1.0" infoon="true" navbar="no" onclick="shiftPressed(evt.shiftKey);svgClicked" onrectselect="shiftPressed(evt.shiftKey);svgRect">
    <center size="0.00639386189258312">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>-1.9082991021265139,51.53651515982236</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name="RAILNET" >
    <jdbc_network_query
    network_name="RAILNET"
    network_level="1"
    jdbc_srid="8307"
    datasource="mvdemo"
    link_style="C.YELLOW"
    direction_style="M.DIRECTION"
    direction_position="0.5"
    direction_markersize="10"
    node_style="M.NODE"
    node_markersize="5"
    asis="false">
    </jdbc_network_query>
    </theme>
    </themes>
    </map_request>
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(mvdemo) begins...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Network Theme:
    ThemeDescriptor=
    name=RAILNET
    type=6
    minScale=Infinity
    maxScale=-Infinity
    srid=8307
    localThem=null
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.theme.ntd] [Network Metadata Query] select * from user_sdo_network_metadata where network = 'RAILNET'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :8307
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] *** local adjustment will be performed on this req. ***
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] before adjusting: minX = -1.9158108694149043, maxX=-1.9007873348381232 minY=51.53331822887607, maxY=51.53971209076865 w=0.015023534576780994, h=0.00639386189258312
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] After adjusting: minX = -1.9158108694149043, maxX=-1.9007873348381232 minY=51.53331822887607, maxY=51.53971209076865 w=0.015023534576780994, h=0.00639386189258312
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-22
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Master scale] 7.740362442471369E-4 [Scale factor for theme RAILNET] 1.0
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Geometry Network link query]: select L_GEOM from LINK WHERE MDSYS.SDO_FILTER(L_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-1.9158108694149043,51.53331822887607,-1.9007873348381232,51.53971209076865)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Network node query]: select N_GEOM from NODE WHERE MDSYS.SDO_FILTER(N_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-1.9158108694149043,51.53331822887607,-1.9007873348381232,51.53971209076865)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 50ms.
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.RE] xfm: 77145.62735398066 0.0 0.0 -124025.19999999895 147796.43141258793 6392223.099999947
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme RAILNET with 41 styled features: 0ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering SVG: 79ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 13ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 139ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 1ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 153ms
    15:52:10,319 INFO MapAction - THE ACTION IS = ZoomTo
    15:52:10,319 DEBUG MapAction - class omnieng.mapviewer.beans.PublicMapControler
    15:52:10,319 DEBUG MapAction - class omnieng.mapviewer.beans.PublicMapControler
    15:52:10,319 FATAL MapAction - NOW DOING POST PROCESS
    15:52:10,319 FATAL MapAction - NOW DONE POST PROCESS
    15:52:10,321 DEBUG HttpRequestControllerFactory - Getting controller
    15:52:10,322 DEBUG ControllerFactory - MAP_CONTROLLER
    15:52:10,322 INFO ControllerFactory - Current type is 5
    15:52:10,322 DEBUG ControllerFactory - current type is 5
    15:52:10,322 DEBUG HttpRequestControllerFactory - setting the controller omnieng.mapviewer.beans.PublicMapControler
    15:52:10,322 DEBUG HttpRequestControllerFactory - done

  • Question re: MapViewer and Network Model functions

    Hi all,
    Quick question re: MapViewer and it's support for the Network Model and the shortest-path functions. If I create a base map with a network theme based on my (large) network, and then use a jdbc_network_query on the same network to do some shortest path analysis will MapViewer use the (hopefully) cached copy of the Network to calculate the shortest path? i.e can I expect good response times once the cache is warmed up?
    Thanks,
    Steve

    Hi Steve,
    MapViewer uses the Network Java library to run the shortest path algorithm. This library is independent of the MapViewer cache, and also not thread safe. So for now the network is always loaded. The load time may be reduced if the request has a MBR, but it is not the ideal solution. There is a working going on, and we hope to avoid this load in future versions.
    Thanks.

  • Open soruce code of Neural Network Model of the Cerebellum

    I would like to share with the community the code of a Neural Network Model of the Cerebellum (CNN). I have been using the CNN for studying the cerebellum and for adaptive robot control. The CNN was developed using Object Oriented Programming (OOP) and a customized Address Event Representation (AER) format. Using OOP and AER allows the construction and evaluation of CNN with more than 80 k neurons, and more than 400 k synaptic connections in real time. The code includes the tools for creating the network, connecting synapses, create the AER format, and a demo for controlling a Virtual Model of a FAN.
    The link to the Cerebellar Network: https://bitbucket.org/rdpinzonm/the-bicnn-model
    Some details of the architecture of the cerebellar model:
    In comparison with traditional ANN or RNN, the CNN has a very peculiar architecture with at least three layers (see below, Fig. 1). Inputs from the external world such as the position of the arms, legs, or sensors from a robot, are carried to the cerebellum via mossy fibers (mf). mfs are then processed in the input layer that includes Golgi (Go) and Granule cells (Gr). The ratio of Gr to mf is around 1000:1, whereas Go to Gr is 15000:1. Because of these numbers it has been proposed that the input layer of the cerebellum transform the input mfs into a sparse representation easing the work of the other layers. The second layer, the molecular layer that could be regarded as a hidden layer, includes Ba/St, Basket and Stellate cells. Their numbers are similar to Go, and their role is still a matter of debate.  The last layer, the output layer, includes Purkinje cells (Pk). There are around 150.000 Gr per one Pk. This is a remarkable feature because the Pk is the only output of the cerebellar cortex. The output of the cerebellar cortex will eventualy reach the motor centers to correct movements.  The CNN includes a plausible learning rule of the cerebellum at synapses between Gr and Pk. It works a an supervised anti-Hebbian rule or a anti-correlation rule in the following way: the teaching signal carrying the information about erroneous motions of the leg, arm, robot, etc, is conveyed by the climbing fiber (cf) to a single Pk. Then, the synaptic weights og Gr-Pk are decreased if there is both cf and Gr activity, whereas if there is not cf (i.e., error) the weights are increased. What this rule means, is that those Gr producing errors have their weight decreased, while those decreasing the error are promoted by increasing their weight. 
    Fig. 1. Neural Network Model of the Cerebellum. mf, Mossy fibers (inputs); Go, Golgi Cells; Gr, Granule cells; Ba/St, Basket and Stellate cells; Pk, Purkinje Cell (Sole output of the cerebellar cortex); cf, climbing fiber (teaching signal); pf, parallel fibers (synapses of pf-Pk are the only adjustable weights in this model, and main loci in the cerebellum); and IO, inferior olivary nucleus.
    Cheers,
    As you can see, the CNN has a very interesting and simple architecture with huge potential for adaptive controller. Do not hessitate in using the model, explore its code, adn post any thought, question, comment, issue. The labview project includes a demo for constructing a CNN and employ it in a classical fedback control of a DC FAN. Fig. 2-3 are some pictures of the application:
    Fig 2. 3D construction of the CNN in LabVIEW representing a cube of the cerebellar cortex with edge length 100 um. Red mf, cyan Gr, green Go, yellow Ba/St, purple Pk.
    Fig 3. Screen capture of the demo application in LabVIEW for the CNN used for controlling a Virtual Model of a DC FAN.
    Thanks,

    Hi gerh. Nice observation! Indeed there are many good softwares out there that are optimized for constructing neural network models. However, none of them have the flexibility and the capability of integration with Hardware that LabVIEW provides. You see, the CNN is being developed to be easily incorporated into engineering applications.
    I haven't tried CV, but I think it could be possible to use the CNN with a 1D representation of the image. 

  • Q: Using Path tables with Network Model (api)

    Hello
    Just a quick question to get on track.
    In order to use the Path tables from a network model and to fill the geometry field, is this the right way to start working?
    1. use the sdonm api to load network and analyse it (like the demo java file LoadAndAnlayze.java)
    2. get the link array from the path object
    3. itterate through the link array and use the
    NetworkUtility.concatenateGeometry in order to end up with one sdo_geometry line object
    4. Insert the appropriate path attributes into the Path table of the network via an SQL INSERT.
    Is this the right way or is there an othaer/better way?
    tx
    Luc

    A path by default does not have its geometry computed when it's created.
    You can use method to compute its geometry (from link geometry).
    If you have computed a path using NDM API(for example, shortestPath), you can
    1. compute path geometry by using path.computeGeometry(double tolerance)
    2. add the path to the network (network.addPath(path)
    3. use NetworkManager.writeNetwork(conn, network) to populate path and path-link tables (assuming they have been created and registered in the network metadata already!)

  • Import Network Model from Shapefile

    Hello,
    How to import shapefile of roads network (network data model) into oracle spatial? (Oracle+Spatial 10.2g)
    http://www.oracle.com/technology/software/products/spatial/files/shape2sdojava.zip deals only with normal (non-network) spatial data..
    Huge thanks!

    Ok, putting together your help, I managed to get myself a network model, hurray! But after this script in the end (could you peep through it and tell if anything's missing), VALIDATE_NETWORK gives me this:
    SDO_NET.VALIDATE_NETWORK('SHP_TABLE_NET')
    No Link Geom Metadata!
    How (where) would I insert that Link Geom Metadata? All I found is USER_SDO_GEOM_METADATA, but there is nowhere to insert Link data. Googled, too.
    The script, together with instructions, in case you make a nice use of it ;):
    * Import a Shapefile into Oracle Spatial as a normal vector map;
    * (ISSIT POSSIBLE TO AVOID THIS STEP? PL/SQL .sql file script? But that with DDL restrictions, clumsy variable definitions in DERLARE section etc. drove me nuts and I gave up, just asking users to do simple Find/Replace..):
    Replace all occurrences of SHP_TABLE (case sensitive, can be part of a word) in the script below with the table name of the imported map from Shapefile (copy all script from below to a text editor and perform that replace);
    * Copy/Paste (in Linux: select text and then use middle mouse button or Shift+Insert to paste it in a console) the script line-by-line, follow any severe errors (ignore ones, when it writes that table cannot be dropped when it does not actually exist :) and the like).
    -- delete any tables existing
    EXECUTE SDO_NET.DROP_NETWORK('SHP_TABLE_NET');
    DROP TABLE SHP_TABLE_PLINK$;
    DROP TABLE SHP_TABLE_EDGE$;
    DROP TABLE SHP_TABLE_NODE$;
    DROP TABLE SHP_TABLE_LINK$;
    DROP TABLE SHP_TABLE_FACE$;
    -- delete any existing geometry layer
    EXECUTE SDO_TOPO.DELETE_TOPO_GEOMETRY_LAYER('SHP_TABLE', 'SHP_TABLE_TOPO', 'FEATURE');
    DROP TABLE SHP_TABLE_TOPO;
    -- then drop existing topology
    EXECUTE SDO_TOPO.DROP_TOPOLOGY('SHP_TABLE');
    -- create new topology
    EXECUTE SDO_TOPO.CREATE_TOPOLOGY('SHP_TABLE', 0.5);
    -- insert the universal face for an empty topology
    INSERT INTO SHP_TABLE_FACE$(face_id, boundary_edge_id, island_edge_id_list, island_node_id_list, mbr_geometry)
    VALUES(-1, NULL, SDO_LIST_TYPE(), SDO_LIST_TYPE(), NULL);
    -- create an Oracle table with a feature layer
    DROP TABLE SHP_TABLE_TOPO;
    -- note, do not create unique id (PRIMARY KEY) as the data in teleatlas.dbf is inconsistent
    CREATE TABLE SHP_TABLE_TOPO(id NUMBER, feature SDO_TOPO_GEOMETRY);
    --CREATE TABLE SHP_TABLE_TOPO(id number, type varchar2(1), feature SDO_TOPO_GEOMETRY);
    -- register feature layer with topology
    EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('SHP_TABLE', 'SHP_TABLE_TOPO', 'FEATURE', 'CURVE');
    -- create updatable TOPO_MAP object and load the whole topology in cache
    -- since we just created the topology, the cache will be empty
    EXECUTE SDO_TOPO_MAP.DROP_TOPO_MAP('SHP_TABLE_MAP_CACHE');
    EXECUTE SDO_TOPO_MAP.CREATE_TOPO_MAP('SHP_TABLE', 'SHP_TABLE_MAP_CACHE');
    EXECUTE SDO_TOPO_MAP.LOAD_TOPO_MAP('SHP_TABLE_MAP_CACHE', 'true');
    -- copy/paste everything in one go between BEGIN and COMMIT; (including):
    -- this one will demand a considerable amount of time
    BEGIN
    FOR r IN (SELECT id, geometry FROM SHP_TABLE) LOOP
    -- associate topological primitives with features
    INSERT INTO SHP_TABLE_TOPO(id, feature)
    VALUES(r.id,
    SDO_TOPO_MAP.CREATE_FEATURE('SHP_TABLE',
    'SHP_TABLE_TOPO',
    'FEATURE',
    r.geometry)
    END LOOP;
    END;
    COMMIT;
    -- commit topology changes
    EXECUTE SDO_TOPO_MAP.COMMIT_TOPO_MAP;
    EXECUTE SDO_TOPO_MAP.DROP_TOPO_MAP('SHP_TABLE_MAP_CACHE');
    -- check how many primitives were converted (should be the same number as primitives in the DB)
    SELECT COUNT(*) FROM SHP_TABLE_TOPO;
    -- after an initial bulk load into an empty topology, initialize_metadata
    EXECUTE SDO_TOPO.INITIALIZE_METADATA('SHP_TABLE');
    -- check here what tables have been created:
    SELECT table_name FROM user_tables WHERE table_name LIKE 'SHP_TABLE_%$';
    CREATE TABLE SHP_TABLE_LINK$
    AS SELECT edge_id AS link_id,
    start_node_id,
    end_node_id,
    geometry
    FROM SHP_TABLE_EDGE$;
    -- FULL NETWORK:
    --CREATE TABLE SHP_TABLE_PATH$(PATH_ID NUMBER,
    -- PATH_NAME VARCHAR2(200),
    -- PATH_TYPE VARCHAR2(200),
    -- START_NODE_ID NUMBER NOT NULL,
    -- END_NODE_ID NUMBER NOT NULL,
    -- COST NUMBER,
    -- SIMPLE VARCHAR2(1),
    -- PATH_GEOMETRY MDSYS.SDO_GEOMETRY);
    --CREATE TABLE roads_incompl_plink$(path_id number not null, link_id number not null, seq_no number not null);
    --INSERT INTO USER_SDO_NETWORK_METADATA(
    -- network, network_category, geometry_type,
    -- node_table_name, node_geom_column,
    -- link_table_name, link_geom_column, link_direction,
    -- path_table_name, path_geom_column,
    -- path_link_table_name)
    -- VALUES(
    -- 'SHP_TABLE_NET', 'SPATIAL', 'SDO_GEOMETRY',
    -- 'SHP_TABLE_NODE$', 'GEOMETRY',
    -- 'SHP_TABLE_LINK$', 'GEOMETRY', 'UNDIRECTED',
    -- 'SHP_TABLE_PATH$', 'PATH_GEOMETRY',
    -- 'SHP_TABLE_PLINK$');
    -- MINIMAL NETWORK:
    INSERT INTO USER_SDO_NETWORK_METADATA(
    network, network_category, geometry_type,
    node_table_name, node_geom_column,
    link_table_name, link_geom_column, link_direction)
    VALUES(
    'SHP_TABLE_NET', 'SPATIAL', 'SDO_GEOMETRY',
    'SHP_TABLE_NODE$', 'GEOMETRY',
    'SHP_TABLE_LINK$', 'GEOMETRY', 'UNDIRECTED');
    SELECT SDO_NET.VALIDATE_NETWORK('SHP_TABLE_NET') FROM DUAL;
    COMMIT;

  • Colors in JTable - unexpected result when scrolling

    Hi Guys,
    Looks like I'm having a problem with a JTable.
    I have a list of items and they are distinguished by 2 colors (so the end-user can differentiate between them). Anyway, the table colors work ok but when using a JScrollbar the table receives an unexpected result � few of the first items (which are not identical) share the same color.
    anyone?
    Example of an output (Gil will be colored Green, Dan Yellow, James Green�and so forth)
    Gil
    Gil
    Gil
    Dan
    Dan
    Dan
    James
    James
    James
    James
    my code looks like this (I'll appritiate if someone can point out where I can have the html tags to display it correctly)
    aTable = new JTable(dataModel)
    public Component prepareRenderer(TableCellRenderer r, int row, int col)
    Component c = super.prepareRenderer(r, row, col);
    Color bg = Color.YELLOW;
    String[] valuesRaw = (String[]) model.elementAt(row);
    if (changeRround)
    name1=valuesRaw[0];
    changeRround=false;
    name2=valuesRaw[0];
    if (!name1.equals(name2))
    this.switchColor(bg,c);
    changeRround=true;
    return c;
    public void switchColor(Color bg, Component c)
    if (colorSwitcher%2==0)
    bg = new Color(221, 250, 207);
    c.setBackground(bg);
    c.setForeground(Color.BLACK);
    else
    bg = new Color(253, 252, 193);
    c.setBackground(bg);
    c.setForeground(Color.BLACK);
    colorSwitcher++;
    }

    I'm getting there...
            aTable = new JTable(dataModel)
                public Component prepareRenderer(TableCellRenderer r, int row, int col)
                     Component c = super.prepareRenderer(r, row, col);
                     Color bg = Color.YELLOW;         
                     String[] valuesRaw = (String[]) model.elementAt(row);         
                     if (changeRround)
                         name1=valuesRaw[0];
                         changeRround=false;
                         name2=valuesRaw[0];
                     if (name1.equals(name2))
                     else
                         this.switchColor(bg,c);                    
                         changeRround=true;
                     return c;
                 public void switchColor(Color bg, Component c)
                    if (colorSwitcher%2==0)
                        bg = new Color(221, 250, 207);
                        c.setBackground(bg);
                        c.setForeground(Color.BLACK);
                    else
                        bg = new Color(253, 252, 193);
                        c.setBackground(bg);
                        c.setForeground(Color.BLACK);
                    colorSwitcher++;
                }

  • Network Model: Class casting, NPE, method design

    Hello, all!
    I have several specific questions. I have an agent-based network model which has no current (visible) errors. I have several conceptual problems with it, nonetheless. I'm going to list the problems with the associated code, and would very much appreciate any suggestions and help that can be offered.
    (1) This is in the secondary class called Node.java. Though I've never really used strings, I think I'm correctly using them in these two methods. In them, I take a 5-digit integer (culture, a random number from 10000-99999), attempt to convert it to a string, compare it to another agent's culture (digit by digit, with the int variable "similarity" increasing by 1 each time a matching digit is found), and calculate a double variable "culturalSimilarity" which will give me a percentage of .00, .20, .40, .60, .80, or 1.00 if none, some, or all of the digits match. If my predetermined value for culturalSimilarity is reached (probably 40%, and meaning that out of the 5 digit string each agent has, 2 digits match), I want the agent to change one of its non-matching digits to match one of those of the other agent. I don't actually know how to design the second method, and just have pseudocode there. First, does the first method work well, or are there things in there that I should change to improve it/make it better code? Second, how the heck do I design the second method? I don't even know where to start...
      public void howCloselyDoOurCulturesMatch() {
           String stringCulture = String.valueOf(culture);
           int similarity = 0;
           for( int i = 0; i < stringCulture.length(); ++i ) {
                if( stringCulture.equals( stringCulture.substring( i, i+1 ) ) ) {
                     similarity++;
           if ( (similarity/5) >= culturalSimilarity) {
                exchangeCulture();
      public void exchangeCulture() {
           //make one of my non-matching digits match one of his.
    (2) This is in the primary class called Model.java. I am getting a NPE in the main model in the buildModel() method at this line: "Node node = (Node) nodeList.get(i);" I think it has to do with my class casting. My casting is a mess, but I'm not sure how to fix it. Here are the three methods in which I create a network with nodes in it.
      public List makeNetwork () {
           System.out.println("Model.createWattsStrogatzNetwork() beginning.");
           List networkList = (List) NetworkFactory.createWattsStrogatzNetwork( numAgents,
                  connectRadius, pRewiring, Node.class, Edge.class);
           System.out.println("Model.makeNetwork() finished.");
           return networkList;
      public void sortNetwork() {
              Vector nodeList = new Vector();
              System.out.println("==> created variables in the step method");
              for (int i = 0; i < networkList.size(); i++) {
                   Object o = networkList.get(i);
                   if (o instanceof Edge){
                        edgeList.add(o);
                   System.out.println("==> edge added to edgeList");
                   else if (o instanceof Node){
                        nodeList.add(o);
                   System.out.println("==> node added to nodeList");
           //HELP maybe convert nodeList and edgeList back to ArrayLists with Nodes and Edges in them, not
           //Vectors with objects in them.
      private void buildModel () {
           System.out.println("Model.buildModel() beginning.");
           networkList = makeNetwork();//IS THIS A DUPLICATE?  SHOULD THIS BE HERE?
           //HELP this is defined in two different places.  nodeList needs to be only the Nodes.
           for (int i = 0; i < numAgents; i++) {
                Node node = (Node) nodeList.get(i);//HERE IS THE NULL POINTER EXCEPTION
                int x = Random.uniform.nextIntFromTo (0, worldXSize - 1);
                int y = Random.uniform.nextIntFromTo (0, worldYSize - 1);
                int nodeID = node.getID();
                node.setX(x);
                node.setY(y);
                int culture = node.getCulture();
                node.setNodeLabel ("Culture - " + culture);
                node.setBorderColor (Color.magenta);
                node.setBorderWidth (4);
                System.out.println("Model.buildModel() finished.");
      }So first, "networkList" is a List full of different kinds of information. I try to sort out the Nodes in that list with the Vector "nodeList", into which I add Objects that WERE Nodes and apparently aren't anymore. There is a comment under the method sortNetwork() saying I need the nodes back in an ArrayList, but I'm willing to go with any kind of list that ensures that the Nodes still possess the information they had when they were in networkList, specifically the edges that go into and out of them. I don't know how much information I'm stripping away from the Nodes by calling them Objects and putting them in a Vector. Any suggestions are extremely welcome.

    I think I may understand what part of the NPE problem is, but I don't know how to fix it. The problem seems to be with the variable "networkList". It stores a lot of information from the makeWattsStrogatzNetwork method. When I use this for loop:
              for (int i = 0; i < networkList.size(); i++) {
                   Object o = networkList.get(i);
                   if (o instanceof Edge){
                        edgeList.add(o);
                   System.out.println("==> edge added to edgeList");
                   else if (o instanceof Node){
                        nodeList.add(o);
                   System.out.println("==> node added to nodeList");
              }I get the NPE at the first line. My problem is that I have to iterate through networkList and all the different kinds of information it possesses, and pull all the nodes out into a Vector called nodeList. How do I do that? The big disconnect in my whole model is right here--networkList contains variables, Nodes, Edges, and parameters. I just want to suck the Nodes out of the list. What am I doing wrong?

  • Itunes could not connect to the itunes store. a secure network connection was terminated unexpectedly

    itunes could not connect to the itunes store. a secure network connection was terminated unexpectedly

    سلام
    قابل توجه کاربران ایرانی، این مشکل از ارتباطات زیر ساخته و مشکل از سیستم ما نیست.
    متاسفانه فعلا باید صبر کنیم
    موفق باشید
    Hi
    Notable Forums, the problem of the connection and the problem is not in our system.
    Unfortunately, now we have to wait
    Good luck

  • Oracle Map Builder Network Models

    We are working on a project that displays road networks in Oracle Map Builder. Many of the network tables were irrevelant so they were deleted in SQL Developer. However, in Oracle MapBuilder all the Network Tables are still listed. Does anyone know how to synchonize Oracle SQL Developer and MapBuilder?
    Thank you,
    Renee

    Hi Renee,
    Were you using the Network Themes to create new Network Themes or were you using Geometry Themes?
    If you used Network Themes, when you deleted the network (tables), did you delete its entry in user_sdo_network_metadata?
    If you were using the Geometry Themes, did you delete the entry from user_sdo_geom_metadata after you delete the geom. table?
    Try to remove the entries in the network/geom metadata views when you no longer need the network/geom tables.
    You also need to commit after you deleted the tables.
    What version of MapBuilder are you using? (click Help->About Oracle Map Builder)
    jack

  • After mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please

    after mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please are there any settings i need to alter as it seems the wav or mp3 file i ceated is being converted to a data file somewhere between the folder and disc drive

    Same thing for a movie file.. If you want to play back the movie via a DVD and a DVD player you must create a Movie DVD  and not just burn files to a data DVD... as Data DVDs are just storage devices for files and therefore will only work with computers...
    Movie DVDs are special formats that include things like menus and special file formats.. so they can playback via a DVD Player...
    You will need a 3rd party DVD Burning app like Toast which is what i actually use.... or the more popular DVD Creator app...to create and then burn a Movie DVD that will playback on a DVD Player....
    https://answers.yahoo.com/question/index?qid=20101220205435AA70beb

Maybe you are looking for

  • Adobe Media Encoder CC Crashing on Startup (W8)

    Can somebody help with this issue as it's causing me a heap of problems. On startup, adobe media encoder crashes, it has been working fine for me for the past few weeks. I've updated all software via the creative cloud but I still get the issue. If t

  • Spry menu bar in iOS

    My web pages use a spry menu bar for navigation.  The  menu bar is OK in Mac OS X but won't function properly when used by iOS on iPads and iPhones.  What modifications do I need to make.  Or what other navigation bar should I use?

  • How to get the action-mapping in jsp page in struts

    Hi, I want get, in my login.jsp, the name of action mapping that call my login.jsp. Is possible? suppose abc.do called my login.jsp now i need to know the name of action-mapping here abc Thanks,

  • Server installation under Yosemite hangs

    Does anyone know what to do when the configuration of OS X Server 4.0 on OS X Yosemite (10.10.1) stays at the "Preparing Calendar services" stage during the configuration process?  According to Activity Monitor the application is active and using (mi

  • Stripes in printout from HP5514

    Hello. I am an owner of a HP Photosmart 5514 than usualy works very good. Recently I replaced the color ink cartridges to new ones and now I have white stripes at yellow and magenta when I do a diagnostic printout. I have used the fault tracing from