Hi, Rigved,

With PDFs exported from autocad, Rajesvari Parasa had worked out a method
shared here:
https://github.com/draftmpd41/layers_draft_delhi_master_plan_2041

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 <nishad...@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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/7ead5994-6506-454f-93c8-efa43e405ed2n%40googlegroups.com
> <https://groups.google.com/d/msgid/datameet/7ead5994-6506-454f-93c8-efa43e405ed2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAH7jeuM9FSuP-z%2BQc_%3D_bxnH75HyXe3v2YJqsC4D5XAGJm3-cQ%40mail.gmail.com.

Reply via email to