[Mapserver-users] GetFeature Request problem
daryljharrison at netscape.net
daryljharrison at netscape.net
Tue Feb 24 17:06:08 PST 2004
I am not able to return any values using the GetFeature request to query values from an MS SQL database. Â I am able to complete a DescribeFeatureType and a GetCapabilities Request but not a GetFeature request??
Here: is my .map file;
NAME GBOutputs
STATUS ON
SIZE 400 400
EXTENT -180 -90 180 90
UNITS DD
IMAGETYPE GIF
#-------------------------------------------------------------------------------------
# Start of web interface definition (including WFS enabling metadata)
#-------------------------------------------------------------------------------------
WEB
 IMAGEPATH "c:\Inetpub\wwwroot\tmp\"
 IMAGEURL "/tmp/"
 METADATA
  WFS_TITLE "Envision Sustainability Tools"
  WFS_ABSTRACT "This is a MapServer demonstration application for Envision Sustainability Tools"
  WFS_ACCESSCONSTRAINTS none
  WFS_ONLINERESOURCE "http://localhost/scripts/mapserv.exe?map=wfs_quest.map"
 END
END
#-------------------------------------------------------------------------------------
# Start of layer definitions
#-------------------------------------------------------------------------------------
LAYER
 NAME GBOutputs
 TYPE POINT
 CONNECTIONTYPE OGR
 CONNECTION
Â
 '<OGRVRTDataSource>
   <OGRVRTLayer name="GBOutputs">
    <SrcDataSource>ODBC:OGRMapserver/c0nnectMe!@QUEST,popdens</SrcDataSource>
    <SrcLayer>popdens</SrcLayer>
    <GeometryType>wkbPoint</GeometryType>
    # <LayerSRS>WGS84</LayerSRS>
    <GeometryField encoding="PointFromColumns" x="X" y="Y"/>
   </OGRVRTLayer>
 </OGRVRTDataSource>'
 DUMP TRUE # for WFS only
 DATA "GBOutputs"
 STATUS default
 METADATA
  WFS_TITLE "GB Population Density"
  WFS_ABSTRACT "Please fill in"
  WFS_EXTENT "289033 5350789 659533 5635789"  # minx min y max x maxy
  WFS_SRS "EPSG:26910" Â
 END
END
END
Here's the output I am receiving:
 <?xml version="1.0" encoding="ISO-8859-1" ?>
- <wfs:FeatureCollection xmlns="http://www.ttt.org/myns" xmlns:myns="http://www.ttt.org/myns" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd http://www.ttt.org/myns http://localhost/scripts/mapserv.exe?map=wfs_quest.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=GBOutputs">
- <gml:boundedBy>
 <gml:null>inapplicable</gml:null>
 </gml:boundedBy>
 </wfs:FeatureCollection>
My understanding is that âinapplicableâ means that there are no features. If I change the <LayerSRS>value id (though this might be the problem) I receive a GCI timeout error.
I am new to MapServer so any help is appreciated. Let me know if you have any other questions.
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
More information about the MapServer-users
mailing list