problems with shapefile

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Mon Jul 18 17:50:58 PDT 2005


> -----Original Message-----
> From: Ethan Alpert [mailto:ealpert at digitalglobe.com] 
> Sent: Monday, 18 July, 2005 19:03
> To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: RE: [UMN_MAPSERVER-USERS] problems with shapefile
> 
> 
> 
> 
> What is the Extent printed out by ogrinfo -al?
> 

ogrinfo -al output:

Extent: (3668545.746945, 620284.375175) - (9021698.683472,
5271375.948747)

GetCapabilities Layer chunk:

<LatLonBoundingBox minx="-48.0586" miny="8.20942" maxx="15.5142"
maxy="57.9832"/>

<BoundingBox SRS="EPSG:42304" minx="3.66855e+06" miny="620284"
maxx="9.0217e+06" maxy="5.27138e+06"/>

> Is that different than the GetCapabilities? What is the <SRS> 
> tag returned in the GetCapabilities?
> 

SRS tag is EPSG:42304, as defined in LAYER/PROJECTION object.

> What is your EXTENT and PROJECTION specified in your mapfile? 
> What is the projection specified in your layer? These are the 
> usual culprits when nothing shows up.
> 

No extent defined in mapfile.  PROJECTION is:

PROJECTION
 "init=epsg:42304"
END

43204 is defined correctly in /usr/local/share/proj/epsg

Upon further investigation, doing a GetMap with EPSG:4326 (zoomed out to
the world now), shows the image flipped around:

http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetMap&SRS=EPSG%3A4326&BBOX=-180.0000000309986,-112.5000000193741,
180.0000000309986,112.5000000193741&WIDTH=560&HEIGHT=350&LAYERS=pda_al83
_polygon2&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&
EXCEPTIONS=application%2Fvnd.ogc.se_inimage

Doing a GetMap with EPSG:42304 zoomed out to the world (even though
42304 is best suited for Canadian views):

http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetMap&SRS=EPSG%3A42304&BBOX=-8831758.337197961,-8736410.016254073
,31243258.35528204,16310475.41654593&WIDTH=560&HEIGHT=350&LAYERS=pda_al8
3_polygon2&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE
&EXCEPTIONS=application%2Fvnd.ogc.se_inimage

So, it appears that the image, in 42304, has an incorrect extent.  I'll
fix that first and hopefully that will take care of the subsequent
issues.

..Tom

> 
> 
> 
> 

> -e
> 
> 



More information about the MapServer-users mailing list