You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declare -a arr=('admin''aeroways''amenities''buildings''landusages''landusages_gen0''landusages_gen1''places''roads''roads_gen0''roads_gen1''transport_areas''transport_points''waterareas''waterareas_gen0''waterareas_gen1''waterways')
foriin${arr[@]};do
pgsql2shp \
-rk \
-f /mnt/shp/${slug}-imposm/${slug}_osm_${i}.shp \
-h localhost -P osm -u osm osm \
${prefix}_${i}
ogr2ogr \
-lco ENCODING="UTF-8" \
-f GeoJSON \
-s_srs epsg:4326 \
-t_srs crs:84 \
/mnt/shp/${slug}-imposm/${slug}_${i}.geojson \
/mnt/shp/${slug}-imposm/${slug}_osm_${i}.shp
done
zip -j /mnt/output/${slug}.imposm-shapefiles.zip \