Does anyone seen any sample code for Delphi to be able to change the
projection of Mapobjects display. I need to change at run time between
mercator and a spherical projection.
> Does anyone seen any sample code for Delphi to be able to change the
> projection of Mapobjects display. I need to change at run time between
> mercator and a spherical projection.
> Jason Webb
We are developing an application using MapObject V2, with various Map
and Image layers.
The problem we have is MapObject ImageLayers do not appear to support
projections, so when you change the projected coordinate system the Map
Layers all change, but the images (e.g. GeoTIFF) all then move to there
specified location using the new coordinate system.
A shapefile contains Lat. and Long (WGS84) -35.0, 150.0
A imagefile contains Lat. and Long (WGS84) -35.0, 150.0
When displayed without projection they match up fine.
Now applying a projection (e.g. UTM)
The shapefile is located at ~ -4,000,000, 16,000,000 (which is correct
for new projection
The imagefile is located at -35.0, 150.0
Which means they do not match up !!
Our current work-around for this problem is to create a world file
(*.tfw) for each image for each projection we want to use, to correctly
position the image for that projection.
Has anyone else had this problem ? and/or have a better solution ?
Any help or suggestions greatly appreciated.