Options
All
  • Public
  • Public/Protected
  • All
Menu

Module tools/geojson

Index

Functions

Const geojsonCenter

  • geojsonCenter(points: ITitrePoint[]): any

Const geojsonFeatureCollectionPoints

  • geojsonFeatureCollectionPoints(points: ITitrePoint[]): { features: { geometry: { coordinates: number[]; type: string }; properties: { contour: number; description: undefined | null | string; groupe: number; id: string; nom: undefined | null | string; point: number; references: ITitrePointReference[] }; type: string }[]; properties: { etapeId: string }; type: string }
  • Parameters

    • points: ITitrePoint[]

    Returns { features: { geometry: { coordinates: number[]; type: string }; properties: { contour: number; description: undefined | null | string; groupe: number; id: string; nom: undefined | null | string; point: number; references: ITitrePointReference[] }; type: string }[]; properties: { etapeId: string }; type: string }

    • features: { geometry: { coordinates: number[]; type: string }; properties: { contour: number; description: undefined | null | string; groupe: number; id: string; nom: undefined | null | string; point: number; references: ITitrePointReference[] }; type: string }[]
    • properties: { etapeId: string }
      • etapeId: string
    • type: string

Const geojsonFeatureMultiPolygon

  • geojsonFeatureMultiPolygon(points: ITitrePoint[]): { geometry: IGeometry; properties: { etapeId: string }; type: string }
  • Parameters

    • points: ITitrePoint[]

    Returns { geometry: IGeometry; properties: { etapeId: string }; type: string }

    • geometry: IGeometry
    • properties: { etapeId: string }
      • etapeId: string
    • type: string

Const geojsonSurface

  • geojsonSurface(geojson: Feature<any, Properties> | FeatureCollection<any, Properties> | Geometry): number
  • Parameters

    • geojson: Feature<any, Properties> | FeatureCollection<any, Properties> | Geometry

    Returns number

Generated using TypeDoc