0
votes
0answers
35 views

Problem reducing the width of the attributes fields of a shapefile using python

I have a shapefile with rather long attribute widths (which is resulting in a rather large file). I am trying to trim it in python, here is my code: layer = qgis.utils.iface.activeLayer() ...
0
votes
1answer
29 views

Select by attributes within the fiona Python module

Is it possible to select polygons from a shapefile based upon their attributes using the Fiona Python module? I can't seem to find anything in the docs, but it seems like a strange thing not to be ...
0
votes
0answers
32 views

Why can't I save a line shapefile?

I'm working with qgis v. 2.0.1. I have some data points and I just wanted to create a new shapefile with line geometry. In the new vectorlayer-window, I added some attributes (approx. 10) and klicked ...
1
vote
1answer
116 views

How I can insert feature attribute after feature drawing complete

I am new to OpenLayers. I am trying to insert wfs feature information to my map after drawing like this. I can draw a WFS feature like (polygon, line, point) on map and after drawing the feature ...
0
votes
1answer
85 views

Calculate attribute height of point data

I have an x (easting), y (northing) and z (height) values associated with my point shapefile. I would like to calculate the z values from the DTM I have - how do I do this in QGIS? I am fairly new ...
0
votes
0answers
216 views

Add new rows to a shapefile

I'm using QGIS. When I enable editing of a shapefile's table attributes and select, 'open attribute table,' is it possible to add new rows to the shapefile's table attributes? The problem I'm trying ...
1
vote
3answers
128 views

Conditional Statement for attribute data

I'm trying to write a conditional statement that references another field within the same shapefile layer. I want it to only do so if the one field is " Null " and leave is alone if there is already a ...
3
votes
1answer
125 views

Is it possible to use UTF-8 characters for shapefile attributes?

I heard that according to a specification shapefile attributes stored in dbf-files cannot have UTF-8 as encoding. And then I found out that an additional file with the ending CPG can be used to define ...
0
votes
0answers
411 views

Problem reading attribute with Python using osgeo.ogr

I am working thru "Python Geospatial Programming" and I have a problem in a program in Chapter 6 that I cannot seem to solve. The small program: import osgeo.ogr shapefile = ...
0
votes
2answers
111 views

loading CanVec directory full of .shp files

I'm totally new to QGIS, and trying to view a Canadian Topo map as published on an iMac - I don't want to change it. ...
6
votes
1answer
322 views

Add polygons to existing shapefile in QGIS

I'm completely new to GIS and this is a very basic question about editing existing shapefiles. I am working off an existing shapefile which was digitized (by a colleague) so that polygons represent ...
18
votes
3answers
3k views

How to easily edit attribute data using Regular Expressions?

I am writing a tutorial for MSc students that uses QGIS. One of the tasks requires the attribute data to be modified (see pdf draft of tutorial here if interested ). The question is how to get them ...
3
votes
1answer
155 views

How do I find overlapping attributes in two different layers?

I have two layers - one with country borders, and one with river basin borders - and I need to find a way to generate a list of basins that occur in each country. Is there a way to find overlapping ...
5
votes
2answers
553 views

Importing attributes from Excel file into new Polygons

I have a constantly updated Excel file containing address information which I am currently copying into the attributes of new polygons which I am creating on a daily basis. I am currently doing this ...
5
votes
3answers
1k views

FME: Join attributes in text file with attributes in SHAPE file

I have a SHAPE file with points and different attributes - one attribute MyID. I also have a plain text file with several attributes - each in a separated column: MyID MyValue 1 A 2 B 3 C ...
2
votes
1answer
1k views

FME: No attributes exported when writing to SHAPE file

Setup: I have some input data (SHAPE) which I use a Clipper transformer on. Depending on the result of the Clipper, I assign a value to an attribute. In the end I assign the two results/streams to a ...