Tag Info

New answers tagged

1

You could of course filter out the data points one-of-two or one-of-four, but you'd be able to retain the original information in a fraction of the original size if you convert it to a binary raster. Lots of ways to get there, and most assume the point data is sorted (better to be sorted west-to-east in bands from north-to-south), but you can populate that ...


1

The Field Calculator would crash on me whenever I would run the Field Calculator to update about 2,300 records on a point dataset that was generated as a checkout file geodatabase. This turned out to be a known ESRI bug where ArcMap would crash if the Field Calculator was used on more than 100 records at a time in a checkout file GDB, and was addressed in ...


0

You can also use the format function of python if you have problems to format the string with %s. Python Format String Syntax Your uri would look something like: uri = "file:///D:/MLB Stadiums/Test_R2/Player_Files/Espinosa_2014.csv? delimiter={delimiter}s&xField={field3}&yField={field4}".format(delimiter=",", ...


0

It's having problems with the letter s, because your code specifies that as a delimiter (delimiter=%ss is getting interpreted as "," and "s"). Try delimiter=%s.


2

You experience the limitations of the csv driver. Saving as shapefile and working on with that is really the best opportunity. For the data type issue, you can create a csvt file to predefine the data type of the columns: http://www.gdal.org/drv_csv.html http://anitagraser.com/2011/03/07/how-to-specify-data-types-of-csv-columns-for-use-in-qgis/ You have ...


2

Walter: the HUD data uses ID's for the blockgroups (BLKGRP) with single quotes around them... the TIGER blockgroup ID's (GEOID) do not have single quotes: I would say that you should create a new column using Excel / Open Office to truncate the first and last values from the field into the new column...but I can't remember how to do that right now!!! ...


1

The shapefile format does not support raster columns. There is a help page entitled Adding raster datasets as attributes in a feature class that says this explicitly and offers a workaround: A shapefile cannot contain an attribute field to hold raster datasets. In this case, it would be advantageous to use a hyperlink. If using a shapefile is a ...


2

I suppose that you need the value of the raster in your column at the location of your points. first, convert your csv to a shapefile (make XY event layer). You should check that your coordinate systems are correctly set (at least, the points must fall on top of the raster). Try to avoid projecting your raster, because resampling often modifies the raster. ...


3

I see that you were able to use a plugin to get the values you wanted, but here's why the values were changing in the first place. This isn't specific to QGIS or any other software, it's an issue with how the data is being stored. Floating point values are stored with a specific precision (number of digits). Some software will automatically round the stored ...


3

Instead of using the same csvfile1 each time, define a variable that depends on the feature class name. For example: fcList = arcpy.ListFeatureClasses() for fc in fcList: csvFileName = 'CSV_{}.csv'.format(fc) # or just = fc + '.csv' for field in arcpy.ListFields(fc): csvwriter(csvFileName,field.name)


1

From the CSV driver documentation: Starting with GDAL 1.8.0, for files structured as CSV, but not ending with .CSV extension, the 'CSV:' prefix can be added before the filename to force loading by the CSV driver. Either rename DGM5_BE.txt to DGM5_BE.csv or change the <SrcDataSource> element to: ...


1

Add first a geometry column into your table with SQL SELECT AddGeometryColumn('your_table','geometry',4326,'POINT',2); Then populate the new geometry column by constructing point geometries from your Latitude and Longitude fields with SQL UPDATE your_table SET geometry = GeomFromText('POINT('||"Longitude"||' '||"Latitude"||')',4326);


1

Most GIS desktop software apps have ability to plot table or csv data based on lng/lat or x/y values to generate a point event layer. Event layers may then be exported to a GIS layer (e.g. shapefile), and then you may run a spatial analysis interpolation tool or script to create the raster surface similar to your link example. Finally, these raster layers ...


1

there is a published sample in the ArcGIS API for JavaScript Resource Center which demonstrates how end users can browse for a file on disc and plot it interactively. Drag and drop to display data https://developers.arcgis.com/javascript/jssamples/exp_dragdrop.html


3

I am not sure which GDAL version ogr2gui is using but with a current ogr2ogr it is for sure possible. Read first the driver manual page http://www.gdal.org/drv_csv.html Layer creation options: GEOMETRY (Starting with GDAL 1.6.0): By default, the geometry of a feature written to a .csv file is discarded. It is possible to export the geometry in its ...



Top 50 recent answers are included