Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryWriter

Well Known Binary writer

Hierarchy

  • GeometryWriter

Index

Constructors

constructor

Methods

getBuffer

  • getBuffer(): Buffer

getByteWriter

write

  • write(geometry: Geometry): void
  • Write a geometry to the byte writer

    Parameters

    • geometry: Geometry

      geometry

    Returns void

writeCircularString

  • writeCircularString(circularString: CircularString): void
  • Write a Circular String

    Parameters

    • circularString: CircularString

      Circular String

    Returns void

writeCompoundCurve

  • writeCompoundCurve(compoundCurve: CompoundCurve): void
  • Write a Compound Curve

    Parameters

    • compoundCurve: CompoundCurve

      Compound Curve

    Returns void

writeCurvePolygon

  • writeCurvePolygon(curvePolygon: CurvePolygon<Curve>): void
  • Write a Curve Polygon

    Parameters

    • curvePolygon: CurvePolygon<Curve>

      Curve Polygon

    Returns void

writeGeometryCollection

  • writeGeometryCollection(geometryCollection: GeometryCollection<Geometry>): void
  • Write a Geometry Collection

    Parameters

    • geometryCollection: GeometryCollection<Geometry>

      Geometry Collection

    Returns void

writeLineString

  • writeLineString(lineString: LineString): void

writeM

  • writeM(point: Point): void

writeMultiLineString

  • writeMultiLineString(multiLineString: MultiLineString): void
  • Write a Multi Line String

    Parameters

    • multiLineString: MultiLineString

      Multi Line String

    Returns void

writeMultiPoint

  • writeMultiPoint(multiPoint: MultiPoint): void

writeMultiPolygon

  • writeMultiPolygon(multiPolygon: MultiPolygon): void
  • Write a Multi Polygon

    Parameters

    • multiPolygon: MultiPolygon

      Multi Polygon

    Returns void

writePoint

  • writePoint(point: Point): void

writePolygon

  • writePolygon(polygon: Polygon): void

writePolyhedralSurface

  • writePolyhedralSurface(polyhedralSurface: PolyhedralSurface): void
  • Write a Polyhedral Surface

    Parameters

    • polyhedralSurface: PolyhedralSurface

      Polyhedral Surface

    Returns void

writeTIN

  • writeTIN(tin: TIN): void

writeTriangle

  • writeTriangle(triangle: Triangle): void

writeXY

  • writeXY(point: Point): void

writeZ

  • writeZ(point: Point): void

Static getGeometryByteLength

  • getGeometryByteLength(geometry: Geometry): number

Static writeCircularString

  • writeCircularString(writer: ByteWriter, circularString: CircularString): void
  • Write a Circular String

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • circularString: CircularString
             Circular String

    Returns void

Static writeCompoundCurve

  • writeCompoundCurve(writer: ByteWriter, compoundCurve: CompoundCurve): void
  • Write a Compound Curve

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • compoundCurve: CompoundCurve
             Compound Curve

    Returns void

Static writeCurvePolygon

  • writeCurvePolygon(writer: ByteWriter, curvePolygon: CurvePolygon<Curve>): void
  • Write a Curve Polygon

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • curvePolygon: CurvePolygon<Curve>
             Curve Polygon

    Returns void

Static writeGeometry

  • writeGeometry(geometry: Geometry, byteOrder: any): Buffer
  • Write a geometry to a well-known bytes

    Parameters

    • geometry: Geometry

      geometry

    • byteOrder: any

      byteOrder

    Returns Buffer

    well-known bytes

Static writeGeometryCollection

  • writeGeometryCollection(writer: ByteWriter, geometryCollection: GeometryCollection<Geometry>): void
  • Write a Geometry Collection

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • geometryCollection: GeometryCollection<Geometry>
             Geometry Collection

    Returns void

Static writeGeometryWithByteWriter

  • writeGeometryWithByteWriter(writer: ByteWriter, geometry: Geometry): void

Static writeLineString

  • writeLineString(writer: ByteWriter, lineString: LineString): void

Static writeMultiLineString

  • writeMultiLineString(writer: ByteWriter, multiLineString: MultiLineString): void
  • Write a Multi Line String

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • multiLineString: MultiLineString
             Multi Line String

    Returns void

Static writeMultiPoint

  • writeMultiPoint(writer: ByteWriter, multiPoint: MultiPoint): void
  • Write a Multi Point

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • multiPoint: MultiPoint
             Multi Point

    Returns void

Static writeMultiPolygon

  • writeMultiPolygon(writer: ByteWriter, multiPolygon: MultiPolygon): void
  • Write a Multi Polygon

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • multiPolygon: MultiPolygon
             Multi Polygon

    Returns void

Static writePoint

  • writePoint(writer: ByteWriter, point: Point): void

Static writePolygon

  • writePolygon(writer: ByteWriter, polygon: Polygon): void
  • Write a Polygon

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • polygon: Polygon
             Polygon

    Returns void

Static writePolyhedralSurface

  • writePolyhedralSurface(writer: ByteWriter, polyhedralSurface: PolyhedralSurface): void
  • Write a Polyhedral Surface

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • polyhedralSurface: PolyhedralSurface
             Polyhedral Surface

    Returns void

Static writeTIN

Static writeTriangle

  • writeTriangle(writer: ByteWriter, triangle: Triangle): void
  • Write a Triangle

    throws

    IOException upon failure to write

    Parameters

    • writer: ByteWriter
             byte writer
    • triangle: Triangle
             Triangle

    Returns void

Generated using TypeDoc