In addition I'd like to provide the stack-trace for the REST request (GET)
for the successful configured (GeoServer UI) imagepyramid coverage store :

Request :
http://localhost:8080/geoserver/rest/workspaces/nasa/coveragestores/BlueMarble/coveragestores/BlueMarble.html
provides the following output and occurs w/o authentication for the GET
request:

Coverage "
Expression properties is undefined on line 2, column 13 in CoverageInfo.ftl.
The problematic instruction:
----------
==> ${properties.name} [on line 2, column 11 in CoverageInfo.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression properties is
undefined on line 2, column 13 in CoverageInfo.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at freemarker.template.Template.process(Template.java:237)
at
org.restlet.ext.freemarker.TemplateRepresentation.write(TemplateRepresentation.java:112)
at
com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.java:342)
at
com.noelios.restlet.http.HttpServerCall.sendResponse(HttpServerCall.java:306)
at
com.noelios.restlet.ext.servlet.ServletCall.sendResponse(ServletCall.java:306)
at
org.geoserver.rest.GeoServerServletConverter.commit(GeoServerServletConverter.java:53)
at
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:130)
at
org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:86)


2013/6/5 Frank Gasdorf <[email protected]>

> Hello everybody,
>
> while I try to setup a GeoServer instance I run into problems to upload
> and configure ImagePyramid's. I already have a pre-generated folder
> structure with tiff and properties files for 8 different scales.
>
> I read the docs for REST API and have seen, that its possible to configure
> coverages for 3 different kind of types: geotiff, worldimage and
> imagemosaic (
> http://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html#id1)
>
> I'm wondering if it is possible to configure imagepyramid (the plugin is
> available and can be configured using the geoserver UI) and other extension
> using the REST service in a generic way.
>
> Maybe it is available already and I couldn't find it yet. If so, could
> anybody provide an example, how to:
> * upload a pre-configured zipped imagepyramid
> * configure a layer based on this dataset
>
> I configured the store via the GeoServer UI and had a look at the
> resulting REST configuration information, which looked fine for the first
> request and is broken since. Successful response:
>
> Example for blue marble:
>
> <coverageStore>
> <name>BlueMarble</name>
> <description>NASA Blue Marble</description>
> <type>ImagePyramid</type>
> <enabled>true</enabled>
> <workspace>
> <name>nasa</name>
> <atom:link xmlns:atom="http://www.w3.org/2005/Atom"; rel="alternate" href="
> http://localhost:8080/geoserver/rest/workspaces/nasa.xml";
> type="application/xml"/>
> </workspace>
> <__default>false</__default>
> <url>file:data/nasa/BlueMarble/BlueMarble.properties</url>
> <coverages>
> <atom:link xmlns:atom="http://www.w3.org/2005/Atom"; rel="alternate" href="
> http://localhost:8080/geoserver/rest/workspaces/nasa/coveragestores/BlueMarble/coverages.xml";
> type="application/xml"/>
> </coverages>
> </coverageStore>
>
> Thanks a lot for any hint or example how to upload and configure
> stores/coverages types provided by extensions.
>
> Cheers
> - Frank
>
>
>
>
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to