[Mapserver-users] Full extent of the shape file

Thomas Chesky thomaschesky at yahoo.com
Fri Jul 23 01:02:58 EDT 2004


--0-932479921-1090558978=:36267
Content-Type: text/plain; charset=us-ascii

Tom and Eduardo
 
Thanks for the reply.
ogrinfo and shpdmp gives the extent in the original coordinates of the projection.
I am trying to get the lat/lon extent of the same.
When setting up the map file as WMS server, the GetCapabilities provides the extent in
lan/lot as well, that is where I get the incorrect (?) boundaries of
 
LatLonBoundingBox minx="-111.388" miny="46.3886" maxx="-106.113" maxy="49.1724" 
 
What tool does mapserver uses to get the corresponding lat/lon boundary when creating the WMS GetCapabilities XML? Is it Proj? Can it be the problem of my PROJ installation?
 
Thanks
 


"Kralidis,Tom [Burlington]" <Tom.Kralidis at ec.gc.ca> wrote:

Try ogrinfo, i.e.

$ ogrinfo -al ./shapefile.shp

The first bit of information returned provides an overview of the data
(extent, field definitions, geometry type), then followed by a
feature-by-feature report.

..Tom



-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Thomas
Chesky
Sent: Thursday, July 22, 2004 18:55
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Full extent of the shape file


I have the shape file, which metadata says to have the extent of 
Spatial_Domain: 
Bounding_Coordinates: 
West_Bounding_Coordinate: -122.5 
East_Bounding_Coordinate: -121.1 
North_Bounding_Coordinate: 47.8 
South_Bounding_Coordinate: 47.1 
Mapserver however identifies the following boundary (when requested via
GetCapabilities WMS request)

king_cou

EPSG:2855
maxx="-106.113" maxy="49.1724" />
minx="1.21826e+006" miny="30932.7"
maxx="1.57787e+006" maxy="287704" />

The LatLonBoundingBox is completely different than the real boundary
defined by the meta info. Mapserver actually returns the image if
requested with an extent within "it's own" boundary but return only
blank if boundary is outside of that, but within the metainfo boundary.
Any thoughts? What tool can I use to check the full extent of a shape
file.
Why does Mapserver reads wrong full extent?
Any help would be greatly appreciated.
Thanks


Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
--0-932479921-1090558978=:36267
Content-Type: text/html; charset=us-ascii

<DIV>Tom and Eduardo</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for the reply.</DIV>
<DIV>ogrinfo and shpdmp gives the extent in the original coordinates of the projection.</DIV>
<DIV>I am trying to get the lat/lon extent of the same.</DIV>
<DIV>When setting up the map file as WMS server, the GetCapabilities provides the extent in</DIV>
<DIV>lan/lot as well, that is where I get the incorrect (?) boundaries of</DIV>
<DIV>&nbsp;</DIV>
<DIV>LatLonBoundingBox minx="-111.388" miny="46.3886" maxx="-106.113" maxy="49.1724" </DIV>
<DIV>&nbsp;</DIV>
<DIV>What tool does mapserver uses to get the corresponding lat/lon boundary when&nbsp;creating the WMS GetCapabilities XML? Is it Proj? Can it be the problem of my PROJ installation?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR><B><I>"Kralidis,Tom [Burlington]" &lt;Tom.Kralidis at ec.gc.ca&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Try ogrinfo, i.e.<BR><BR>$ ogrinfo -al ./shapefile.shp<BR><BR>The first bit of information returned provides an overview of the data<BR>(extent, field definitions, geometry type), then followed by a<BR>feature-by-feature report.<BR><BR>..Tom<BR><BR><BR><BR>-----Original Message-----<BR>From: mapserver-users-admin at lists.gis.umn.edu<BR>[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Thomas<BR>Chesky<BR>Sent: Thursday, July 22, 2004 18:55<BR>To: mapserver-users at lists.gis.umn.edu<BR>Subject: [Mapserver-users] Full extent of the shape file<BR><BR><BR>I have the shape file, which metadata says to have the extent of <BR>Spatial_Domain: <BR>Bounding_Coordinates: <BR>West_Bounding_Coordinate: -122.5 <BR>East_Bounding_Coordinate: -121.1 <BR>North_Bounding_Coordinate: 47.8 <BR>South_Bounding_Coordinate: 47.1 <BR>Mapserver however identifies the following boundary (when
 requested via<BR>GetCapabilities WMS request)<BR><LAYER cascaded="0" opaque="0" queryable="0"><BR><NAME>king_cou</NAME><BR><BR><SRS>EPSG:2855</SRS><BR><LATLONBOUNDINGBOX <br miny="46.3886" minx="-111.388">maxx="-106.113" maxy="49.1724" /&gt;<BR><BOUNDINGBOX <br SRS="EPSG:2855">minx="1.21826e+006" miny="30932.7"<BR>maxx="1.57787e+006" maxy="287704" /&gt;<BR></LAYER><BR>The LatLonBoundingBox is completely different than the real boundary<BR>defined by the meta info. Mapserver actually returns the image if<BR>requested with an extent within "it's own" boundary but return only<BR>blank if boundary is outside of that, but within the metainfo boundary.<BR>Any thoughts? What tool can I use to check the full extent of a shape<BR>file.<BR>Why does Mapserver reads wrong full extent?<BR>Any help would be greatly appreciated.<BR>Thanks<BR><BR><BR>Do you Yahoo!?<BR>Vote for the stars of Yahoo!'s next ad campaign!<BR></BLOCKQUOTE><p>
		<hr size=1>Do you Yahoo!?<br>
Yahoo! Mail is new and improved - <a href="http://us.rd.yahoo.com/mail_us/taglines/new/*http://promotions.yahoo.com/new_mail">Check it out!</a>
--0-932479921-1090558978=:36267--



More information about the mapserver-users mailing list