2

I have a SHP file and a DBF file that has an attribute table with a column for elevation. Through command line how can I make this these elevations visible when I view the shapefile?

I would like to overlay a shapefile over map to create a topographic map.

I do not want to do this using a GUI.

Update: I would like to use the tools provided with OSGeo. This for example is what I want but I'm doing it through QGIS GUI. Blue is my shapefile, it then created labels (in black) based on my DBF. I'm pretty sure QGIS uses GRASS commands but I am unsure of how to do this.

enter image description here

I have a file with lots of data like below, but I don't know how to actually overlay it over my shapefile.

enter image description here

  • This is a bit unclear: is your shapefile points? where is your base map coming from? how are you viewing your shape file? what has the qgis tag got to do with it? – Spacedman Oct 7 '15 at 7:03
  • @Spacedman I'm currently viewing the shapefile in QGIS. I guess overall I would just like to overlay the shapefile with the DBF info (as shown above) over top of another image. – BFlint Oct 7 '15 at 20:39
2

You could use MapServer with the following workflow:

  1. create a mapfile with the elevation layer (and its labels/annotations) and your basemap(s) (basemaps, for example)
  2. invoke the shp2img command like shp2img -m foo.map -l "elevation basemap" -o bar.png

The output will be an image graphic depicting the elevation shapefile with annotations atop a basemap layer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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