[OpenLayers-Users] combine 2 different projections map data

Aypes2 apestgas2 at yahoo.com.hk
Fri Jan 8 01:04:27 EST 2010


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
> 
> 
-- 
View this message in context: http://n2.nabble.com/combine-2-different-projections-map-data-tp4264776p4270781.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list