OGC GeoPackage is a SQLite Database that can store Vector Features, Raster Tiles (PNG, JPG, WebP) and Terrain/Elevation Tiles

Vector Features have a Geom Column that’s a BLOB with the Point, Line or Polygon and other geometry types information stored in something similar to WKB – Well Known Binary format.

QGIS and GDAL Ogr2Ogr make it easy to convert other spatial data into GeoPackage format.   ESRI ArcGIS and ArcGIS Pro also have geoprocessing tools to convert data to GeoPackage.

 

If you’ve got many Shapefiles or other formats in a folder you can easily convert them to GeoPackage with GDAL’s OGR2OGR.

GeoData Explorer works best with Vector data (other than vector tiles) in Geographic WGS84.

Reproject and Convert to GPKG all SHP in a folder

ogr2ogr -f “GPKG”  -skipfailures -progress –config GDAL_DATA “C:\\OSGeo4W64\\share\\gdal” -t_srs EPSG:4326 nameofgeopackage.gpkg folderofshapefiles

Recurisively Folders Convert to GPKG

@echo off echo reprojects all shapefiles in a folder and generates an OGC GPKG – GeoPackage Vector Features set /p pathfoldertoshp=path to shapefiles: set /p nameofgeopackage=name of geopackage: cd /d %pathfoldertoshp% REM install GDAL from here https://trac.osgeo.org/osgeo4w/ REM https://www.gdal.org/ogr2ogr.html REM if you want geoJSON use this instead”ogr2ogr -f “GeoJSON” -skipfailures -progress -t_srs EPSG:4326 -lco COORDINATE_PRECISION=6 –config GDAL_DATA “C:\\OSGeo4W64\\share\\gdal” %%~dpnf.geojson %%f” for /r %%f in (*.shp) do ogr2ogr -f “GPKG” -update -append -skipfailures -progress –config GDAL_DATA “C:\\OSGeo4W64\\share\\gdal” -t_srs EPSG:4326 %nameofgeopackage%.gpkg %%f echo. echo complete pause

Note: Dynamic rendering as raster tiles if click image icon

Translate »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close