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

Michelle Douville mrdouville at shaw.ca
Mon Jul 20 13:31:04 EDT 2009


<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-alt:"Calisto MT";
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-alt:"Century Gothic";
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	font-family:"Times New Roman","serif";
	mso-bidi-font-family:"Times New Roman";
	color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-noshow:yes;
	mso-style-priority:99;
	color:purple;
	mso-themecolor:followedhyperlink;
	text-decoration:underline;
	text-underline:single;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-hansi-font-family:Calibri;
	mso-bidi-font-family:Calibri;
	mso-fareast-language:EN-US;}
.MsoPapDefault
	{mso-style-type:export-only;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->


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/7fe84950/attachment-0001.html


More information about the mapserver-users mailing list