[Mapserver-users] WFS Layer Problem
bartvde at xs4all.nl
bartvde at xs4all.nl
Wed Mar 3 00:58:47 PST 2004
Hi,
what kind of request are you doing against the WFS? Is the GetCapabilities
working on your WFS (&service=WFS&request=GetCapabilities) ?
Below a setup from my server which works:
WEB
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
WMS_TITLE "Gemeentes mapserver WMS"
WMS_ABSTRACT "UMN MapServer Gemeentekaart"
WMS_ACCESSCONSTRAINTS none
WMS_SRS "EPSG:28992"
WFS_TITLE "Gemeentes mapserver WFS"
WFS_ONLINERESOURCE
"http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/gemeentes.map"
WFS_SRS "EPSG:28992"
OWS_SCHEMAS_LOCATION "http://ogc.dmsolutions.ca"
END
END
LAYER
DATA "Nlge_r98"
METADATA
WMS_TITLE "Gemeentes"
WMS_ABSTRACT "Gemeentes via UMN Mapserver"
WMS_SRS "EPSG:28992"
WFS_TITLE "Gemeentes"
END
NAME "Gemeentes"
SIZEUNITS PIXELS
STATUS ON
TOLERANCE 0
TOLERANCEUNITS PIXELS
TYPE POLYGON
DUMP TRUE
TEMPLATE "blank.html"
UNITS METERS
CLASS
NAME "Foreign Lands"
STYLE
MAXSIZE 100
MINSIZE 1
OUTLINECOLOR 255 0 0
SIZE 1
SYMBOL 0
END
END
END
Best regards,
Bart
> Hi All,
>
> I'm trying to set up a map file to serve up a WFS layer. I think I've
> set all the metadata tags specified in the HOWTO but I get a GIF output,
> not GML. I'm using v4.0 on Windows. Here's the mapfile:-
>
> MAP
> DEBUG TRUE
> NAME "FIRST"
> SHAPEPATH "F:\CDS Project\Mapping\shp\"
> EXTENT 270000 180000 290000 200000
> SIZE 600 600
> UNITS METERS
> WEB
> IMAGEPATH "F:\CDS Project\Working\Dev\MapServer\tmp\"
> IMAGEURL "/CDSproj/Dev/MapServer/tmp/"
> LOG "F:\CDS Project\Working\Dev\MapServer\MapServer.log"
> METADATA
> "wfs_title" "WFS Demo - CDS Project"
> "wfs_onlineresource"
> "http://localhost/cgi-bin/mapserv_40.exe?map=F:/CDS%20Project/Working/Dev/MapServer/firstWFS.map"
> "wfs_srs" "EPSG:27700"
> "ows_schemas_location"
> "http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd"
> END
> END
>
> # Start of LAYER DEFINITIONS
> ---------------------------------------------
> LAYER # UrbanAreas polygon layer begins here
> NAME UrbanAreas
> DATA UrbanAreas
> STATUS DEFAULT
> TYPE POLYGON
> DUMP TRUE
>
> CLASS
> STYLE
> COLOR 232 232 232
> OUTLINECOLOR 32 32 32
> END
> END
> END # UrbanAreas polygon layer ends here
> # End of LAYER DEFINITIONS -------------------------------
> END # end of map file/object
>
> Can anybody see what else needs to be added to force the output to GML?
>
> Thanks,
>
> Keith
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list