I’m learning how to use the WinFormsMap control.
Our software uses the control to project MrSid files and a customer’s recorded farm and field boundary information.
Currently projections are made for a single UTM Zone (NAD83 / UTM zone 15N - 26916) to decimal degrees (4326) using the ManagedProj4Projection object.
In some instances a customer’s farm and fields may span across two contiguous UTM Zones (Example: UTM zone 15N and UTM zone 16N).
How can I project in the map control multiple MrSid files and customer boundary information over multiple UTM zones?
Creating single projection for 2 MrSid files residing in different UTM Zones
Hi Rudolph,
Welcome to MapSuite World and thanks for your post, following is the sample code for your consideration:
ManagedProj4Projection projectionFor15N=new ManagedProj4Projection();
projectionFor15N.InternalProjectionParametersString= ManagedProj4Projection.GetEpsgParametersString(26915);
projectionFor15N.ExternalProjectionParametersString= ManagedProj4Projection.GetEpsgParametersString(4326);
MrSidRasterLayer layer1 = new MrSidRasterLayer("…");
layer1.ImageSource.Projection = projectionFor15N;
ManagedProj4Projection projectionFor16N = new ManagedProj4Projection();
projectionFor16N.InternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(26916);
projectionFor16N.ExternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(4326);
MrSidRasterLayer layer2 = new MrSidRasterLayer("…");
layer2.ImageSource.Projection = projectionFor15N;
if you have any more question , please feel free to let us know.
Best Regards
Summer
Thank you for the information.
Hi Rudolph,
Great to hear it helped, if you have any more question, please feel free to let us know.
Best Regards
Summer