[Geoserver-users] GIS newbie and the date line

Hi,

This seems like a very basic question, but with extensive searching I haven’t been able to fully answer it. Is there a way I can configure a single layer in GeoServer to produce maps that span the meridian and/or the antimeridian?

The context is, we are an organization supporting global seismology research. We want to provide interfaces enabling our users to search for global seismic data - including areas spanning both the meridian and antimeridian. There are lots of seismic events near 180 E! We’ve been experimenting with GeoServer as both a WFS and WMS. Currently we’re using a shapefiles and setting the SRS to 4326 (appropriate since our data is stored in WGS 84). I tried creating duplicate points for locations directly east of the date line (180 - 190). These values did appear in the generated FeatureType bounding box, but were not returned in a wfs query with a bounding box of 170,-20 190,0. Obviously I’m missing something here!

References to other global SRS would also be appreciated. It seems most of them are regional.

Thanks, Joanna

Joanna Muench
IRIS Data Management Center
www.iris.edu

Joanna Muench ha scritto:

Hi,

This seems like a very basic question, but with extensive searching I haven't been able to fully answer it. Is there a way I can configure a single layer in GeoServer to produce maps that span the meridian and/or the antimeridian?

The context is, we are an organization supporting global seismology research. We want to provide interfaces enabling our users to search for global seismic data - including areas spanning both the meridian and antimeridian. There are lots of seismic events near 180 E! We've been experimenting with GeoServer as both a WFS and WMS. Currently we're using a shapefiles and setting the SRS to 4326 (appropriate since our data is stored in WGS 84). I tried creating duplicate points for locations directly east of the date line (180 - 190). These values did appear in the generated FeatureType bounding box, but were not returned in a wfs query with a bounding box of 170,-20 190,0. Obviously I'm missing something here!

References to other global SRS would also be appreciated. It seems most of them are regional.

I have bad news for you... this problems is not handled at all in the
Geotools code base, on top of which Geoserver is built, and it's not
really trivial too, because proper handling does not only mean to
modify bbox queries (and split them), but would also mean to merge
features that are at the two ends of the shapefile in order to
provide a seamless view across the date line...

I don't know of anyone with plans to add this support soon, too
(that may be you, since you have that, geographically obvious,
but usually not often asked for, need)

Cheers
Andrea Aime

On 10/30/06, Andrea Aime <aaime@anonymised.com> wrote:

I have bad news for you… this problems is not handled at all in the
Geotools code base, on top of which Geoserver is built, and it’s not
really trivial too, because proper handling does not only mean to
modify bbox queries (and split them), but would also mean to merge
features that are at the two ends of the shapefile in order to
provide a seamless view across the date line…

I don’t know of anyone with plans to add this support soon, too
(that may be you, since you have that, geographically obvious,
but usually not often asked for, need)

Cheers
Andrea Aime

So there wasn’t anything for me to miss. And there I thought the earth was round ;-).

I recognize how this is not a trivial matter - it’s one we punted on in our one map-based search tool. For our immediate needs, we can do the bounding box splitting and image merging client-side. Since our development work is in Java, it might be a first step towards answering this problem in a broader sense.

Thanks!
Joanna