[OpenLayers-Users] combine 2 different projections map data

David Fawcett david.fawcett at gmail.com
Fri Jan 8 09:44:43 EST 2010


This is more of a MapServer question, but MapServer uses Proj4 and can
transform your data from various input spatial reference systems to
other output spatial reference systems.

If you are getting your data back in epsg:4326, either your MapServer
map file is configured to do this, or your OpenLayers app is
requesting data from your WMS in epsg:4326.

David.

On Fri, Jan 8, 2010 at 12:34 AM, Marc Jansen <jansen at terrestris.de> wrote:
> Hi Aypes2,
>
> use proj4.js to reproject vector data in the client.
> http://trac.openlayers.org/wiki/Documentation/Dev/proj4js
>
> Regards,
> Marc
>
>
> Aypes2 wrote:
>> Hi Marc,
>>
>> I checked the capabilities of the map file and found that the Longitude and
>> Latitude were made wrongly:
>> Using EPSG:3785
>> <SRS>EPSG:3785</SRS>
>>     <LatLonBoundingBox minx="7.50318" miny="7.32281" maxx="7.50992"
>> maxy="7.32816" />
>>     <BoundingBox SRS="EPSG:3785"
>>                 minx="835250" miny="817400" maxx="836000" maxy="818000" />
>>
>>
>> Apparently, MapServer turns my CAD files' coordinates into LonLat. But the
>> coordinates were already projected in EPSG:2326. (For the World coordinate
>> it should be around 12657054 & 2518447, NOT 835250 & 817400).  Hence this
>> method would only change coordinates into Lon Lat. Superimposition of my map
>> and google map still cannot be run.
>> (EPSG of 900913 is also tested.)
>>
>> I think another way to do this is translation. That is, making a point in
>> google map (12657054 & 2518447) equals a point in my own map (835250 &
>> 817400). In OpenLayers is there any function for translating point between 2
>> set of mapdata?
>>
>> Thanks,
>> Aypes2
>>
>>
>> Marc Jansen-2 wrote:
>>
>>> Hi Aypes2,
>>>
>>> I think reprojecting the rendered tiles by Google is not an option for
>>> you.
>>>
>>> As for your other questions:
>>>
>>> If your wms-service is able to serve maps in 900913/3785, than you
>>> simply need to ask for that projection.
>>>
>>> Look into the capabilities document whether the above mentioned SRS are
>>> offered. Check if you (in OL) requests the right projection. It should
>>> work that way.
>>>
>>> Regards,
>>>
>>> Marc
>>>
>>>
>>>
>
>
> --
>
>
>  Dipl.-Geogr. Marc Jansen
>  - Anwendungsentwickler -
>
>  terrestris GmbH & Co. KG
>  Irmintrudisstraße 17
>  53111 Bonn
>
>  Tel:    ++49 (0)228 / 96 28 99 -53
>  Fax:    ++49 (0)228 / 96 28 99 -57
>
>  Email:  jansen at terrestris.de
>  Web:    http://www.terrestris.de
>
>  Amtsgericht Bonn, HRA 6835
>  Komplementärin:  terrestris Verwaltungsgesellschaft mbH
>  vertreten durch: Hinrich Paulsen, Till Adams
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list