Hi,
I know how to change the projection of FeatureLayer,but I wonder if there is a way to change the projection of a Feature or a WellKnownText?
Best regards
Ben
Hi,
I know how to change the projection of FeatureLayer,but I wonder if there is a way to change the projection of a Feature or a WellKnownText?
Best regards
Ben
Hi Ben,
You can convert your feature like this:
Feature newFeature = proj4.ConvertToExternalProjection(originalFeature);
or
Feature newFeature = proj4.ConvertToInternalProjection(originalFeature);
If you want to convert a WellKnownText, I think you can convert it like this:
Feature originalFeature = new Feature(wellKnownText);
Feature newFeature = proj4.ConvertToExternalProjection(originalFeature);
String newWellKnownText = originalFeature.GetWellKnownText();
Wish helpful.
Regards,
Don
Hi Don,
Sorry for big delay, it works great, thanks.
Ben,
You’re welcome.
Regards,
Don