[GIS] geoserver world image publishing error (georeferenced by ArcMap)

arcgis-10.2georeferencinggeoserverrasterraster-conversion

I want to add store – WorldImage in geoserver 2.5, but I still get this error:

"Could not list layers for this store, an error occurred retrieving them: Failed to create reader from file:data/picture.jpg and hints null"

According to manual at http://docs.geoserver.org/stable/en/user/data/raster/worldimage.html I only have to provide .jpg + .jgw (or .tif + .tfw).

Here they write ( http://en.wikipedia.org/wiki/World_file ) that I have to provide .prj file together with jgw (which is only transformation info, not projection) and jpg.

World files do not specify a coordinate system; this information is generally stored somewhere else in the raster file itself or in another companion file, e.g. Esri's .prj file.

I create my "picture.jpg" in ArcMap with georeferencing panel (update/rectify functions). It is weird that sometimes I get a result as a four files and sometimes only three (but still different) :

Case 1:
picture1.jgw
picture1.jpg
picture1.jpg.aux.xml

Case 2:
picture2.jgwx (different file ending!)
picture2.jpg
picture2.jpg.aux.xml

Case 3:
picture3.jgw
picture3.jpg
picture3.jpg.aux.xml
picture3.jpg.ovr (this file is here new!)

Is problem here (ArcMap 10.2) or is it in geoserver? As a next step I would like to publish my rasters as WMTS using Openlayers. Geotiffs are much larger than jpegs, so I am trying to use world images.

Best Answer

So, georeferencing panel in ArcMap provides 2 options - update georeferencing and rectify. Update georeferencing creates jgwx, pnwx, tfwx extensions and this can't be opened in GeoServer. A solution is to rectify all images, which creates pgw-like extensions.

To define a world file's projection in GeoServer you have to make an exact copy of projection definition from layer setup to new file with "SameNameAsLayer.prj" name and extension.

Related Question