Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Opengeo Suite 3.0.2, PostGIS 2.0.3 and PostgreSQl 9.2.

I am trying to import raster data from PostGIS to Geoserver but facing an error.

I follow this tutorial link to import the raster data from PostGIS.

All steps are going good.

I used FWtools 2.2.4 to make tiles. gdal_retile works fine.

These are my XML configuration files...


<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<!DOCTYPE ImageMosaicJDBCConfig [ <!ENTITY mapping PUBLIC "mapping" ""> 
<!ENTITY connect PUBLIC "connect" ""> ]> 
<config version="1.0"> 
<coverageName name="slp"/> 
<coordsys name="EPSG:4326"/> 
<scaleop interpolation="1"/> &mapping; &connect; 

<dstype value="DBCP"/> 
<username value="postgres" /> 
<password value="postgre" /> 
<jdbcUrl value="jdbc:postgresql://localhost:5432/spatial_db" /> 
<driverClassName value="org.postgresql.Driver"/> 
<maxActive value="10"/> 
<maxIdle value="0"/> 

<spatialExtension name="postgis"/>
<masterTable name="rasterdata_master2" > 
  <coverageNameAttribute name="slp"/> 
  <maxXAttribute name="maxx"/> 
  <maxYAttribute name="maxy"/> 
  <minXAttribute name="minx"/> 
  <minYAttribute name="miny"/> 
  <resXAttribute name="resx"/> 
  <resYAttribute name="resy"/> 
  <tileTableNameAtribute name="TileTable" /> 
  <spatialTableNameAtribute name="SpatialTable" />
  <blobAttributeName name="rast" /> 
  <keyAttributeName name="rid" /> 
  <keyAttributeName name="rid" />
  <geomAttributeName name="geom" />
  <tileMaxXAttribute name="maxX"/>
  <tileMaxYAttribute name="maxY"/>
  <tileMinXAttribute name="minX"/>
  <tileMinYAttribute name="minY"/>

After that I used the DDL generation utility which creates 4 Sql Scripts.

I execute the required script which creates the metadata tables.

now I used java utility to import the image data. That also works fine.

But when I try to use the image mosaic jdbc plugin to import the raster data through jdbc database, it gives an error, i.e. "Could not list layers for this store, an error occurred retrieving them: Argument "value" should not be null."

I am not able to insert the screenshot right now, so can't show you the screenshot of error.



share|improve this question

I recommend the same as in How to publish PostGIS Rasters in Geoserver?: Following the configuration instructions for the PostGIS raster plugin, you should try replacing

<spatialExtension name="postgis"/>


<spatialExtension name="pgraster"/>

in configration file

Also, maybe <password value="postgre" /> in is a typo for <password value="postgres" />.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.