IExternalSerializerGdb2 Interface

Provides high-level serialization methods for AMF and JSON formats.

Members

Name Description
Method GetErrorObject Convenience method. Creates and returns error object as byte SAFEARRAY.
Method GetQuantizationTransform Obtains the Quantization Transform JSON Ojbect setup during writer install.
Method WriteErrorObject Writes error object.
Method WriteGeometry Writes geometry object.
Method WriteRecordSet Writes feature recordset.
Method WriteRecordSetEx Writes feature recordset and returns number of records serialized.
Method WriteRecordSetEx2 Writes feature recordset for both JSON and GeoJSON format and returns number of records serialized.
Method WriteRecordSetEx3 Writes feature recordset for both JSON and GeoJSON format with quantization support and returns number of records serialized.
Method WriteRecordSetEx4 Writes feature recordset for both JSON and GeoJSON format with quantization support and returns number of records serialized, for other use cases like Map Server end, we still need to report crs even GeoJSON no longer has it.
Method WriteRow Writes feature row object
Method WriteSpatialReference Writes spatial reference object. Pass NULL as propname to write standalone JSON object.

IExternalSerializerGdb2.GetErrorObject Method

Convenience method. Creates and returns error object as byte SAFEARRAY.

Public Function GetErrorObject ( _
    ByVal propname As String, _
    ByVal Code As Integer, _
    ByVal Message As String, _
    ByVal details As IStringArray _
) As Byte[]
public Byte[] GetErrorObject (
    string propname,
    int Code,
    string Message,
    IStringArray details
);

IExternalSerializerGdb2.GetQuantizationTransform Method

Obtains the Quantization Transform JSON Ojbect setup during writer install.

Public Sub GetQuantizationTransform ( _
    ByRef QuantizationTransformJO As IJSONObject _
)
public void GetQuantizationTransform (
    ref IJSONObject QuantizationTransformJO
);

IExternalSerializerGdb2.WriteErrorObject Method

Writes error object.

Public Sub WriteErrorObject ( _
    ByVal propname As String, _
    ByVal Code As Integer, _
    ByVal Message As String, _
    ByVal details As IStringArray _
)
public void WriteErrorObject (
    string propname,
    int Code,
    string Message,
    IStringArray details
);

IExternalSerializerGdb2.WriteGeometry Method

Writes geometry object.

Public Sub WriteGeometry ( _
    ByVal propname As String, _
    ByVal pGeom As IGeometry _
)
public void WriteGeometry (
    string propname,
    IGeometry pGeom
);

IExternalSerializerGdb2.WriteRecordSet Method

Writes feature recordset.

Public Sub WriteRecordSet ( _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions _
)
public void WriteRecordSet (
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt
);

IExternalSerializerGdb2.WriteRecordSetEx Method

Writes feature recordset and returns number of records serialized.

Public Sub WriteRecordSetEx ( _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions, _
    ByRef recordsSerialized As Integer _
)
public void WriteRecordSetEx (
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt,
    ref int recordsSerialized
);

IExternalSerializerGdb2.WriteRecordSetEx2 Method

Writes feature recordset for both JSON and GeoJSON format and returns number of records serialized.

Public Sub WriteRecordSetEx2 ( _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions, _
    ByVal pOutSRS As ISpatialReference, _
    ByRef recordsSerialized As Integer _
)
public void WriteRecordSetEx2 (
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt,
    ISpatialReference pOutSRS,
    ref int recordsSerialized
);

IExternalSerializerGdb2.WriteRecordSetEx3 Method

Writes feature recordset for both JSON and GeoJSON format with quantization support and returns number of records serialized.

Public Sub WriteRecordSetEx3 ( _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions, _
    ByVal pOutSRS As ISpatialReference, _
    ByVal QuantizationTransformJO As IJSONObject, _
    ByRef recordsSerialized As Integer _
)
public void WriteRecordSetEx3 (
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt,
    ISpatialReference pOutSRS,
    IJSONObject QuantizationTransformJO,
    ref int recordsSerialized
);

IExternalSerializerGdb2.WriteRecordSetEx4 Method

Writes feature recordset for both JSON and GeoJSON format with quantization support and returns number of records serialized, for other use cases like Map Server end, we still need to report crs even GeoJSON no longer has it.

Public Sub WriteRecordSetEx4 ( _
    ByVal propname As String, _
    ByVal pRecordset As IRecordSet, _
    ByVal pGeomOpt As IGeometryResultOptions, _
    ByVal pOutSRS As ISpatialReference, _
    ByVal QuantizationTransformJO As IJSONObject, _
    ByRef recordsSerialized As Integer _
)
public void WriteRecordSetEx4 (
    string propname,
    IRecordSet pRecordset,
    IGeometryResultOptions pGeomOpt,
    ISpatialReference pOutSRS,
    IJSONObject QuantizationTransformJO,
    ref int recordsSerialized
);

IExternalSerializerGdb2.WriteRow Method

Writes feature row object

Public Sub WriteRow ( _
    ByVal propname As String, _
    ByVal pRow As IRow, _
    ByVal pFields As IFields, _
    ByVal rowFieldIndexes As Int32[], _
    ByVal pGeomOpt As IGeometryResultOptions _
)
public void WriteRow (
    string propname,
    IRow pRow,
    IFields pFields,
    Int32[] rowFieldIndexes,
    IGeometryResultOptions pGeomOpt
);

IExternalSerializerGdb2.WriteSpatialReference Method

Writes spatial reference object. Pass NULL as propname to write standalone JSON object.

Public Sub WriteSpatialReference ( _
    ByVal propname As String, _
    ByVal pSR As ISpatialReference _
)
public void WriteSpatialReference (
    string propname,
    ISpatialReference pSR
);

Classes that implement IExternalSerializerGdb2

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.