From 96bb99813f07c3c2cd4a36cdf6a712cfdf0ca61f Mon Sep 17 00:00:00 2001 From: Utkarsh Ranjan <96614852+utkarsh-ranjan-14@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:41:22 +0530 Subject: [PATCH 1/2] Create README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..5dff2df --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Shapefiles for Pincodes of India + +For anyone having issues converting these to geojson + +On unix/OSx : +cat india_pincodes.shp.z01 > india_pincodes_full.shp.zip +cat india_pincodes.shp.z02 >> india_pincodes_full.shp.zip +cat india_pincodes.shp.z03 >> india_pincodes_full.shp.zip +cat india_pincodes.shp.z04 >> india_pincodes_full.shp.zip +cat india_pincodes.shp.z05 >> india_pincodes_full.shp.zip +cat india_pincodes.shp.zip >> india_pincodes_full.shp.zip +unzip india_pincodes_full.shp.zip +unzip india_pincodes.cpg.zip +unzip india_pincodes.prj.zip +unzip india_pincodes.sbx.zip +unzip india_pincodes.dbf.zip +unzip india_pincodes.sbn.zip +unzip india_pincodes.shx.zip + +Converting to GeoJSON: +ogr2ogr -f GeoJSON india_pincodes_full.geojson india_pincodes_full.shp From d4d491dee4c7791840d4f117c6921344c9b7b47a Mon Sep 17 00:00:00 2001 From: Utkarsh Ranjan <96614852+utkarsh-ranjan-14@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:47:26 +0530 Subject: [PATCH 2/2] Update README.md Fixed newline issue --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5dff2df..3f509b7 100644 --- a/README.md +++ b/README.md @@ -2,20 +2,20 @@ For anyone having issues converting these to geojson -On unix/OSx : -cat india_pincodes.shp.z01 > india_pincodes_full.shp.zip -cat india_pincodes.shp.z02 >> india_pincodes_full.shp.zip -cat india_pincodes.shp.z03 >> india_pincodes_full.shp.zip -cat india_pincodes.shp.z04 >> india_pincodes_full.shp.zip -cat india_pincodes.shp.z05 >> india_pincodes_full.shp.zip -cat india_pincodes.shp.zip >> india_pincodes_full.shp.zip -unzip india_pincodes_full.shp.zip -unzip india_pincodes.cpg.zip -unzip india_pincodes.prj.zip -unzip india_pincodes.sbx.zip -unzip india_pincodes.dbf.zip -unzip india_pincodes.sbn.zip -unzip india_pincodes.shx.zip +On unix/OSx : \ +cat india_pincodes.shp.z01 > india_pincodes_full.shp.zip \ +cat india_pincodes.shp.z02 >> india_pincodes_full.shp.zip \ +cat india_pincodes.shp.z03 >> india_pincodes_full.shp.zip \ +cat india_pincodes.shp.z04 >> india_pincodes_full.shp.zip \ +cat india_pincodes.shp.z05 >> india_pincodes_full.shp.zip \ +cat india_pincodes.shp.zip >> india_pincodes_full.shp.zip \ +unzip india_pincodes_full.shp.zip \ +unzip india_pincodes.cpg.zip \ +unzip india_pincodes.prj.zip \ +unzip india_pincodes.sbx.zip \ +unzip india_pincodes.dbf.zip \ +unzip india_pincodes.sbn.zip \ +unzip india_pincodes.shx.zip \ -Converting to GeoJSON: +Converting to GeoJSON: \ ogr2ogr -f GeoJSON india_pincodes_full.geojson india_pincodes_full.shp