[Mapserver-users] Full extent of the shape file

Thomas Chesky thomaschesky at yahoo.com
Fri Jul 23 18:06:07 PDT 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> </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> </DIV>
<DIV>I am reprojecting from <BR></DIV><FONT size=2>
<P># NAD83(HARN) / Washington North (ftUS)<BR>PROJECTION<BR>  "init=epsg:2855"<BR>END<BR><BR>layer projection </FONT>to map projection</P>
<DIV><FONT size=2>
<P>PROJECTION<BR>  "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 <eduardo at consultoria.eti.br></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>> Tom and Eduardo<BR>> <BR>> Thanks for the reply.<BR>> ogrinfo and shpdmp gives the extent in the original coordinates of the <BR>> projection.<BR>> I am trying to get the lat/lon extent of the same.<BR>> When setting up the map file as WMS server, the GetCapabilities <BR>> provides the extent in<BR>> lan/lot as well, that is where I get the incorrect (?) boundaries of<BR>> <BR>> LatLonBoundingBox minx="-111.388" miny="46.3886" maxx="-106.113" <BR>> maxy="49.1724"<BR>> <BR>> What tool does mapserver uses to get the corresponding lat/lon <BR>> 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>> Can it be the problem of my PROJ installation?<BR>> <BR>> Thanks<BR>>
 <BR>><BR>><BR>> */"Kralidis,Tom [Burlington]" <TOM.KRALIDIS at EC.GC.CA>/* wrote:<BR>><BR>><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<BR>> requested via<BR>> GetCapabilities WMS request)<BR>><BR>> king_cou<BR>><BR>> EPSG:2855<BR>><BR>> maxx="-106.113" maxy="49.1724" /><BR>><BR>> minx="1.21826e+006" miny="30932.7"<BR>> maxx="1.57787e+006" maxy="287704" /><BR>><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<BR>> 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>><BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Yahoo! Mail is new and improved - Check it out! <BR>> <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