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

2009-07-20 Thread Michelle Douville

!--
 /* 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 20 20
190 190

  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=wmsmap=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

[mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2

2009-02-20 Thread Michelle Douville

I am wondering if anyone else has come across this while using the ArcSDE
Datastore:
I am trying to get a text/plain result from a getFeatureInfo. I get two
types of results depending on whether the sde layer is an actual spatial
layer or a spatial view (based on a join within oracle).

Here is a request to a spatial view..

http://server/mapserver520/terrestrial_ecology520?service=wmsrequest=getFeatureInfoversion=1.1.1layers=BIOT_OCCR_TREES_AREA_SVWquery_layers=BIOT_OCCR_TREES_AREA_SVWwidth=500height=500SRS=EPSG:4326BBOX=-115.458612543896,49.1997596600283,-115.458021667689,49.2001915091176x=200y=200info_format=text/plain


And this is the result:

Layer 'BIOT_OCCR_TREES_AREA_SVW'
Content-type: application/vnd.ogc.se_xml

?xml version='1.0' encoding=ISO-8859-1 standalone=no ?
!DOCTYPE ServiceExceptionReport SYSTEM
http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;
ServiceExceptionReport version=1.1.1
ServiceException
msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter
value passed to function. (-66)
/ServiceException
/ServiceExceptionReport



When doing a getFeatureInfo on a spatial layer, such as this..

http://server/mapserver520/terrestrial_ecology520?service=wmsrequest=getFeatureInfoversion=1.1.1layers=BIOT_OCCR_MASKED_SENS_AREA_SPquery_layers=BIOT_OCCR_MASKED_SENS_AREA_SPwidth=500height=500SRS=EPSG:4326BBOX=-115.295184921231,49.1055064203968,-115.241763642305,49.1445500142613x=200y=200info_format=text/plain

I get this..
GetFeatureInfo results:

Layer 'BIOT_OCCR_MASKED_SENS_AREA_SP'
  Feature 1278361: 


Are there limitations on how mapserver can handle spatial views in
ArcSDE/Oracle?

This is similar to 



http://trac.osgeo.org/mapserver/ticket/536

Many thanks, 
Michelle 



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users