[OpenLayers-Users] change projection layer dynamically

Roald de Wit roald.dewit at lisasoft.com
Sun Apr 26 07:00:13 EDT 2009


Hi Toni,

I tried the WMS service but could not get *any* useful imagery out of it 
(not with OL nor with uDIG). Have you got an OL configuration that zooms 
to extents that I can use to test my config in MapServer, preferably 
with 3 extents: one for every region?

Cheers, Roald

toni hernández wrote:
> hi,
>
> I hadn't thought of that.
> So far I have tried with one layer. But maybe I could also try 
> defining three different layers with three different projections.
> The valid projections are: epsg:23029 (east), epsg:23030 (interior), 
> epsg:23031 (west)
> and This is the layer
>
>             var sigpaclayer = new OpenLayers.Layer.WMS(
>                 "Sigpac",
>                 "http://wms.mapa.es/wms/wms.aspx",
>                 {layers: 'ORTOFOTOS', transparent: "true", format: 
> "image/png"} , buffer: 0, minScale:8607}
>             );
>
> thanks for trying.
>
> 2009/4/26 Roald de Wit <roald.dewit at lisasoft.com 
> <mailto:roald.dewit at lisasoft.com>>
>
>     Hi,
>
>     I'm trying to find out if it is one layer (or layername) that you
>     request or different layers (or layer names) for different zones.
>     If it is the former, I would have no idea how to solve your
>     problem. If it is the latter, the MapServer solution would be
>     perfect. You would then define 3 layers in MapServer (it was three
>     zones, wasn't it?) for every zone, each with their own projection.
>     And in OpenLayers, you would create 1 WMS layer that requests
>     those 3 layers from MapServer as if it was one layer. MapServer
>     would do the reprojection for you.
>     If the WMS server is public and you can give me the URL and the
>     layers you need, I'd be happy to try it out for you.
>
>     Cheers, Roald
>
>     toni hernández wrote:
>
>         Hi,
>
>         I'am no sure I understand the question.
>
>         The WMS server renders just one layer for a very close scale.
>         From 5000 and lower. Depending on the zone you want to be
>         drawn you have to send the correct epsg. Otherwise no image is
>         drawn.
>         is that where you where asking?
>
>
>




More information about the Users mailing list