Module: GdalService

GDAL related operations

Source:

Methods

(method) CalcStatisticsForGeometries(file, geometry, srid, sscaleFactor, tg, arow) → {string}

Get statistics of a geometry or table of geometries

Parameters:
Name Type Description
file string

path to GeoTIFF file

geometry string

geometry

srid int

SRID

sscaleFactor string

scale factor

tg DataTable

table of geometries

arow DataRow

row containing asset info

Source:
Returns:
  • return status
Type
string

(method) GetGeoTiffMetadata(geoTiffPath) → {Metadata}

Get metadata for a GeoTIFF file

Parameters:
Name Type Description
geoTiffPath string

path to GeoTIFF file

Source:
Returns:
  • metadata
Type
Metadata

(method) GetHistory(p) → {string}

Convert Gets history for a given point

Parameters:
Name Type Description
p PointForHistory

point

Source:
Returns:
  • history
Type
string

(method) ShpToGeoJSON(InputPath) → {string}

Convert shapefile to GeoJSON

Parameters:
Name Type Description
InputPath string

shape file path

Source:
Returns:
  • GeoJSON
Type
string

(method) ShpToTable(shapeId, shapeFile) → {string}

Import shapefile to database

Parameters:
Name Type Description
shapeId int

shape id

shapeFile string

shape file path

Source:
Returns:
  • error message
Type
string

(method) UpdateAttributesForPoints(p) → {string}

Convert Gets history for a given point

Parameters:
Name Type Description
p PointForHistory

point

Source:
Returns:
  • history
Type
string

(method) geoFromPixel(GT, xPixel, yPixel, xGeo, yGeo)

Transform pixel coordinates to geographic coordinates

Parameters:
Name Type Description
GT Array.<double>

GeoTransform

xPixel int

x pixel

yPixel int

y pixel

xGeo double

x coordinate

yGeo double

y coordinate

Source:

(method) pixelFromGeo(GT, xGeo, yGeo, xPixel, yPixel)

Transform geographic coordinates to pixel coordinates

Parameters:
Name Type Description
GT Array.<double>

GeoTransform

xGeo double

x coordinate

yGeo double

y coordinate

xPixel int

x pixel

yPixel int

y pixel

Source: