AUTOCAD files to be made into shapefiles, how?

33 views
Skip to first unread message

rigved1...@gmail.com

unread,
Mar 1, 2022, 12:49:08 AM3/1/22
to datameet
I have bunch of AUTOCAD dwg files which show Survey Numbers inside a village. . How do I make them into shapefiles? There is no geographic info associated with them so when I import them in QGIS they show up at 0,0 lat long and end up in the sea. Printing a PDF and then georeferencing is the last resort, but wanted to know if there is some better solution.
Anyone had any experience with this? I am attaching one sample file.
Let me know if anyone can help with this.
Pimparne.dwg

Mehraj

unread,
Mar 1, 2022, 9:11:35 PM3/1/22
to data...@googlegroups.com
Your dwg file is not coordinate. If you have any dwg file which is in coordinate then you have to export it directly into shapefile by using Autocad map 3D.  If not than open dwg in ArcGIS Desktop and export one by one then do the spatial adjustment. It is time-consuming process.
image.png

--
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/0a969d64-b52e-4799-81dd-971d0c4958d9n%40googlegroups.com.

Nishadh K A

unread,
Mar 1, 2022, 11:52:49 PM3/1/22
to datameet
Check this thread, https://groups.google.com/g/datameet/c/cnPMEQ7Cr6Q/m/cA3vJlrCAAAJ
The  steps followed are Autocad DXF->Geojson->Geometry conversion(line/polygon on need basis)->geo referencing the geometry

Nikhil VJ

unread,
Mar 2, 2022, 11:06:49 PM3/2/22
to datameet
Hi, Rigved,

With PDFs exported from autocad, Rajesvari Parasa had worked out a method shared here: 

Example ogr2ogr command:
ogr2ogr -f "GEOJSON"  Boundaries_DDA_ZONE_Boundary_polyline.geojson draftplan.pdf Layers_Boundries_DDA_ZONE_Boundary_polyline -s_srs EPSG:32643 -t_srs EPSG:4326 --config OGR_PDF_READ_NON_STRUCTURED YES

It seems ogr2ogr supports dwg format as well: https://gdal.org/drivers/vector/dwg.html
But I guess some R&D would be needed to get the exact command.

I'm reckoning the ogr2ogr command wraps in some of the conversions details in Nishad's thread.

when I import them in QGIS they show up at 0,0 lat long
If the shapes once imported into QGIS have retained their geometry, then we're in luck. Rajesvari was facing the same issue, except in her case the shapes were many times bigger than the world map.
We then used this site: http://projfinder.com/ (not ssl so bear with bsnl popups and reload)

Enter a lat-long value from your shape, then move the map to the actual location where that point should be. You'll get a list of possible CRS projections. Try them out by varying the -s_src argument in the ogr2ogr command above.


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


On Wed, Mar 2, 2022 at 10:22 AM Nishadh K A <nish...@gmail.com> wrote:
Check this thread, https://groups.google.com/g/datameet/c/cnPMEQ7Cr6Q/m/cA3vJlrCAAAJ
The  steps followed are Autocad DXF->Geojson->Geometry conversion(line/polygon on need basis)->geo referencing the geometry

--
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.
Reply all
Reply to author
Forward
0 new messages