Guest User

Untitled

a guest
Apr 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ogr2ogr -f "PostgreSQL" PG:"host=<your_host> port=<your_port> user=<user_with_create_rights> password=<your_password> dbname=<your_db_name>" "<path>/<to>/<shapefile>/<file_name>.shp" -nlt LINESTRINGZM -nln <new_table_name> -sql "SELECT road_code, MakeLine(MakePointZM(ST_X(GEOMETRY), ST_Y(GEOMETRY), elevation, distance)) AS geom FROM <file_name> GROUP BY road_code ORDER BY distance" -dialect sqlite
Add Comment
Please, Sign In to add comment