User Tools

Site Tools


contrib:orcl_visualization_tools

This is an old revision of the document!


Table of Contents

NDM Network Editor

The NDM Network Editor is a standalone Java client application that facilitates editing network data, enables browsing and navigating the network, and more importantly visualizes the result of network analyzes for users.

MapViewer

Enables visualizing spatial data.

Requirements

Instructions are taken from the book Pro Oracle Spatial pp.389-393 and adapted to MapViewer version ⇒10.1.2.0.2

chmod u+w $OC4J_HOME/lbs/mapviewer.ear
  • Add the following line to the file $OC4J_HOME/j2ee/home/config/server.xml inside the <application-server> element:
<application name="MapViewer" path="../../../lbs/mapviewer.ear" start="true" />
  • Add the following line to the file $OC4J_HOME/j2ee/home/config/default-web-site.xml inside the <web-site> element:
<web-app application="MapViewer" name="web" root="/mapviewer" load-on-startup="true" />
  • Change directory to $OC4J_HOME/j2ee/home
  • Launch the OC4J Server by executing the command and (for the first time) providing the new administrative password:
java -jar oc4j.jar
  • Acess the MapViewer application in
http://localhost:8888/mapviewer
  • To start using MapViewer, a datasource has to be defined. Go to Admin→Datasources and add the datasource information for the bz10m.inf.unibz.it server
    • Hint: MapViewer forgets all datasources once oc4j server is restarted. To have a datasource permanently, edit the file $OC4J_HOME/lbs/mapviewer/web/WEB-INF/conf/mapViewerConfig.xml by uncommenting the Predefined Data Sources section and entering:
<map_data_source name="orcl"
                 jdbc_host="bz10m.inf.unibz.it"
                 jdbc_sid="orcl"
                 jdbc_port="1521"
                 jdbc_user="user"
                 jdbc_password="pass" 
                 jdbc_mode="thin"
                 number_of_mappers="3"
                 allow_jdbc_theme_based_foi="false"
 />
 <!-- The password will become encrypted after server restart -->
Hints

A convenient application for displaying up to 3 layers of spatial data is JView demp app:

http://localhost:8888/mapviewer/demo/jview.jsp

Enter the following query to visualize Bolzano roads:

SELECT GEOMETRY FROM BZ_ROADS_LINK$

Note you have to omit a semicolon (“;”) in the end of the SQL query
In the “Label Column” you can enter e.g. a LINK_NAME, so each link will have its name (street name) on the map.

/data/www/wiki.inf.unibz.it/data/attic/contrib/orcl_visualization_tools.1190879994.txt.gz · Last modified: 2019/01/16 10:03 (external edit)