SpatialReference.fromWkText constructor
- String wkText
Creates a spatial reference based on well-known text.
Parameters:
wkText
— The well-known text of the spatial reference to create.
Implementation
factory SpatialReference.fromWkText(
String wkText,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreWkText = _CString(wkText);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_SpatialReference_createFromWKText(
coreWkText.bytes,
errorHandler,
);
});
return SpatialReference._withHandle(handle);
}