Hello-
New to geoserver, postgres and openlayers…
I’m building an opengeo web map tool using postgis, geoserver and openlayers. My postgis db contains both vector and raster data and I want to access the rasters from the db and publish as WCS to OpenLayers via geoserver.
I’ve followed the tutorial to given here: http://docs.geoserver.org/2.4.x/en/user/tutorials/imagemosaic-jdbc/imagemosaic-jdbc_tutorial.html
I’m using the examples exactly as written (except for username, passwd, dbname…) and it all works great up until I get to the “Importing the image data” section and type in the command below:
java -jar /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/gt-imagemosaic-jdbc-11.0.jar import -config /usr/local/tomcat/webapps/geoserver/data/coverages/osm.postgis.xml -spatialTNPrefix tileosm -tileTNPrefix tileosm -dir tiles -ext png
I am getting the following error:
java.sql.SQLException: The url cannot be null
at java.sql.DriverManager.getConnection(DriverManager.java:649)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at org.geotools.gce.imagemosaic.jdbc.Import.start(Import.java:367)
at org.geotools.gce.imagemosaic.jdbc.Toolbox.main(Toolbox.java:46)
I’ve checked and rechecked the jdbcURL in my connect.postgis.xml.inc file (it’s correct). I’ve checked and re-checked the username and password of the postgis database (both correct as well).
For a different application I wrote a simple java tool to query the database and it works using the same URL, username and password that are in the connect.postgis.xml.inc file.
Am I missing something in my ~/tomcat/webapps/geoserver directory structure?
Really appreciate any insight you can offer.
Thanks in advance.
Stephanie
Oh…config files are here…
1> connect.postgis.xml.inc
- mapping.postgis.xml.inc
- osm.postgis.xml