[Mapserver-users] Full extent of the shape file

Thomas Chesky thomaschesky at yahoo.com
Fri Jul 23 21:06:07 EDT 2004


--0-1209009253-1090631167=:54361
Content-Type: text/plain; charset=us-ascii

The problem I have is that I have a King County, WA layer, but mapserver "believes" that it has a full extent of 
minyx="-111.388" miny="46.3886" maxx="-106.113" maxy="49.1724"
 
which is absolutely off King county (I think even Washington state)
When I call the CGI interface (MAPEXT) with the above extent, it gives me the whole shapefile (with a lot of buffer actually) but if I call it with real extent which actually falls onto King county, WA it returns blank image.
 
I am reprojecting from 


# NAD83(HARN) / Washington North (ftUS)
PROJECTION
  "init=epsg:2855"
END

layer projection to map projection

PROJECTION
  "init=epsg:26910"
END

so that I can use lat/lon in the CGI extents MAPEXT parameter.

I am completely stucked, any help would be highly appreciated.

Thanks


Eduardo Patto Kanegae <eduardo at consultoria.eti.br> wrote:


Thomas Chesky escreveu:

> 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?

Yes. It's impossible to compile WMS on MapServer without PROJ support.

best

Eduardo

> Can it be the problem of my PROJ installation?
> 
> Thanks
> 
>
>
> */"Kralidis,Tom [Burlington]" /* 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! 
> 



-- 
Eduardo Patto Kanegae
http://www.consultoria.eti.br
UIN: 303747254

Treinamento em UMN MapServer - http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004
Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum

***Fim da Mensagem / End of Message ***

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
--0-1209009253-1090631167=:54361
Content-Type: text/html; charset=us-ascii

<DIV>The problem I have is that I have a King County, WA layer, but mapserver "believes" that it has a full extent of </DIV>
<DIV>minyx="-111.388" miny="46.3886" maxx="-106.113" maxy="49.1724"</DIV>
<DIV>&nbsp;</DIV>
<DIV>which is absolutely off King county (I think even Washington state)</DIV>
<DIV>When I call the CGI interface (MAPEXT) with the above extent, it gives me the whole shapefile (with a lot of buffer actually) but if I call it with real extent which actually falls onto King county, WA it returns blank image.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am reprojecting from <BR></DIV><FONT size=2>
<P># NAD83(HARN) / Washington North (ftUS)<BR>PROJECTION<BR>&nbsp; "init=epsg:2855"<BR>END<BR><BR>layer projection </FONT>to map projection</P>
<DIV><FONT size=2>
<P>PROJECTION<BR>&nbsp; "init=epsg:26910"<BR>END</P>
<P>so that I can use lat/lon in the CGI extents MAPEXT parameter.</P>
<P>I am completely stucked, any help would be highly appreciated.</P>
<P>Thanks</P></FONT><BR><BR><B><I>Eduardo Patto Kanegae &lt;eduardo at consultoria.eti.br&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>Thomas Chesky escreveu:<BR><BR>&gt; Tom and Eduardo<BR>&gt; <BR>&gt; Thanks for the reply.<BR>&gt; ogrinfo and shpdmp gives the extent in the original coordinates of the <BR>&gt; projection.<BR>&gt; I am trying to get the lat/lon extent of the same.<BR>&gt; When setting up the map file as WMS server, the GetCapabilities <BR>&gt; provides the extent in<BR>&gt; lan/lot as well, that is where I get the incorrect (?) boundaries of<BR>&gt; <BR>&gt; LatLonBoundingBox minx="-111.388" miny="46.3886" maxx="-106.113" <BR>&gt; maxy="49.1724"<BR>&gt; <BR>&gt; What tool does mapserver uses to get the corresponding lat/lon <BR>&gt; boundary when creating the WMS GetCapabilities XML? Is it Proj?<BR><BR>Yes. It's impossible to compile WMS on MapServer without PROJ support.<BR><BR>best<BR><BR>Eduardo<BR><BR>&gt; Can it be the problem of my PROJ installation?<BR>&gt; <BR>&gt; Thanks<BR>&gt;
 <BR>&gt;<BR>&gt;<BR>&gt; */"Kralidis,Tom [Burlington]" <TOM.KRALIDIS at EC.GC.CA>/* wrote:<BR>&gt;<BR>&gt;<BR>&gt; Try ogrinfo, i.e.<BR>&gt;<BR>&gt; $ ogrinfo -al ./shapefile.shp<BR>&gt;<BR>&gt; The first bit of information returned provides an overview of the data<BR>&gt; (extent, field definitions, geometry type), then followed by a<BR>&gt; feature-by-feature report.<BR>&gt;<BR>&gt; ..Tom<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: mapserver-users-admin at lists.gis.umn.edu<BR>&gt; [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Thomas<BR>&gt; Chesky<BR>&gt; Sent: Thursday, July 22, 2004 18:55<BR>&gt; To: mapserver-users at lists.gis.umn.edu<BR>&gt; Subject: [Mapserver-users] Full extent of the shape file<BR>&gt;<BR>&gt;<BR>&gt; I have the shape file, which metadata says to have the extent of<BR>&gt; Spatial_Domain:<BR>&gt; Bounding_Coordinates:<BR>&gt; West_Bounding_Coordinate: -122.5<BR>&gt; East_Bounding_Coordinate: -121.1<BR>&gt;
 North_Bounding_Coordinate: 47.8<BR>&gt; South_Bounding_Coordinate: 47.1<BR>&gt; Mapserver however identifies the following boundary (when<BR>&gt; requested via<BR>&gt; GetCapabilities WMS request)<BR>&gt;<BR>&gt; king_cou<BR>&gt;<BR>&gt; EPSG:2855<BR>&gt;<BR>&gt; maxx="-106.113" maxy="49.1724" /&gt;<BR>&gt;<BR>&gt; minx="1.21826e+006" miny="30932.7"<BR>&gt; maxx="1.57787e+006" maxy="287704" /&gt;<BR>&gt;<BR>&gt; The LatLonBoundingBox is completely different than the real boundary<BR>&gt; defined by the meta info. Mapserver actually returns the image if<BR>&gt; requested with an extent within "it's own" boundary but return only<BR>&gt; blank if boundary is outside of that, but within the metainfo<BR>&gt; boundary.<BR>&gt; Any thoughts? What tool can I use to check the full extent of a shape<BR>&gt; file.<BR>&gt; Why does Mapserver reads wrong full extent?<BR>&gt; Any help would be greatly appreciated.<BR>&gt; Thanks<BR>&gt;<BR>&gt;<BR>&gt; Do you Yahoo!?<BR>&gt; Vote for the stars of
 Yahoo!'s next ad campaign!<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Yahoo! Mail is new and improved - Check it out! <BR>&gt; <HTTP: new_mail promotions.yahoo.com *http: new taglines mail_us us.rd.yahoo.com><BR><BR><BR><BR>-- <BR>Eduardo Patto Kanegae<BR>http://www.consultoria.eti.br<BR>UIN: 303747254<BR><BR>Treinamento em UMN MapServer - http://www.consultoria.eti.br/ptbr/?menuoption=mapserver<BR>I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004<BR>Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum<BR><BR>***Fim da Mensagem / End of Message ***<BR><BR>_______________________________________________<BR>Mapserver-users mailing list<BR>Mapserver-users at lists.gis.umn.edu<BR>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users<BR></BLOCKQUOTE><p>
		<hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html">Yahoo! Mail</a> - 50x more storage than other providers!
--0-1209009253-1090631167=:54361--



More information about the mapserver-users mailing list