Projection issues on WFS-Server

Stephan Holl holl at GDF-HANNOVER.DE
Wed Mar 8 02:31:07 PST 2006


Hello Frank,

On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam <warmerdam at POBOX.COM>
wrote:

> Stephan Holl wrote:
> > GetCapabilities
> > ...
> > <SRS>EPSG:4326</SRS>
> > <LatLongBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
> > maxy="2.5e+07"/>
> > ...
> > 
> > This should be from my understanding
> > <LatLongBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
> > 
> > Perhaps you could provide a starting point where to look.
> 
> Stephan,
> 
> I would encourage you to upgrade to 4.8.1.  Some aspect of
> this has already been fixed, though I am not sure if it was the
> layer level extents.  It might just have been per-shape bounds
> that was fixed.

I have updated to 4.8.1 on my test-server and the same thing is still
persistent.

For clearance I have posted my layer definition. I have also checked
that the correct srid is given in the geometry_columns for the specific
layer:
MAP
...
  Name "GRASS_USERMAP"
  EXTENT -180 -90 180 90
  UNITS DD
  PROJECTION
     "init=epsg:4326"
  END
...
  WEB
        METADATA
	"DESCRIPTION"	"testwfs"
        "wfs_title"            "testwfs"  
	"wfs_onlineresource""http://localhost/cgi-bin/wfs?"
        "wfs_srs"               "EPSG:4326"
        END 
  END
...
LAYER
   CONNECTION "user=xxx password=xxx dbname=postgis
host=localhost" 
   CONNECTIONTYPE postgis
   DATA "wkb_geometry from (SELECT wkb_geometry, ogc_fid, column1,
column2 FROM table) AS foo USING UNIQUE ogc_fid USING
SRID=4326" 
   TYPE POINT
   DUMP TRUE
   STATUS DEFAULT
   METADATA
       "wfs_title"	"testwfs" ## REQUIRED
       "gml_include_items" "all" 
   END
   NAME "testwfs"
   TOLERANCE 5
   TOLERANCEUNITS PIXELS
   LABELITEM "name"
   LABELMINSCALE 0
   LABELMAXSCALE 80000000
   MINSCALE 0
   MAXSCALE 8000000000
   PROJECTION
    "init=epsg:4326"
   END
   CLASS
    NAME "GRASS-Users"
   END #class  
  END  #layer grass
...
END

> 
> I would suggest you look in mapwfs.c, search for
> msOWSGetLayerExtent().

Diggin in the code will not help much since I am no programmer, just
user.

Thank you for your help.

	Stephan


-- 
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office      -     Mengendamm 16d      -     D-30177 Hannover
Internet: www.gdf-hannover.de      -      Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507       -        Fax: ++49-(0)511.39088508



More information about the MapServer-users mailing list