[gdal-dev] Question regarding Shapefile Geo-cordinates

Vijay Kurhade vijay.kurhade at gmail.com
Thu May 25 06:18:20 PDT 2023


Hi Rob;

Sorry to bother you again.

Getting shapefile size as well as other DWG-DXF conversion issues.

please refer to Doc shared on Drive : *Doc for Rob : Gdal Steps.docx*
*https://docs.google.com/document/d/16IUBzzaJZ0baCdtUsUCgTHBBE3-D-wy_/edit?usp=share_link&ouid=105159133680993726163&rtpof=true&sd=true
<https://docs.google.com/document/d/16IUBzzaJZ0baCdtUsUCgTHBBE3-D-wy_/edit?usp=share_link&ouid=105159133680993726163&rtpof=true&sd=true>*

Also;
In case you think it is possible for you to share your working Output
shapefile; which I can use till I get the size issue fixed at my end.

With Regards-
Vijay

On Sat, May 13, 2023 at 12:24 AM Robert Hewlett <rob.hewy at gmail.com> wrote:

> Hi,
>
> Sorry for the late reply, Still marking and meetings on this side of the
> globe:
>
> I used the site to go from dwg to dxf.
>
> Then used ogr2ogr at the command line
>
> ogr2ogr --version
> GDAL 3.6.4, released 2023/04/17
>
> ogr2ogr -a_srs "EPSG:4326" -f "ESRI Shapefile" ^
> -gcp 12.8973 4.8524 73.7737714009421 18.546875366193724 ^
> -gcp 8.75204 17.21844 73.76355401367982 18.57499038261755 ^
> -gcp 23.7272 8.4155 73.79942967064645 18.55509638758041 ^
> -gcp 14.3373 21.9502 73.7767221307843 18.58772458615475 ^
> -skipfailures ^
> shp_out geocoordinated_Pune_baner_Map.dxf
>
> The gcps need work and I am not familiar with the area. Feels like some
> new bridges and roads.
>
> I got closer
> https://i.imgur.com/PhaXlrE.png
>
> -gcp 12.8973 4.8524 18.546875366193724 73.7737714009421 #Pashan HWY Sus Ln
> -gpc 8.75204 17.21844 18.57499038261755 73.76355401367982 # Hwy 48 and
> Balewadi
> -gpc 23.7272 8.4155 18.55509638758041 73.79942967064645 # Baner Prathamesh
> Park RD
> -gpc 14.3373 21.9502 18.58772458615475 73.77672213078434 # Balewadi wakad
> bridge
>
> On Wed, May 10, 2023 at 11:54 PM Vijay Kurhade <vijay.kurhade at gmail.com>
> wrote:
>
>> Hello
>>
>> I am sharing a shape file and AutoCAD (.dwg) file. I have geo-coordinated
>> the CAD file and then converted it into .shp file using following steps:
>> 1)      Selected ‘geographic location’ option in AutoCAD
>>
>> 2)      Entered latitude (18.5652) and longitude (73.7888) and elevation
>> (606 meters)
>>
>> 3)      Selected ‘GIS coordinate system’ as ‘WORLD-MERCATOR(WGS84)
>>
>> 4)      Selected time zone as ‘GMT+5:30 Chennai, Kolkata, Mumbai, New
>> Delhi’
>>
>> 5)      Drawing unit ‘Inches’
>>
>> 6)      Selected geo-graphic location in the AutoCAD drawing
>>
>> 7)      Specified the north direction angle. Repeated the above steps to
>> mark three more geographic locations in the CAD file
>>
>> 8)      Saved the CAD file and converted it into shape file using online
>> tool ‘https://mygeodata.cloud/conversion’
>>
>>
>> Link to files :
>> https://drive.google.com/drive/folders/1xylPKQy0uJM3zbcqyxdvdSnxCaFh8lox?usp=share_link
>>
>>
>> I hope this helps you in analyzing the issue.
>>
>> Thanks in Advance.
>>
>> Regards-
>> Vijay
>>
>> Hewlett <rob.hewy at gmail.com> wrote:
>>
>>> It sounds like the lat and longs are being plotted as Web Mercator
>>>> meters. I could be wrong
>>>>
>>>>
>>>> Is there a .PRJ file?
>>>>
>>>> How are you viewing the data:
>>>> QGIS
>>>> Open layers
>>>> Leaflet
>>>>
>>>>
>>>>
>>>> On Tue, May 9, 2023, 04:55 Vijay Kurhade <vijay.kurhade at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi;
>>>>>
>>>>> I have a long pending issue with Shapefile and using proper
>>>>> Geo-coordinates for it;
>>>>> i need to place it in Pune, India with actual 4 Geo-Coordinates but
>>>>> everytime My shapefile gets placed into earth's center mostly Africa.
>>>>>
>>>>> What is the solution; How can I ensure the shapefile uses those
>>>>> lat/long 4 coordinates and is placed on Pune, India in Map rather than
>>>>> somewhere else?
>>>>>
>>>>> Thanks in Advance.
>>>>>
>>>>> Regards-
>>>>> Vijay
>>>>> _______________________________________________
>>>>> gdal-dev mailing list
>>>>> gdal-dev at lists.osgeo.org
>>>>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>>>
>>>> _______________________________________________
>>>> gdal-dev mailing list
>>>> gdal-dev at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>>
>>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230525/29fd9b85/attachment-0001.htm>


More information about the gdal-dev mailing list