Skip to content

terranodo/osgeolib-buildpack

 
 

Repository files navigation

osgeolib-buildpack

osgeolib-buildpack is a buildpack that contains OSGeo specific libraries to be added to the droplet. It is a minimal buildpack and requires the use of the multi-buildpack.

When you push your app cf push the bin/compile script execution will check to see if /app/.heroku/vendor/bin/gdalserver exists. If it does it will not install the libraries.

CF App Integration

Add a multi-buildpack.yml file in your app root and ensure that the osgeolib buildpack is the first entry in the yaml file.

buildpacks:
  - https://github.com/boundlessgeo/osgeolib-buildpack
  - https://github.com/cloudfoundry/python-buildpack

Also you will need to ensure the manifest file for the application has the following entry.

buildpack: https://github.com/cloudfoundry-incubator/multi-buildpack.git

OSGeo Libraries included

  • postgresql-9.6.1 (client)
  • libkml-1.3.0
  • openjpeg2-2.1.2
  • geos-3.6.0
  • proj-4.9.3
  • gdal-2.1.2
  • python-ldap-2.4.28

The buildpack also adds the following env variables to .profile.d/osgeo.sh

  • LIBKML_LIBS
  • GDAL_DATA
  • PROJ_LIB
  • GEOS_LIBRARY_PATH
  • PYTHONPATH *
  • gdal (osgeo python package) and python-ldap is added to /app/.heroku/vendor/python-osgeolib/lib/python2.7/site-packages to ensure that the python package matches the version of GDAL/LDAP installed.

Steps to build the osgeolib-*-.tar.gz

cd vendor
docker run -v $PWD:/app -it cloudfoundry/cflinuxfs2 /app/build_libs.sh

This should result in the osgeolib-\*-.tar.gz file being added to the vendor directory.

OGR (Vector) Drivers

Supported Formats:

  • PCIDSK -raster,vector- (rw+v): PCIDSK Database File
  • JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 3.x)
  • JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library
  • JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library
  • PDF -raster,vector- (w+): Geospatial PDF
  • ESRI Shapefile -vector- (rw+v): ESRI Shapefile
  • MapInfo File -vector- (rw+v): MapInfo File
  • UK .NTF -vector- (ro): UK .NTF
  • OGR_SDTS -vector- (ro): SDTS
  • S57 -vector- (rw+v): IHO S-57 (ENC)
  • DGN -vector- (rw+): Microstation DGN
  • OGR_VRT -vector- (rov): VRT - Virtual Datasource
  • REC -vector- (ro): EPIInfo .REC
  • Memory -vector- (rw+): Memory
  • BNA -vector- (rw+v): Atlas BNA
  • CSV -vector- (rw+v): Comma Separated Value (.csv)
  • GML -vector- (rw+v): Geography Markup Language (GML)
  • GPX -vector- (rw+v): GPX
  • LIBKML -vector- (rw+v): Keyhole Markup Language (LIBKML)
  • KML -vector- (rw+v): Keyhole Markup Language (KML)
  • GeoJSON -vector- (rw+v): GeoJSON
  • OGR_GMT -vector- (rw+): GMT ASCII Vectors (.gmt)
  • GPKG -raster,vector- (rw+vs): GeoPackage
  • SQLite -vector- (rw+v): SQLite / Spatialite
  • WAsP -vector- (rw+v): WAsP .map format
  • PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
  • OpenFileGDB -vector- (rov): ESRI FileGDB
  • XPlane -vector- (rov): X-Plane/Flightgear aeronautical data
  • DXF -vector- (rw+v): AutoCAD DXF
  • Geoconcept -vector- (rw+): Geoconcept
  • GeoRSS -vector- (rw+v): GeoRSS
  • GPSTrackMaker -vector- (rw+v): GPSTrackMaker
  • VFK -vector- (ro): Czech Cadastral Exchange Data Format
  • PGDUMP -vector- (w+v): PostgreSQL SQL dump
  • OSM -vector- (rov): OpenStreetMap XML and PBF
  • GPSBabel -vector- (rw+): GPSBabel
  • SUA -vector- (rov): Tim Newport-Peace's Special Use Airspace Format
  • OpenAir -vector- (rov): OpenAir
  • OGR_PDS -vector- (rov): Planetary Data Systems TABLE
  • WFS -vector- (rov): OGC WFS (Web Feature Service)
  • HTF -vector- (rov): Hydrographic Transfer Vector
  • AeronavFAA -vector- (rov): Aeronav FAA
  • EDIGEO -vector- (rov): French EDIGEO exchange format
  • GFT -vector- (rw+): Google Fusion Tables
  • SVG -vector- (rov): Scalable Vector Graphics
  • CouchDB -vector- (rw+): CouchDB / GeoCouch
  • Cloudant -vector- (rw+): Cloudant / CouchDB
  • Idrisi -vector- (rov): Idrisi Vector (.vct)
  • ARCGEN -vector- (rov): Arc/Info Generate
  • SEGUKOOA -vector- (rov): SEG-P1 / UKOOA P1/90
  • SEGY -vector- (rov): SEG-Y
  • ODS -vector- (rw+v): Open Document/ LibreOffice / OpenOffice Spreadsheet
  • XLSX -vector- (rw+v): MS Office Open XML spreadsheet
  • ElasticSearch -vector- (rw+): Elastic Search
  • Carto -vector- (rw+): Carto
  • AmigoCloud -vector- (rw+): AmigoCloud
  • SXF -vector- (ro): Storage and eXchange Format
  • Selafin -vector- (rw+v): Selafin
  • JML -vector- (rw+v): OpenJUMP JML
  • PLSCENES -raster,vector- (ro): Planet Labs Scenes API
  • CSW -vector- (ro): OGC CSW (Catalog+ Service for the Web)
  • VDV -vector- (rw+v): VDV-451/VDV-452/INTREST Data Format
  • TIGER -vector- (rw+v): U.S. Census TIGER/Line
  • AVCBin -vector- (ro): Arc/Info Binary Coverage
  • AVCE00 -vector- (ro): Arc/Info E00 (ASCII) Coverage
  • HTTP -raster,vector- (ro): HTTP Fetching Wrapper

GDAL (Raster) Drivers

Supported Formats:

  • VRT -raster- (rw+v): Virtual Raster
  • GTiff -raster- (rw+vs): GeoTIFF
  • NITF -raster- (rw+vs): National Imagery Transmission Format
  • RPFTOC -raster- (rovs): Raster Product Format TOC format
  • ECRGTOC -raster- (rovs): ECRG TOC format
  • HFA -raster- (rw+v): Erdas Imagine Images (.img)
  • SAR_CEOS -raster- (rov): CEOS SAR Image
  • CEOS -raster- (rov): CEOS Image
  • JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)
  • GFF -raster- (rov): Ground-based SAR Applications Testbed File Format (.gff)
  • ELAS -raster- (rw+v): ELAS
  • AIG -raster- (rov): Arc/Info Binary Grid
  • AAIGrid -raster- (rwv): Arc/Info ASCII Grid
  • GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid
  • SDTS -raster- (rov): SDTS Raster
  • DTED -raster- (rwv): DTED Elevation Raster
  • PNG -raster- (rwv): Portable Network Graphics
  • JPEG -raster- (rwv): JPEG JFIF
  • MEM -raster- (rw+): In Memory Raster
  • JDEM -raster- (rov): Japanese DEM (.mem)
  • GIF -raster- (rwv): Graphics Interchange Format (.gif)
  • BIGGIF -raster- (rov): Graphics Interchange Format (.gif)
  • ESAT -raster- (rov): Envisat Image Format
  • BSB -raster- (rov): Maptech BSB Nautical Charts
  • XPM -raster- (rwv): X11 PixMap Format
  • BMP -raster- (rw+v): MS Windows Device Independent Bitmap
  • DIMAP -raster- (rov): SPOT DIMAP
  • AirSAR -raster- (rov): AirSAR Polarimetric Image
  • RS2 -raster- (ros): RadarSat 2 XML Product
  • SAFE -raster- (rov): Sentinel-1 SAR SAFE Product
  • PCIDSK -raster,vector- (rw+v): PCIDSK Database File
  • PCRaster -raster- (rw+): PCRaster Raster File
  • ILWIS -raster- (rw+v): ILWIS Raster Map
  • SGI -raster- (rw+): SGI Image File Format 1.0
  • SRTMHGT -raster- (rwv): SRTMHGT File Format
  • Leveller -raster- (rw+): Leveller heightfield
  • Terragen -raster- (rw+): Terragen heightfield
  • ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)
  • ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)
  • PDS -raster- (rov): NASA Planetary Data System
  • VICAR -raster- (rov): MIPL VICAR file
  • TIL -raster- (rov): EarthWatch .TIL
  • ERS -raster- (rw+v): ERMapper .ers Labelled
  • ECW -raster- (rw): ERDAS Compressed Wavelets (SDK 3.x)
  • JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 3.x)
  • JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library
  • L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set
  • FIT -raster- (rwv): FIT Image
  • GRIB -raster- (rov): GRIdded Binary (.grb)
  • MrSID -raster- (rov): Multi-resolution Seamless Image Database (MrSID)
  • JP2MrSID -raster- (rov): MrSID JPEG2000
  • JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library
  • MG4Lidar -raster- (ro): MrSID Generation 4 / Lidar (.sid)
  • RMF -raster- (rw+v): Raster Matrix Format
  • WCS -raster- (rovs): OGC Web Coverage Service
  • WMS -raster- (rwvs): OGC Web Map Service
  • MSGN -raster- (ro): EUMETSAT Archive native (.nat)
  • RST -raster- (rw+v): Idrisi Raster A.1
  • INGR -raster- (rw+v): Intergraph Raster
  • GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)
  • GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)
  • GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)
  • COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)
  • TSX -raster- (rov): TerraSAR-X Product
  • COASP -raster- (ro): DRDC COASP SAR Processor Raster
  • R -raster- (rwv): R Object Data Store
  • MAP -raster- (rov): OziExplorer .MAP
  • KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay
  • PDF -raster,vector- (w+): Geospatial PDF
  • Rasterlite -raster- (rws): Rasterlite
  • MBTiles -raster- (rw+v): MBTiles
  • PLMOSAIC -raster- (ro): Planet Labs Mosaics API
  • CALS -raster- (rw): CALS (Type 1)
  • WMTS -raster- (rwv): OGC Web Mab Tile Service
  • SENTINEL2 -raster- (rovs): Sentinel 2
  • MRF -raster- (rw+v): Meta Raster Format
  • PNM -raster- (rw+v): Portable Pixmap Format (netpbm)
  • DOQ1 -raster- (rov): USGS DOQ (Old Style)
  • DOQ2 -raster- (rov): USGS DOQ (New Style)
  • GenBin -raster- (rov): Generic Binary (.hdr Labelled)
  • PAux -raster- (rw+): PCI .aux Labelled
  • MFF -raster- (rw+v): Vexcel MFF Raster
  • MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster
  • FujiBAS -raster- (ro): Fuji BAS Scanner Image
  • GSC -raster- (rov): GSC Geogrid
  • FAST -raster- (rov): EOSAT FAST Format
  • BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format
  • LAN -raster- (rw+v): Erdas .LAN/.GIS
  • CPG -raster- (ro): Convair PolGASP
  • IDA -raster- (rw+v): Image Data and Analysis
  • NDF -raster- (rov): NLAPS Data Format
  • EIR -raster- (rov): Erdas Imagine Raw
  • DIPEx -raster- (rov): DIPEx
  • LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)
  • GTX -raster- (rw+v): NOAA Vertical Datum .GTX
  • LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift
  • NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift
  • CTable2 -raster- (rw+v): CTable2 Datum Grid Shift
  • ACE2 -raster- (rov): ACE2
  • SNODAS -raster- (rov): Snow Data Assimilation System
  • KRO -raster- (rw+v): KOLOR Raw
  • ROI_PAC -raster- (rw+v): ROI_PAC raster
  • ENVI -raster- (rw+v): ENVI .hdr Labelled
  • EHdr -raster- (rw+v): ESRI .hdr Labelled
  • ISCE -raster- (rw+v): ISCE raster
  • ARG -raster- (rwv): Azavea Raster Grid format
  • RIK -raster- (rov): Swedish Grid RIK (.rik)
  • USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)
  • GXF -raster- (ro): GeoSoft Grid Exchange Format
  • NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab
  • NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab
  • ADRG -raster- (rw+vs): ARC Digitized Raster Graphics
  • SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)
  • BLX -raster- (rwv): Magellan topo (.blx)
  • PostGISRaster -raster- (rws): PostGIS Raster driver
  • SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)
  • XYZ -raster- (rwv): ASCII Gridded XYZ
  • HF2 -raster- (rwv): HF2/HFZ heightfield raster
  • OZI -raster- (rov): OziExplorer Image File
  • CTG -raster- (rov): USGS LULC Composite Theme Grid
  • E00GRID -raster- (rov): Arc/Info Export E00 GRID
  • ZMap -raster- (rwv): ZMap Plus Grid
  • NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids
  • IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)
  • GPKG -raster,vector- (rw+vs): GeoPackage
  • PLSCENES -raster,vector- (ro): Planet Labs Scenes API
  • HTTP -raster,vector- (ro): HTTP Fetching Wrapper

About

Cloud Foundry Buildpack to include OSGEO Libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.2%
  • Ruby 3.8%