Hi,
I am using different projections to display data. To convert data from one projection to another I am using ConvertToExternalProjection method. Is there any other method available to convert data?
Thanks,
Goral
Convert Projection
Hi,
I think other method is using unmanaged proj4 library, you can use following statements to convert the data.
UnmanagedProj4Projection projection = new UnmanagedProj4Projection();
Thanks,
Hi,
Thanks for reply. I think its same as Managed projection. I want to know it because in I feel its taking some time to convert latlon data from one projection to another. Please suggest if any other way is there to improve conversion speed.
Thanks,
Goral
Hi Goral,
In fact UnmanagedProj4Projection is newer version for Proj4 than ManagedProj4Projection, so I think it have some improvement.
Generally the conversion won’t takes too long time for lat & lon data, could you please let me know more about your scenario? So I think maybe I can try to make sure where we can work for improve speed.
Regards,
Don
Hi,
Thanks for reply. I want to know two things.
1) Whats is the main difference between Managed and Unmanaged projection?
2) In Inmemoryfeaturelayer while adding feature I am using proj.converttoexternal projection. Another thing I came to know there is property inmemoryfeaturelayer.featuresource.proj to set projection for the layer. Which is the best way to deal with projection? Till now I am using first method so some times I feel its little slow.
Please suggest.
Thanks,
Goral
Hi Goral,
1. UnmanagedProjection is using higher version of proj4 library than ManagedProjection, so if the issue solved in UnmanagedProjection that means that’s a known issue from Proj4 and have been fixed in latest version.
2. inmemoryfeaturelayer.featuresource.proj is directly convert all data in current shapes to target projection, proj.converttoexternal is manual convert someone shape, so choose which one should be decided by your scenario.
Wish that’s clearly and helpful.
Regards,
Don
Hi,
1) Ok. I think I need to go through it.
2) One layer has particular projection. The layer has number of features. Right now using proj.converttoexternal each feature I am converting manually. From given explanation from your side I am assuming that there is other difference in between them.
Thanks,
Goral
Hi Goral,
I don’t think they have different, because it looks if you set projection for layer, it still need convert all features internal.
In last reply, I meant in some scenario, you don’t want to convert all features in layer, but only need convert part of them, so you can choose don’t set projection and convert manually.
Regards,
Don