1

I received a shapefile containing data from a topographic survey of a farm. The file has a lot of lines containing elevation data. The person who made the survey did it with a GPS set up on a ATV.

When I load the shapefile in QGIS I have the Metadata :

Geometry type of the features in this layer: Polygon The number of features in this layer: 1942

I want to create a slope map from this topo survey. So I guess one of the first steps is to create a raster layer from the vector layer. However before that, I think I have to create a GRASS map with the module v.in.ogr.qgis. When I use this module, I have this message :

Building topology for vector map ... Registering primitives... 0 primitives registered 0 vertices registered Nombre de n�uds : 0 Nombre de primitives : 0 Nombre de points : 0 Nombre de lignes :0 Nombre de contours : 0 Nombre de centro�des : 0 Nombre de surfaces : - Nombre d'�les : - Building topology for vector map ... Registering primitives... 0 primitives registered 0 vertices registered Building areas... 0 areas built 0 isles built Attaching islands... Attaching centroids... Nombre de n�uds : 0 Nombre de primitives : 0 Nombre de points : 0 Nombre de lignes :0 Nombre de contours : 0 Nombre de centro�des : 0 Nombre de surfaces : 0 Nombre d'�les : 0 Successfully finished

The module creates a new map name that I can see when I click on "add a GRASS vector layer". However, there is no layer available for this map.

What's wrong?

The problem may come from the original shapefile. I am not a GIS specialist and I am a new QGIS user.

I have QGIS 1.8.0-Lisboa, Windows 7 and my computer is a French computer (which could explain why there are some French words in the v.in.ogr.qgis message).

0

3 Answers 3

4

I think your data is in a form that makes it difficult to use. By the look of it, the 'lines' in the shapefile are actually the tracks of the vehicle carrying the GPS kit. As the vehicle traversed the site the GPS was presumably recording lat/lon/elevation triplets for points at preset intervals. What happened to the data after that I can't begin to guess.

If it is possible to obtain the raw data for the survey in the form of (say) a delimited text file containing the lat, lon and elevation for each point this would make your life much easier.

If you are stuck with the data you've got, it might be possible to explode the polygons to points (extract nodes, from under the Vector menu) and then interpolate these to a DEM (under the Raster menu). But I'm not sure about this, the shapefile is so strange.

Added (much) later. There are 10-metre DEMs available for this part of Washington state, perhaps these might be of use? You'll need 2443 and 2444 from here.

4

Your vector is a polygon layer, but it looks like as if it is made of lines, so it means that the "lines" are made of very narrow polygons. When importing vectors into GRASS, v.in.ogr has a "snapping" parameter, that is set by default at a very small value, but that in lat/lon (as your vector is) still is a significant value. So when importing it the polygons borders are snapped and disappear.

To solve the issue just transform your vector to real lines using QGIS "polygon to lines" tool, and then import again into GRASS, it works.

0
1

Click the View Output button after the process is completed. See the image below.

enter image description here

0

Your Answer

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

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