[mapserver-users] Shapefile with first FID = 0 not showing..

Douville, Michelle R ILMB:EX Michelle.Douville at gov.bc.ca
Mon Jul 20 12:30:26 EDT 2009


Hello List, 

I am currently using Mapserver 5.2 on Windows Server 2003.
(<!-- MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE -->)

We have just observed,  that when we publish a shapefile that has two
features..
With FID = 0 and FID =1, it only displays the feature with FID = 1..
(for other Shapefiles it is all features greater than 0 only)

For some reason it seems to skip the feature if FID = 0
Has anyone else come across this before?

Is there a work around? (Other than editing the Shapefile),

Many thanks, 
Michelle


##########
# Purpose: Mapserver Shapefile Repository Service
# Author:  Michelle Douville
# Date:    20090217
#
#########

MAP
  EXTENT 200000 200000 1900000 1900000
  SIZE 100 100 #default image size
  UNITS meters
  SYMBOLSET "e:\sw_nt\mapfiles\symbols.sym"
  FONTSET "e:\sw_nt\mapfiles\fonts.lst"
  SHAPEPATH "E:\inetpub\wwwroot\imf\upload"
  
 DEBUG 5
 CONFIG  "MS_ERRORFILE" "test.log"
 
  IMAGETYPE png
  IMAGECOLOR 0 0 0
  
  OUTPUTFORMAT
    NAME aggpng24
    DRIVER AGG/PNG
    MIMETYPE "image/png"
    IMAGEMODE RGBA
    EXTENSION "png"
  END


WEB
  METADATA
    WMS_TITLE "User uploaded data"    WMS_ABSTRACT "Temporary service
based on user uploaded data."
    WMS_ONLINERESOURCE
"http://server/mapserver/mapserv.exe?service=wms&map=E:/inetpub/wwwroot/
imf/upload/shp32973.map&"
    wms_srs "EPSG:3785 EPSG:102190 EPSG:26907 EPSG:26707 EPSG:32607
EPSG:3005 EPSG:42102 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709
EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910
EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611
EPSG:32612 EPSG:54004"
    wfs_srs "EPSG:3785 EPSG:102190 EPSG:26907 EPSG:26707 EPSG:32607
EPSG:3005 EPSG:42102 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709
EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910
EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611
EPSG:32612 EPSG:54004"
    wfs_maxfeatures "0"
    wms_accessconstraints " "
    wms_fees "None"
  END

  IMAGEPATH "E:/server/wwwroot/imf/pdf/"
  IMAGEURL "http://server/imf/pdf/"

END

PROJECTION
  "init=epsg:3005"
END

    

LAYER
    NAME "shp32973"
    DATA shp32973
    TYPE POLYGON
    

    LABELITEM "IMF_ID"
        CLASS
          NAME "IMF_ID"
          STYLE
            OUTLINECOLOR 0 0 0
          END #end style
          LABEL
            COLOR 255 0 0
            FONT arial
            TYPE truetype
            SIZE 7
            POSITION cc
            PARTIALS FALSE
            BUFFER 1
            #BACKGROUNDCOLOR 254 254 254
            OUTLINECOLOR 254 254 254
            FORCE true      
           END # end label
    END #end class
    
    
    STATUS ON
    PROJECTION
      "init=EPSG:3005"
    END
    
      
    METADATA
      "wms_title"    "test" ## REQUIRED
     "wfs_title"    "test" ## REQUIRED
     "gml_featureid" "IMF_ID" ## REQUIRED
     "ows_include_items" "all"  ## Optional (serves all attributes for
layer)
     "gml_geometries" "shape"
     "gml_geom_type" "polygon"
     "gml_exclude_items" "GEOMETRY,OBJECTID"
          
    END #metadata
    
    DUMP TRUE
    TEMPLATE "foo.html"
    #MINSCALEDENOM 0
    #MAXSCALEDENOM 1500000
  END #end layer



END

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090720/40688865/attachment.html


More information about the mapserver-users mailing list