[OpenLayers-Users] MapServer Layer for ECW creating blank tiles

Christopher Schmidt crschmidt at metacarta.com
Wed Jun 17 12:01:34 EDT 2009


On Wed, Jun 17, 2009 at 08:43:13AM -0700, soatley wrote:
> 
> Chris, thanks for that tip.  It really helps me to troubleshoot it.  I think
> I have figured out the problem, but not sure how to fix it.
> 
> Now that it is sending WMS requests, I can see the url and compare it to my
> other vector tiles.  The problem is that the WMS requests are going out with
> Lat/Long values.  When I converted the BBOX value to UTM it rendered
> perfectly.  

You already have a WMS set up in OpenLayers, right?
http://faq.openlayers.org/map/how-do-i-set-a-different-projection-on-my-map/
maybe relevant.

> My question is how can I do this using OL?  Can I have that layer request
> coordinates in UTM (17N) so that the URL hitting MapServer already has the
> value?
> 
> Thanks again,
> Shawn
> 
> 
> Christopher Schmidt-2 wrote:
> > 
> > 
> > 
> > Instead of using a MapServer layer, instead add the following to your
> > mapfile:
> > 
> >   web
> >     metadata
> >       wms_srs "EPSG:4326"
> >     end
> >   end
> > 
> > If your OpenLayers Map is in a different projection, use
> > EPSG:ThatProjection instead.  
> > 
> > Then, change "MapServer" above to "WMS" (nothing else) and see where you
> > can get. I think you're likely dealing with a projection issue, and the
> > WMS layer will make it easier to debug.
> > 
> > -- Chris
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://n2.nabble.com/MapServer-Layer-for-ECW-creating-blank-tiles-tp3092922p3093597.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list