[mapguide-users] Coordinate system transformation
mighty_duck
msiljegovic at gmail.com
Tue Sep 1 05:25:48 EDT 2009
Hello,
Im having next problems during performing coordinate system transformation:
Here is the code
MgSpatialContextReader context;
context =
featureService1.GetSpatialContexts(layerFeatureResources1, true);
context.ReadNext();
string coordSys = context.GetCoordinateSystemWkt();
MgCoordinateSystemFactory coordSysFac = new
MgCoordinateSystemFactory();
MgCoordinateSystem cs;
cs = coordSysFac.Create(coordSys);
string mapCoordSys = map1.GetMapSRS();
MgCoordinateSystem csNew;
csNew = coordSysFac.Create(mapCoordSys);
MgCoordinateSystemTransform coordSysTransf;
coordSysTransf = coordSysFac.GetTransform(cs, csNew);
Problem starts at context object (second line) where I recieve
exception "index is out of the range".
Does anyone know what can be a problem? Im using Oracle as data source!!!
thanks in advance
regards
--
View this message in context: http://n2.nabble.com/Coordinate-system-transformation-tp3559335p3559335.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list