Hello Geoserver-User Community,

I want a little bit help with creating an ImageMosaic from WorldImage files.

My input is:
  - a lot of PNG images in different UTM projections.
 - the .wld files for each png (as described here   World file - 
Wikipedia<https://en.wikipedia.org/wiki/World_file>)
- the .prj file that the current PNG.

With these files I want to create a new ImageMosaic layer as the documentation 
mentions here that it is supported.

"The plugin can be used with GeoTIFFs, as well as rasters accompanied by a 
world file (.wld, .pgw for PNG files, .jgw for JPG files, etc.)"

ImageMosaic - GeoServer 2.19.x User 
Manual<https://docs.geoserver.org/maintain/en/user/data/raster/imagemosaic/>

My mosaic .properties file is that

MosaicCRS=EPSG\:4326
Levels=0.057934032977228433,0.04039598061277999
Heterogeneous=false
Name=png_imagemosaic
HeterogeneousCRS=true
TypeName=png_imagemosiac
Caching=false
ExpandToRGB=false
LocationAttribute=location
PathType=ABSOLUTE
SuggestedSPI=com.sun.imageio.plugins.png.PNGImageReaderSpi
CheckAuxiliaryMetadata=false
LevelsNum=1
SuggestedFormat=org.geotools.gce.imagemosaic.remote.RemoteImageFormat
SuggestedIsSPI=org.geotools.gce.imagemosaic.remote.RemoteImageInputStreamSPI


Which is quite the same properties file as I found here:

geotools/remote_test.properties at 06d379a2fdbfdbf94641c16813c37ef02aa7f63c * 
geotools/geotools 
(github.com)<https://github.com/geotools/geotools/blob/06d379a2fdbfdbf94641c16813c37ef02aa7f63c/modules/plugin/imagemosaic/src/test/resources/org/geotools/gce/imagemosaic/test-data/remote_test/remote_test.properties>
which it the config file for publishing Png files

As datastore I use a postgres table.


By the way I tried to publish the same png files as an WorldImage layer and it 
works. The only catch was that it needed in the same path the *.prj file and 
the worldfile to be *.wld and not *.pnw.

Does anyone had the same issue and resolved it somehow?
The documentation also isn't very clear on how we can use other formats than 
Geotiff files.

PS. I already had created successfully imageMosaic layers using the Geotiffs 
and it works

Thanks in advance,
Christos


Christos Charmatzis
Tel. 0030 6945759344
Email: xr_xarmat...@outlook.com<mailto:xr_xarmat...@outlook.com>

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to