[OpenLayers-Users] combine 2 different projections map data
Marc Jansen
jansen at terrestris.de
Fri Jan 8 01:34:30 EST 2010
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
More information about the Users
mailing list