[Geoserver-users] Geoserver - trouble setting up a time DImension

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?&quot;/&gt;

      </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

Hi David,

Unfortunately GeoServer does not do time in this way. The only sort of time series stuff that is currently supported is specific to the NetCDF format I believe... and does not work date parameters like this.

GeoServer can do time series with google earth. You can find the details here:

http://geoserver.org/display/GEOSDOC/02-Time+Templates

If you are interested here is a great tutorial put together by Tyler Erickson:

http://geoserver.org/display/GEOSDOC/Tropical+Storm+Tracking+with+PostGIS-GeoServer-GoogleEarth

-Justin

David.Miron@anonymised.com wrote:

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?&quot;/&gt;

      </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

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4820fa63196831637810514!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Hi David:

If you simply want to make a movie file, you can get the time series
images by using an sld to filter, or a filter=(some filter) parameter
to get the images, which you can then stitch into a movie. Would that
be sufficient?

Alex

On Wed, May 7, 2008 at 9:38 AM, Justin Deoliveira
<jdeolive@...1...> wrote:

Hi David,

Unfortunately GeoServer does not do time in this way. The only sort of
time series stuff that is currently supported is specific to the NetCDF
format I believe... and does not work date parameters like this.

GeoServer can do time series with google earth. You can find the details
here:

http://geoserver.org/display/GEOSDOC/02-Time+Templates

If you are interested here is a great tutorial put together by Tyler
Erickson:

http://geoserver.org/display/GEOSDOC/Tropical+Storm+Tracking+with+PostGIS-GeoServer-GoogleEarth

-Justin

David.Miron@...367... wrote:
>
>
> 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?&quot;/&gt;
>
> </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
>
>
>
> !DSPAM:4007,4820fa63196831637810514!
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
> !DSPAM:4007,4820fa63196831637810514!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
> !DSPAM:4007,4820fa63196831637810514!

--
Justin Deoliveira
The Open Planning Project
jdeolive@...1...

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi David,

Andrea just noticed somethign odd about your mapbuilder config. THe base url you are using for the service is "wms/kml_reflect", but you are requesting a png? I would change the service endpoint to wms/reflect, or just just wms.

-Justin

David.Miron@anonymised.com wrote:

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?&quot;/&gt;

      </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

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4820fa63196831637810514!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Thanks Justin

Modified the URL as said and now I get the points displaying ok
But no movie. It cycles through the days but al points are displayed.

Sigh..

Thnaks again

David

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@…1…]
Sent: Friday, 9 May 2008 1:34 AM
To: Miron, David (LI, Armidale)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver - trouble setting up a time DImension

Hi David,

Andrea just noticed somethign odd about your mapbuilder config. THe base
url you are using for the service is "wms/kml_reflect", but you are
requesting a png? I would change the service endpoint to wms/reflect, or
just just wms.

-Justin

David.Miron@...367... wrote:

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?&quot;/&gt;

      </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

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4820fa63196831637810514!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4820fa63196831637810514!

--
Justin Deoliveira
The Open Planning Project
jdeolive@...1...