Interface IESRISpatialReferenceGEN
Provides access to members that generate well known string (WKS) representations of spatial reference objects.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("F90E304C-A0F7-4A7D-9F62-25FD2A5C96AF")]
public interface IESRISpatialReferenceGEN
Remarks
If working with a .NET language or Java, use this interface rather than IESRISpatialReference.
[C#]
public void ExportToESRISpatialReference(ISpatialReference spatialReference)
{
long bytes = 0;
string buffer = null;
ISpatialReference projectedCoordinateSystem = spatialReference;
IESRISpatialReferenceGEN2 parameterExport = projectedCoordinateSystem;
parameterExport.ExportToESRISpatialReference2(buffer, bytes);
}
[Visual Basic .NET]
Public Sub ExportToESRISpatialReference(ByVal spatialReference As ISpatialReference)
Dim bytes As Long = Nothing
Dim buffer As String = Nothing
Dim projectedCoordinateSystem As ISpatialReference = spatialReference
Dim parameterExport As IESRISpatialReferenceGEN2 = projectedCoordinateSystem
parameterExport.ExportToESRISpatialReference2(buffer, bytes)
End Sub
Properties
ESRISpatialReferenceSize
The number of bytes required to hold the persistant representation of this spatial reference component.
int ESRISpatialReferenceSize { get; }
Property Value
Methods
ExportToESRISpatialReference(out string, out int)
Exports this spatial reference component to a buffer.
void ExportToESRISpatialReference(out string str, out int cBytesWrote)
Parameters
ImportFromESRISpatialReference(string, out int)
Defines this spatial reference component from the specified ESRISpatialReference buffer.
void ImportFromESRISpatialReference(string str, out int cBytesRead)