[mapserver-users] MapServer v. 4.10.0 featureid problem

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Fri Apr 18 07:36:06 EDT 2008


Jacob is bang on (I'm no expert on ArcGIS :)

If I invoke a tool like ogrinfo on the shapefile, I see no attribute
called "FID".  I do see "ID" and "DISTRICT" attributes.

Try setting "gml_featureid" "ID" in your mapfile, which should pick up
the field and process accordingly.

..Tom


> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of 
> Delfos, Jacob
> Sent: 17 April, 2008 11:55 PM
> To: mapserver-users at lists.osgeo.org
> Cc: Brenton Wonders; Russell Huff
> Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
> 
> 
> Hi Guys,
> 
> I'm no expert on WFS, but I do know ArcGIS.
> The FID field is not really an attribute. It is more like an 
> internal ESRI unique row ID (which gets updated after edits 
> to be sequential). If you open up the attributes in another 
> application (if you use shapefiles, open up the DBF in 
> OpenOffice Calc or Excel), then you will find there is no FID 
> field. Within ArcGIS, however, the FID field is presented as 
> if it were a normal attribute.
> 
> Hope this helps,
> 
> Jacob
> 
>  
> 
> > -----Original Message-----
> > From: mapserver-users-bounces at lists.osgeo.org
> > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian 
> > Mixon
> > Sent: 18 April 2008 01:34
> > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org
> > Cc: Brenton Wonders; Russell Huff
> > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
> > 
> > Tom,
> > 
> > As soon as the Brenton on this list gets in to work we'll 
> try to put 
> > something together for you. I'm working remotely and need his GIS 
> > knowledge to get something for you.
> > 
> > Brian
> > 
> > -----Original Message-----
> > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca]
> > Sent: Thursday, April 17, 2008 10:51 AM
> > To: Brian Mixon; mapserver-users at lists.osgeo.org
> > Cc: Brenton Wonders; Russell Huff
> > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
> > 
> > 
> > Hi Brian,
> > 
> > What's your underlying data?  If there's anyway you can package a 
> > small testcase, I can do a local test.
> > 
> > ..Tom
> >  
> > 
> > > -----Original Message-----
> > > From: Brian Mixon [mailto:mixon at waterstoneinc.com]
> > > Sent: 17 April, 2008 12:24 PM
> > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org
> > > Cc: Brenton Wonders; Russell Huff
> > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 
> featureid problem
> > > 
> > > Hi Tom,
> > > 
> > > Yes, it does. It's an Arc field that is present in all our data.
> > > 
> > > Thanks,
> > > Brian
> > > 
> > > -----Original Message-----
> > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca]
> > > Sent: Thursday, April 17, 2008 10:11 AM
> > > To: Brian Mixon; mapserver-users at lists.osgeo.org
> > > Cc: Brenton Wonders; Russell Huff
> > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 
> featureid problem
> > > 
> > >  
> > > Does the column/field "fid" exist in your data?
> > > 
> > > ..Tom
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > 	From: mapserver-users-bounces at lists.osgeo.org
> > > [mailto:mapserver-users-bounces at lists.osgeo.org] On 
> Behalf Of Brian 
> > > Mixon
> > > 	Sent: 17 April, 2008 11:51 AM
> > > 	To: mapserver-users at lists.osgeo.org
> > > 	Cc: Brenton Wonders; Russell Huff
> > > 	Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem
> > > 	
> > > 	
> > > 	Hello,
> > > 	 
> > > 	I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0
> > 
> > > request. I'm trying to have all the features for a 
> particular layer 
> > > returned (which happens successfully) with the fid (feature id) 
> > > included as well (does not happen). I've included the 
> gml_featureid 
> > > 'fid' tag in the layer's metadata section of the mapfile but only 
> > > receive the
> > > following warning the the xml/gml response:    <!--  WARNING: 
> > > FeatureId
> > > item 'fid' not found in typename 'senate_districts'.   -->
> > > 	 
> > > 	I've searched and read the various tickets that claim this
> > problem is
> > > fixed so I'm wondering what I'm doing wrong?
> > > 	 
> > > 	Any information to point me in the right direction would be
> > greatly
> > > appreciated.
> > > 	 
> > > 	Regards,
> > > 	Brian Mixon
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > 
> > 
> 
> This email and any attachments are intended solely for the 
> named recipient and are confidential. The copying or 
> distribution of them or any information they contain by 
> anyone other than the named recipient is prohibited. If you 
> have received this document in error, please notify the 
> sender and delete all copies from your computer system and 
> destroy all hard copies. It is the recipient's responsibility 
> to check this email and any attachments to this email for 
> viruses before use.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list