New answers tagged csv
0
You can also use ogr for this, see this. In essence, this is what you need (from that previous link)
Consider the following CSV file (test.csv):
Latitude,Longitude,Name
48.1,0.25,"First point"
49.2,1.1,"Second point"
47.5,0.75,"Third point"
You can write the associated VRT file (test.vrt):
<OGRVRTDataSource>
<OGRVRTLayer name="test">
...
5
There's a plugin called Add Delimited Text Layer. I believe it is included in a default 1.8 install. Once the plugin is enabled, an option appears in the Layer toolbar and menu, where the Add Vector, Add Raster, etc. options are. The wizard should be self-explanatory, but feel free to ask further if you experience issues.
An imported text file still can't ...
1
Rightclick -> Save as ... to a shapefile should not be a problem. Then you can add additional columns to the attribute table of the shapefile with Table manager plugin or field calculator in the attribute table.
If you want to keep the attributes in a separate table outside QGIS, you need a common id field, with which you can join shapefile and external ...
3
Make sure to use EPSG:4326 for the WGS84 CSV layer and that on-the-fly reprojection is enabled.
1
If the problem lies in the project file, you can edit that with any text editor, and delete manually the call of the CSV file.
At the moment, there is a lot of changing going on in QGIS and GDAL development. Assuming you are on Windows, I would advice to use the standalone QGIS Lisboa installer, not OSGeo4W. The standalone comes with GDAL 1.9.2, and is ...
2
In your script, you are creating a temporary layer without saving anything permanent. Use Copy Features (Data Management) to make your layer permanent:
arcpy.CopyFeatures_management (lyrOutFile, out_fc)
1
After making your event layer use the feature class to feature class method, see example below:
# Process: Make XY Event Layer
arcpy.MakeXYEventLayer_management(InputCSV, "lng", "lat", Book1_Layer, "", "")
# Process: Feature Class to Feature Class
arcpy.FeatureClassToFeatureClass_conversion(Book1_Layer, outputDir, fcName)
For geoprocessing tasks you can ...
Top 50 recent answers are included
