Return Value
Spatial reference represented as a JSON string.
SpatialReference srWithVertical = SpatialReferenceBuilder.CreateSpatialReference(4326, 6916); string xml = srWithVertical.ToXml(); SpatialReference importedSR = SpatialReferenceBuilder.FromXml(xml); // importedSR.Wkid = 4326 // importedSR.VcsWkid = 6916 string json = srWithVertical.ToJson(); importedSR = SpatialReferenceBuilder.FromJson(json); // importedSR.Wkid = 4326 // importedSR.VcsWkid = 6916
Target Platforms: Windows 11, Windows 10