public function shptogpkg($shpfilepath,$output) { $query=”ogr2ogr -f GPKG $output.gpkg $shpfilepath.shp”; shell_exec($query); } The output file can be open in QGIS software. I have converted Road File of one such country. Here is the output look in QGIS tool after Converting Sh...
Basic conversion from Shapefile to GeoPackage: ogr2ogr \ -f GPKG output.gpkg \ input.shp Change the coordinate reference system from EPSG:4326 to EPSG:3857: ogr2ogr \ -s_srs EPSG:4326 \ -t_srs EPSG:3857 \ -f GPKG output.gpkg \ input.gpkg Example appending to an existing layer (both...
Basic conversion from Shapefile to GeoPackage: ogr2ogr output.gpkg input.shp Change the coordinate reference system fromEPSG:4326toEPSG:3857: ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:3857 output.gpkg input.gpkg Example appending to an existing layer: ogr2ogr -append -f PostgreSQL PG:dbname=warm...
GPKG--GeoPackagevectorandMongoDBv3. The upsert operation uses the FID of the input feature, when it is set and is a "significant" (that is the FID column name is not the empty string), as the key to update existing features. It is crucial to make sure that the FID in the source ...
Basic conversion from Shapefile to GeoPackage: ogr2ogr output.gpkg input.shp Change the coordinate reference system from EPSG:4326 to EPSG:3857: ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:3857 output.gpkg input.gpkg Example appending to an existing layer: ogr2ogr -append -f PostgreSQL PG:dbname...