Hi all
I have tried to search the geoserver archives but continually get an internal server error so I will post this in the hope that someone can shed light on my issue. So apologies in advance if this is a duplication.
I am trying to get a time series/ movie playing of some temporal data that sits in a postgis database. I have enabled the table within the database
As a feature type within geoserver and all that works fine.
The temporal column of the database is “DCV_Date” and I have made a file time.ftl that sits in the directory
webapps\geoserver\data\featureTypes\cbem_vis_DY_CBEM_VIS
This file contains the line: ${DCV_Date.value?date('yyyy-MM-dd')}
This is as per the tutorial on the geoserver site.
However, using mapbuilder when I make a request using the following layer:
<Layer queryable="0" hidden="0">
<Server service="wms" version="1.3.0" title="wms">
<OnlineResource xlink:type="simple" xlink:href="http://cbem.web.csiro.au:8080/geoserver/wms/kml_reflect?"/>
</Server>
<Name>topp:DY_CBEM_VIS</Name>
<Title>Disease Spread</Title>
<Abstract>Disease Spread</Abstract>
<DimensionList>
<Dimension name="time" units="ISO8601" nearestValue="1">2005-12-31,2006-01-01</Dimension>
</DimensionList>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
</Layer>
I get returned a broken image.
I have checked out the logs of geoserver and the request that is actually been made is:
/geoserver/wms/kml_reflect?LAYERS=topp%3ADY_CBEM_VIS&TRANSPARENT=TRUE&TIME=2005-12-31&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=106.96166666666664,-48.5,159.62833333333333,-9&WIDTH=640&HEIGHT=480
Also a GetCapabilities request yields for the feature type the following:
−
<FeatureType>
<Name>topp:DY_CBEM_VIS</Name>
<Title>DY_CBEM_VIS_Type</Title>
<Abstract>Generated from cbem_vis</Abstract>
−
<ows:Keywords>
<ows:Keyword>cbem_vis</ows:Keyword>
<ows:Keyword>DY_CBEM_VIS</ows:Keyword>
</ows:Keywords>
<DefaultSRS>urn:x-ogc:def:crs:EPSG:6.11.2:4326</DefaultSRS>
−
<OutputFormats>
<Format>GML2</Format>
<Format>text/xml; subtype=gml/2.1.2</Format>
<Format>GML2-GZIP</Format>
<Format>text/xml; subtype=gml/3.1.1</Format>
<Format>gml3</Format>
<Format>SHAPE-ZIP</Format>
<Format>json</Format>
</OutputFormats>
−
<ows:WGS84BoundingBox>
<ows:LowerCorner>112.89 -43.63</ows:LowerCorner>
<ows:UpperCorner>153.64 -10.61</ows:UpperCorner>
</ows:WGS84BoundingBox>
</FeatureType>
I cannot see any time attribute – should there be?
Does anyone have any insight into what is going on here? Have I missed something in setting up the layer on the server side? Is there a file I need to modify
On the server side to add the Dimesion attribute.
Kind regards and thanks in advance.
David
Dr David Miron
CSIRO
02 6776 1375