GithubHelp home page GithubHelp logo

plant99 / gdal-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ddohler/gdal-js

0.0 1.0 0.0 172.97 MB

This is an Emscripten port of GDAL, an open source X/MIT licensed translator library for raster and vector geospatial data formats.

Shell 1.55% Ruby 0.08% C++ 65.82% Python 13.28% Perl 0.18% C 13.92% Java 0.93% C# 0.21% XSLT 0.01% TeX 0.01% Pawn 0.01% Game Maker Language 0.01% AGS Script 0.01% Makefile 0.53% HTML 2.86% CMake 0.07% Batchfile 0.03% Yacc 0.06% M4 0.46% Dockerfile 0.01%

gdal-js's Introduction

GDAL JS

An Emscripten port of GDAL 2.4.

Installation

npm install gdal-js

Usage

Caution! It is strongly recommended to run this code inside of a web worker. To see complete examples for how to do this, checkout the examples directory. From simplest to most complex, these are:

  1. inspect_geotiff
  2. inspect_vector
  3. map_extent
  4. thumbnail
  5. thumbnail_map
  6. tile_tiff

If you want to use GDAL from within a Node application, you are probably looking for https://www.npmjs.com/package/gdal.

This library exports the following GDAL functions:

  • CSLCount
  • GDALSetCacheMax
  • GDALAllRegister
  • GDALOpen
  • GDALOpenEx
  • GDALClose
  • GDALGetDriverByName
  • GDALCreate
  • GDALCreateCopy
  • GDALGetRasterXSize
  • GDALGetRasterYSize
  • GDALGetRasterCount
  • GDALGetRasterDataType
  • GDALGetRasterBand
  • GDALGetRasterStatistics
  • GDALGetRasterMinimum
  • GDALGetRasterMaximum
  • GDALGetRasterNoDataValue
  • GDALGetProjectionRef
  • GDALSetProjection
  • GDALGetGeoTransform
  • GDALSetGeoTransform
  • OSRNewSpatialReference
  • OSRDestroySpatialReference
  • OSRImportFromEPSG
  • OCTNewCoordinateTransformation
  • OCTDestroyCoordinateTransformation
  • OCTTransform
  • GDALCreateGenImgProjTransformer
  • GDALDestroyGenImgProjTransformer
  • GDALGenImgProjTransform
  • GDALDestroyGenImgProjTransformer
  • GDALSuggestedWarpOutput
  • GDALTranslate
  • GDALTranslateOptionsNew
  • GDALTranslateOptionsFree
  • GDALWarpAppOptionsNew
  • GDALWarpAppOptionsSetProgress
  • GDALWarpAppOptionsFree
  • GDALWarp
  • GDALBuildVRTOptionsNew
  • GDALBuildVRTOptionsFree
  • GDALBuildVRT
  • GDALReprojectImage
  • CPLError
  • CPLSetErrorHandler
  • CPLQuietErrorHandler
  • CPLErrorReset
  • CPLGetLastErrorMsg
  • CPLGetLastErrorNo
  • CPLGetLastErrorType
  • GDALRasterize
  • GDALRasterizeOptionsNew
  • GDALRasterizeOptionsFree
  • GDALDEMProcessing
  • GDALDEMProcessingOptionsNew
  • GDALDEMProcessingOptionsFree
  • GDALDatasetGetLayer
  • GDALDatasetGetLayerByName
  • GDALDatasetGetLayerCount
  • GDALDatasetExecuteSQL
  • OGR_L_GetNextFeature
  • OGR_L_GetExtent
  • OGR_L_GetLayerDefn
  • OGR_L_ResetReading
  • OGR_L_GetName
  • OGR_F_GetFieldAsInteger
  • OGR_F_GetFieldAsInteger64
  • OGR_F_GetFieldAsDouble
  • OGR_F_GetFieldAsString
  • OGR_F_GetFieldAsBinary
  • OGR_F_GetFieldAsDateTime
  • OGR_F_GetFieldAsDateTimeEx
  • OGR_F_GetFieldAsDoubleList
  • OGR_F_GetFieldAsIntegerList
  • OGR_F_GetFieldAsInteger64List
  • OGR_F_GetFieldAsStringList
  • OGR_F_GetGeometryRef
  • OGR_F_Destroy
  • OGR_FD_GetFieldCount
  • OGR_FD_GetFieldDefn
  • OGR_Fld_GetType
  • OGR_Fld_GetNameRef
  • OGR_G_GetGeometryType
  • OGR_G_GetX
  • OGR_G_GetY
  • OGR_G_GetPoint
  • OGR_G_GetPoints
  • OGR_G_GetPointCount
  • OGR_G_GetEnvelope
  • OGR_G_GetSpatialReference
  • OGR_G_Intersects
  • OGR_G_Simplify
  • OGR_G_Touches
  • OGR_G_Transform
  • OGR_G_Within
  • OGR_G_ExportToGML
  • OGR_G_ExportToJson
  • OGR_G_ExportToJsonEx
  • OGR_G_ExportToKML
  • OGR_G_ExportToWkb
  • OGR_G_ExportToWkt
  • GDALVectorTranslate (ogr2ogr)
  • GDALVectorTranslateOptionsFree
  • GDALVectorTranslateOptionsNew
  • GDALVectorTranslateOptionsSetProgress
  • GDALPolygonize
  • GDALFPolygonize
  • GDALSieveFilter

For documentation of these functions' behavior, please see the GDAL documentation

In order to limit build size, GDAL is currently built with raster support for GeoTIFFs, PNGs, and JPEGs only.

Developing

  1. Install Docker
  2. Run ./scripts/setup, which will build the Docker container.
  3. Run ./scripts/make gdal. The make script just calls make from inside the Docker container.
  4. ./scripts/make clean works as expected.
  5. To package up a release, run ./scripts/make VERSION=<number> release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.