|
I loaded an ASCII grid file (.asc) into GeoServer to test its WCS capability. The ASCII grid is in projection EPSG:27700, but as there is no coordinate reference system information bundled with the file, GeoServer assumes it is in EPSG:404000.
DescribeCoverage for the data is: http://ogcdev.bgs.ac.uk/geoserver-2.5/OneGDev/wcs?service=WCS&version=2.0.1&CoverageId=OneGDev__witi_b&request=DescribeCoverage&
And native format is deemed to be image/tiff.
I can do a GetCoverage request as text/plain (as below) to get the data.
http://ogcdev.bgs.ac.uk/geoserver-2.5/OneGDev/wcs?service=WCS&version=2.0.1&CoverageId=OneGDev__witi_b&request=GetCoverage&format=text/plain&
However if I request the coverage as a tiff I get an error:
http://ogcdev.bgs.ac.uk/geoserver-2.5/OneGDev/wcs?service=WCS&version=2.0.1&CoverageId=OneGDev__witi_b&request=GetCoverage&
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"> <ows:Exception exceptionCode="NoApplicableCode"> <ows:ExceptionText> org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffException: GEOTIFF Module Error Report The supplied grid coverage uses an unsupported crs! You are allowed to use only projected and geographic coordinate reference systems ModelPixelScaleTag: NOT AVAILABLE ModelTiePointTag: NOT AVAILABLE ModelTransformationTag: NOT AVAILABLE GEOTIFF Module Error Report The supplied grid coverage uses an unsupported crs! You are allowed to use only projected and geographic coordinate reference systems ModelPixelScaleTag: NOT AVAILABLE ModelTiePointTag: NOT AVAILABLE ModelTransformationTag: NOT AVAILABLE [] </ows:ExceptionText> </ows:Exception> </ows:ExceptionReport>
As GeoServer supports .asc files and supports EPSG:4040000, by default, it would seem be useful if geotools could also support this projection system
|