WFS layer projection problem
Martin Weinelt
mweinelt at PLANIGLOBE.COM
Mon Mar 14 07:09:07 PST 2005
Hello list,
we're setting up a mapserver installation to render and
query a scientific data base with global coverage. The
data base layers are provided as WFS. This WFS has
DD (epsg:4326) as reference system.
The mapserver installation provides for 4 projections which can be
set by the user: DD, Mercator, LAEA (South Pole aspect) and LAEA
(North Pole aspect). The corresponding values for the resp. keywords
in the mapfile (eg, PROJECTION) are passed over as CGI-variables
('&map_projection=...', etc.).
While things run smoothly now with the DD-'projection and the
Mercator, we are facing severe problems with the polar aspect maps.
The points from the WFS-layer get sometimes partly plotted on the
maps sometimes not at all. In cases, only some of the points you can
see on the DD- or Mercator-versions show up on the polar aspect maps.
(of course I am talking about the points actually within the scope of
LAEA-covered regions.)
From the logs of the WFS-server we can see, that the mapserver
CGI sometimes sends strange bounding boxes to the WFS, which
do not really cover the area shown by the map.
Is there anything special with LAEA and mapserver (proj4). Has anyone
encountered s/th similar? Where should we start searching for
potential solutions to this problem?
Cheers, Martin
PS: You can see the thing by going to "http://www.pangaea.de/PangaVista"
and hitting the 'Show map'-entry in the search form.
Mapfile excerpt:
MAP
NAME "Pangaea_WMS"
STATUS ON
DEBUG ON
# nb! UNITS passed in by URL
SIZE 400 400
IMAGETYPE jpeg
EXTENT -180 -90 180 90
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
FONTSET "/path/to/fonts.list"
SYMBOLSET "/path/to/symbols.sym"
# SHAPEPATH "/path/to/data/"
SHAPEPATH " nb!:passed in by URL"
REFERENCE
IMAGE "ref/ddindex200.png"
EXTENT -180 -90 180 90
SIZE 199 99
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MAXBOXSIZE 190
END # of Reference
WEB
METADATA
"wms_title" "pangaea_wms"
"wms_onlineresource" "http://www.pangaea.de/pvmap/mapserv.cgi?"
"wms_srs" "EPSG:4326"
END # metadata
IMAGEPATH "/path/to/tmp/"
IMAGEURL "/path/to/tmp/"
LOG "/path/to/pv_ms.log"
TEMPLATE "/path/to/tmpl.html"
EMPTY "/pvmap/nf.html" # these are URLs
ERROR "/pvmap/er.html" # these are URLs
END #web
PROJECTION
# nb!: passed in by URL
END # projection
....
## then some basic layers, such as coastline, etc
...
## and then the WFS-layer, here the points:
LAYER
NAME "dataSetPoint"
METADATA
"wfs_service" "WFS"
"wfs_typename" "pv:dataSetPoint"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "60"
END
PROJECTION
"init=epsg:4326"
END
DUMP TRUE
TYPE POINT
STATUS on
CONNECTIONTYPE WFS
CONNECTION "%wfsurl%" #this is passed in by a CGI variable
TOLERANCE 10
CLASS
NAME "DataSets"
SYMBOL "circle"
SIZE 8
COLOR 220 0 0
OUTLINECOLOR 120 120 120
TEMPLATE "/path/to/tmpl.html"
END # class
END # Layer
More information about the MapServer-users
mailing list