I would also try ogrinfo to see how GDAL reads your shapefile:

ogrinfo buildings.shp buildings -summary

        - use that to see if the feature count is correct

ogrinfo buildings.shp buildings

        - use that to see the individual records

---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/





On 23-Jun-08, at 4:30 PM, JayDub wrote:


Hi all, I'm having a severe problem with MapServer. It seems to only be
searching PARTS of a dbf file. Have a look at my layer.

LAYER
        NAME "AllFaculties"
        DATA '/home/jolly/web/shps/campus/mit/buildings.shp'
        TRANSFORM true
        CLASSITEM 'Name'
        TYPE polygon
        GROUP "AllFaculties"
        METADATA
                "queryable"   "true"
                "searchfield" "Name"
                "fields"      "Name:name,Category:cat"
        END # METADATA
        CLASS
                TEMPLATE "template.html"
        END # CLASS
END # LAYER


Simple and to the point... some how there are records in the dbf file that I can't reach via search. I'm using kamap's search script that basically uses
mapscript's queryByAttributes(.....) to get results.
Id     Category           Name
0       Residence/Hall  Karma Hall
0       Residence/Hall  Terry Hall
Above is an extract of my dbf file... Mapserver finds the first record but does not find the 2nd record. And that's generally how it is with my dbf file. It'll find a record here and then not find a couple that follow after,
then it's able to find records that follow after.
Hope some one can help... coz this project was due 3 fridays ago and my boss
is a lil... perturbed (to be MOST diplomatic, and naive)


--
View this message in context: 
http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp18077780p18077780.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
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

Reply via email to