[OpenLayers-Users] Coordinates systems transformations?
Mike Adair
madair at dmsolutions.ca
Thu Feb 14 09:24:39 EST 2008
EPSG:23030 is a UTM projection, so yes it is supported.
Mike
David E. Reksten wrote:
> Take a look at:
> http://spatialreference.org/ref/epsg/23030/
> http://spatialreference.org/ref/epsg/23030/proj4js/
>
> .david
>
> On 13/02/2008, Ruben Pardo <correosig at gmail.com> wrote:
>
>> hi,
>> does proj4js support EPSG:23030 to WGS84 transformation or viceversa?
>> i didn't see in the proj4js docs, is it going to support it?
>> Thanks very much.
>>
>> best regards
>>
>>
>> 2008/2/13, David E. Reksten <der at dod.no>:
>>
>>> This is how I reproject LL to UTM32:
>>>
>>> var destProj = new Proj4js.Proj(map.getProjection()); // Euref89 UTM32
>>> var sourceProj = new Proj4js.Proj("EPSG:4326"); // WGS84 LonLat
>>> var position = new OpenLayers.Geometry.Point(lon, lat);
>>> Proj4js.transform(sourceProj, destProj, position);
>>>
>>> Thereafter, position.x and position.y will contain the reprojected
>>>
>> coordinates.
>>
>>> Using trunk versions of OL and Proj4js. Hope this helps.
>>>
>>> .david
>>>
>>> On 13/02/2008, Andrea Maschio <andrea.maschio at gmail.com> wrote:
>>>
>>>> Hi all, I suppose that the method Bounds.transform(ProjA, ProjB)
>>>> should transform the coordinates between differents EPSG codes.
>>>>
>>>> Now I was trying this:
>>>>
>>>> var p = bounds
>>>> console.log(p)
>>>> p = bounds.transform(new OpenLayers.Projection("EPSG:
>>>> 900913"), new OpenLayers.Projection("EPSG:3003"))
>>>> console.log(p)
>>>>
>>>> But p has always the same coords. Btw I am working in a projected
>>>> layer (projected from 3003 to 900913) and my wfs layers are ok, but
>>>> being my coords in the Gauss Boaga metric system, I cannot get them
>>>> correctly trying for example a GetFeatureInfo call using a BBOX.
>>>>
>>>> Shall I perform a linear translation of the coordinates?
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Andrea Maschio
>>>> http://www.superandrew.it
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
More information about the Users
mailing list