Tom, Perhaps I should tell you why I'm after the (or any) unique AND sequential id field for a service's features. I'm trying to page the feature data in a UI and started designing my solution after having read the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does that (;>)) that I'd just use feature ids.
I should have asked what mechanism MapServer employs to allow me to do something like this (the partial retrieval of features from a large dataset on some service somewhere). I'm going to bring back a certain number of features with each call to a WFS and as the user scrolls through this data I will make subsequent calls to the same service and ask for the next batch of features. Does this make sense and can you point me in the right direction for getting MapServer to do this? Thanks for your patience, Brian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kralidis,Tom [Burlington] Sent: Friday, April 18, 2008 5:36 AM To: Delfos, Jacob; [email protected] Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Delfos, > Jacob > Sent: 17 April, 2008 11:55 PM > To: [email protected] > 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: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Brian > > Mixon > > Sent: 18 April 2008 01:34 > > To: Kralidis,Tom [Burlington]; [email protected] > > 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:[EMAIL PROTECTED] > > Sent: Thursday, April 17, 2008 10:51 AM > > To: Brian Mixon; [email protected] > > 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:[EMAIL PROTECTED] > > > Sent: 17 April, 2008 12:24 PM > > > To: Kralidis,Tom [Burlington]; [email protected] > > > 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:[EMAIL PROTECTED] > > > Sent: Thursday, April 17, 2008 10:11 AM > > > To: Brian Mixon; [email protected] > > > 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: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > Behalf Of Brian > > > Mixon > > > Sent: 17 April, 2008 11:51 AM > > > To: [email protected] > > > 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 > > [email protected] > > 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
