I have already successfully got Geoserver work with the ImageMosaic plugin and
a Postgres Database.
This time I have an Oracle database with the same data used to populate the
Postgres database (so my problem should not be a data issue).
I am using:
- Geoserver 2.9
- Geoserver is running on Windows 7
- an Oracle 11g database.
Initially, I set up the 3 Geoserver properties files under
C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE:
- myTableName.properties (see the content)
- datastore.properties (see the content)
- indexer.properties (see the content)
After restarting Geoserver, I tried to 'Add New Store', and clicked on
"ImageMosaic" under New Data Source > Raster Data Sources.
I entered the following input:
- Data Source Name: IMAGES_MOSAIC_STORE
- Description: IMAGES_MOSAIC_STORE
- Enabled: checked
- URL: file://C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE\
When I clicked on Save, I got the following message:
Could not list layers for this store, an error occurred retrieving them: Failed
to create reader from file://C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE\ and hints
null
The logfiles show the following callstacks:
2016-10-31 14:52:53,269 INFO [store.panel] - Could not convert
file:\C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE into canonical form
java.io.IOException: The filename, directory name, or volume label syntax is
incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at
java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
at java.io.File.getCanonicalPath(File.java:618)
at java.io.File.getCanonicalFile(File.java:643)
at
org.geoserver.web.data.store.panel.FileModel.canonicalize(FileModel.java:101)
at
org.geoserver.web.data.store.panel.FileModel.setObject(FileModel.java:66)
at
org.geoserver.web.data.store.panel.FileModel.setObject(FileModel.java:26)
at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3082)
at
org.apache.wicket.markup.html.form.FormComponent.setModelObject(FormComponent.java:1579)
...
2016-10-31 14:52:53,446 INFO [geoserver.web] - Getting list of coverages for
saved store file://C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE\
java.lang.RuntimeException: Could not list layers for this store, an error
occurred retrieving them: Failed to create reader from
file://C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE\ and hints null
at
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:150)
...
Caused by: java.io.IOException: Failed to create reader from
file://C:\FOLDER1\FOLDER2\IMAGES_MOSAIC_STORE and hints null
at
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1443)
...
----------------
Content of myTableName.properties:
======
Levels=0.015789652484640204,0.005213341874903499
Heterogeneous=true
AbsolutePath=false
Name= myTableName
TypeName= myTableName
Caching=false
ExpandToRGB=false
LocationAttribute=locationAttributeName
SuggestedSPI=it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi
CheckAuxiliaryMetadata=false
LevelsNum=1
Content of datastore.properties:
======
SPI=org.geotools.data.oracle.OracleNGDataStoreFactory
host=HHHHH
port=1521
database=DDDDD
user=UUUUU
passwd=PPPPP
Loose\ bbox=true
Estimated\ extends=false
validate\ connections=true
Connection\ timeout=10
preparedStatements=true
Caching=false
Content of indexer.properties:
=====
Caching=false
AbsolutePath=false
UseExistingSchema=true
Name= myTableName
Schema=*generic_polygon:Polygon,locationAttributeName:String
CanBeEmpty=true
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users