4

I have more than 50,000 LatLng coordinates defined under SWREFF99 1800 projection. I want to know, is it possible to convert these coordinates into a point shapefile ? if yes, then how can I do this ?

3

5 Answers 5

8

With Qgis, you can import your coordinates with the Delimited text plugin.

2
  • you beat me to it by 23 seconds and you actually found the plugin.. nice work :-)
    – Glenn
    Mar 24, 2011 at 14:26
  • 1
    hehe ;-) you still deserve an upvote!
    – simo
    Mar 24, 2011 at 14:40
7

You can use GDAL and the ogr2ogr command line utility, but first you need to create a VRT driver.

For example (as suggested in the GDAL doc):

(test csv)

Latitude,Longitude,Name
48.1,0.25,"First point"
49.2,1.1,"Second point"
47.5,0.75,"Third point"

This is your vrt driver:

(test.vrt)

<OGRVRTDataSource>
    <OGRVRTLayer name="test">
        <SrcDataSource>test.csv</SrcDataSource>
        <GeometryType>wkbPoint</GeometryType>
        <LayerSRS>WGS84</LayerSRS>
        <GeometryField encoding="PointFromColumns" x="Longitude" y="Latitude"/>
    </OGRVRTLayer>
</OGRVRTDataSource>

Finally use ogr2ogr to convert your test.vrt in a shapefile:

ogr2ogr -f "ESRI Shapefile" output.shp test.vrt
1
  • btw, I believe that the QGIS plugin (Delimited test) is based on the ogr2ogr utility used with the vrt driver like in my sample (in other words QGIS acts as a GUI to the ogr2ogr command)
    – capooti
    Mar 24, 2011 at 14:43
4

If you are using ArcGIS, use the Make XY Event Table tool . To persist the output of that tool to a shpfile/gdb, see the second bullet in the tool doc.

3

My goto place for oddball conversions like this is the opensource tools at either

QGIS http://www.qgis.org/

OR

MapWindow http://www.mapwindow.org/

My guess is there will be a "vector" plugin to do what you want at one of those two. I would try QGIS first because their plugins are less buggy.

1

Easy done in MapInfo Professional too by create points from XY, set your coordsys and output as a shapefile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.