Geographic Information Systems Asked by Meeett on March 13, 2021
I am stuck with S3 Support for GeoTIFF while I add a dataset with the REST-API.
I did not find any documentation for the REST-API… so I tried to edit my local API-POST-Call:
<coverageStore>
<name>NameOrtho</name>
<workspace>NameWorkspace</workspace>
<enabled>true</enabled>
<type>GeoTIFF</type>
<url>s3://bucket/DEM.tif?useAnon=true&awsRegion=EU_CENTRAL_1</url>
</coverageStore>
But this returns:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message :
class : java.lang.String
required-type : java.lang.String
converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter : com.thoughtworks.xstream.converters.basic.StringConverter
line number : 6
class[1] : org.geoserver.catalog.impl.CoverageStoreInfoImpl
converter-type[1] : org.geoserver.config.util.XStreamPersister$StoreInfoConverter
version : 2.15.0
-------------------------------
What should I do?
I had the same problem and solved it by replacing the &
in the S3 url with &
, so my URL ended up looking like this:
<url>s3://bucket/DEM.tif?useAnon=true&awsRegion=EU_CENTRAL_1</url>
The &
character starts an XML entity, which is terminated by ;
. As there is no ;
in the original url, the parser encounters the =
, which is not a valid character in an entity name.
Answered by nowhere on March 13, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP