[OpenLayers-Users] Projection problem

Arnd Wippermann arnd.wippermann at web.de
Tue Jan 20 15:04:51 EST 2009


Hi,
 
perhaps the projection EPSG:900913 is not defined in your espg-file in the
proj-directory for Mapserver
 
Arnd Wippermann

  _____  

Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von David Martinez Morata
Gesendet: Dienstag, 20. Januar 2009 20:28
An: Brent Pedersen
Cc: users
Betreff: Re: [OpenLayers-Users] Projection problem


I try this... 
But don't works

What ever i continue tomoroww
Thanks



2009/1/20 Brent Pedersen <bpederse at gmail.com>


seems you're requesting the layer in 900913, but that's not listed in
your wms_srs list. what happens if you add 900913 to the list?



On Tue, Jan 20, 2009 at 8:30 AM, David Martinez Morata
<damarmo at gmail.com> wrote:
> I try this but doesn't work.
>
> Thnks
>
>
> 2009/1/20 Christopher Schmidt <crschmidt at metacarta.com>
>>
>> On Tue, Jan 20, 2009 at 05:15:10PM +0100, David Martinez Morata wrote:
>> > All My layers are
>> > "PROJECTION
>> >           "init=epsg:27572"
>> >   END"
>> > definition in the mapfile
>> >
>> > And the MAP object have the same definition.
>> >
>> > It's for this I put the  value in var georoute  definition
>> >
>> > "reproject": true,
>> >
>> > in the var options for  Openlayers map I define this
>> >
>> > var options = {numZoomLevels: 30,
>> > projection: new OpenLayers.Projection("EPSG:900913"),
>> > displayProjection: new OpenLayers.Projection("EPSG:4326"),
>> > units: "m",
>> > maxResolution: 156543.0339,
>> > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508,
>> > 20037508.34)};
>>
>> You're requesting the map tiles to be in EPSG:900913. EPSG:900913 is not
>> an option in your wms_srs metadata, so the MapServer can't serve tiles
>> inthat projection. If you want to use that projection, add it to
>> wms_srs.
>>
>> Regards,
>> --
>> Christopher Schmidt
>> MetaCarta
>
>
>
> --
> Martinez Morata David
> Thinking GIS
>

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>





-- 
Martinez Morata David
Thinking GIS

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090120/6623c8a4/attachment.html


More information about the Users mailing list