This sample application demonstrates the use of some Oracle Spatial features with Java. It is furthermore a finger exercise for combining the following Java and JavaScript technologies and frameworks:
- Mybatis for SQL mapping
- GeoTools for spatial data processing
- Spring MVC and Jackson JSON library for RESTful webservices
- jQuery for AJAX stuff
- OpenLayers for web-based GIS applications
-
Install Oracle XE.
- Choose
system
as system user password. - Change Oracle XE's HTTP port as described here, since Tomcat uses the same default port (8080).
- Choose
-
Execute the batch file
data\setup_data.bat
to create and fill a demo schema (spatialdemo
).- Make sure that the
sqlplus
andjava
command will be found in your search path.
- Make sure that the
-
Build and run the demo application by using Maven:
mvn process-resources
(installs the Oracle JDBC jar file in your local Maven repository)mvn package tomcat:run
On later runs the first command can be skipped.