Given a file my_file.shp such those from Gadm e.g. US administrative divisions, where the coordinate reference system is latitude/longitude with WGS84 datum.
Input could actually be:
- Shapefile,
- ESRI personal geodatabase,
- ESRI file geodatabase,
- Google Earth .kmz,
- R (SpatialPolygonsDataFrame)
How to convert this input into a WGS84 PostGIS dump ?
ogr2ogr -overwrite -f "PostgreSQL" PG:"host=myhost user=myuser dbname=mydb password=mypass" my_file.shp
[ See: gis.stackexchange.com/questions/68417 ]