Converting maps in pdfs to actual shapefiles/geojsons

57 views
Skip to first unread message

Vaidya

unread,
Nov 29, 2022, 10:19:41 PM11/29/22
to data...@googlegroups.com
Hi all,

Wanted to know if it is possible to convert maps put out in pdfs to map files (shapefiles, geojsons or kml).
This is regarding the sewage and water lines put out by BWSSB. 
The files can be found here:
https://bwssb.karnataka.gov.in/info-2/BWSSB+GIS+MAP+Information/en

Thanks,
Vaidya

Devdatta Tengshe

unread,
Nov 29, 2022, 11:26:03 PM11/29/22
to data...@googlegroups.com
Hi Vaidya,

This excellent post by Nikhil would be a good starting point: https://groups.google.com/g/datameet/c/BGB-UeJqhpA/m/SFl4OgF9AgAJ

Regards,
Devdatta


--
Datameet is a community of Data Science enthusiasts in India. Know more about us by visiting http://datameet.org
---
You received this message because you are subscribed to the Google Groups "datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datameet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/datameet/CAHVy6PF4-%3DES_YWNgJEyi6c6G6GhMizB%2B4iL6Lm3HQjwAU8b9Q%40mail.gmail.com.

Nikhil VJ

unread,
Nov 30, 2022, 2:32:27 AM11/30/22
to data...@googlegroups.com
Hi Vaidya,

You might be able to skip the manual tracing process that Devdatta linked to and pull out vectors directly, if your PDFs are made that way.

Rajesvari Parasa has successfully turned Delhi development plan's PDF into shapefiles.

You can read the discussion about it here: https://groups.google.com/g/datameet/c/37uN8xnWrK0/m/2axI7AB-AQAJ

Relevant snippet:

1. Extracting from PDF
- It's one of those PDFs exported from Autocad or so where you can see multi-layers and turn them on or off.
- Rajesvari used a command-line GIS tool called "ogr2ogr" to extract individual layers from the PDF into .geojson shapefiles.
- There was a tricky bit where the output lat-longs were all like (716882.20,3166456.28) - a different CRS and we didn't know which.
- I used http://projfinder.com/ to find it, then Rajesvari included CRS conversion into the ogr2ogr commands to produce proper shapefiles.
- You can see all that in this repo: https://github.com/draftmpd41/layers_draft_delhi_master_plan_2041 - see the .bat file for the ogr2ogr commands



--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


Vaidya

unread,
Nov 30, 2022, 6:00:45 AM11/30/22
to data...@googlegroups.com
Thanks Nikhil.
This worked beautifully!

-Vaidya

Vaidya

unread,
Dec 2, 2022, 12:05:43 AM12/2/22
to data...@googlegroups.com
BWSSB line files in kml format have been hosted on Opencity (along with original pdf) for anyone who wants to download:
Water line maps:
https://data.opencity.in/dataset/bwssb-water-supply-lines-map-of-bengaluru
Reply all
Reply to author
Forward
0 new messages