Hi all,

following steps i had done:

1) gdal_retile for image pyramids of my GeoTIFF
2) gdaltindex for shape file of bounding box of each pyramid step inclusive the 
absolute path on file system
3) Create Table for mosaic-table and fill information of my geotiff:

CREATE TABLE mosaic_geom
(
  name character varying(254) NOT NULL,
  spatialtable character varying(254) NOT NULL,
  minx double precision,
  miny double precision,
  maxx double precision,
  maxy double precision,
  resx double precision,
  resy double precision,
  CONSTRAINT rmosaic_geom_pkey PRIMARY KEY (name, spatialtable)
)

"dop2014rgb_5000_path";"dop2014rgb_5000_path_1";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_2";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_3";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_4";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_5";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_6";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_7";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_8";;;;;;
"dop2014rgb_5000_path";"dop2014rgb_5000_path_0";;;;;;

4) Create Tables for each pyramid step und insert to shape file and absolute 
path:

For example:

CREATE TABLE dop2014rgb_5000_path_0
(
  location character(64) NOT NULL,
  geom geometry(MultiPolygon,25833)
)

"D:\Datenimport\DOP2014RGB5000\0\dop20c_33298_5610_01_37.tif     
";"0106000020E9640000010000000103000000010000000500000000000000C06214410000000070935541000000006072144100000000709355410000000060721441000000007692554100000000C0621441000000007692554100000000C06214410000000070935541"
"D:\Datenimport\DOP2014RGB5000\0\dop20c_33298_5610_01_38.tif     
";"0106000020E964000001000000010300000001000000050000000000000060721441000000007093554100000000008214410000000070935541000000000082144100000000769255410000000060721441000000007692554100000000607214410000000070935541"

5) Create XML-Files for ImageMosaicJDBC-Plugin in GeoServer:

dop2014rgb_5000_path.postgis.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ImageMosaicJDBCConfig [
  <!ENTITY mapping PUBLIC "mapping"  "mapping_path.postgis.xml.inc">
  <!ENTITY connect PUBLIC "connect"  "connect.postgis.xml.inc">]>
<config version="1.0">
  <coverageName name="dop2014rgb_5000_path"/>
  <coordsys name="EPSG:25833"/>
  <!-- interpolation 1 = nearest neighbour, 2 = bilinear, 3 = bicubic -->
  <scaleop  interpolation="1"/>
  <verify cardinality="false"/>
  &mapping;
  &connect;
</config>

mapping_path.postgis.xml
<spatialExtension name="postgis"/>
<mapping>
      <masterTable name="mosaic_geom" >
          <coverageNameAttribute name="Name"/>
          <maxXAttribute name="MaxX"/>
          <maxYAttribute name="MaxY"/>
          <minXAttribute name="MinX"/>
          <minYAttribute name="MinY"/>
          <resXAttribute name="ResX"/>
          <resYAttribute name="RresY"/>
          <spatialTableNameAtribute name="SpatialTable" />
      </masterTable>
      <spatialTable>
          <keyAttributeName name="Location" />
          <geomAttributeName name="Geom" />
      </spatialTable>
</mapping>

Now comes a error when I add a data store using this xml-files:
2015-04-30 12:46:52,415 ERROR [imagemosaic.jdbc] - No level available for 
dop2014rgb_5000_path
2015-04-30 12:46:52,415 ERROR [imagemosaic.jdbc] - No level available for 
dop2014rgb_5000_path
2015-04-30 12:46:52,415 WARN [imagemosaic.jdbc] - java.io.IOException: No level 
available for dop2014rgb_5000_path
java.io.IOException: java.io.IOException: No level available for 
dop2014rgb_5000_path
                at 
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.<init>(ImageMosaicJDBCReader.java:163)
                at 
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat.getReader(ImageMosaicJDBCFormat.java:226)
                at 
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat.getReader(ImageMosaicJDBCFormat.java:68)
                at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1436)
...

What is the mistake?

Greets,
André Mende

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to