开发者

QGIS - creating vector layer which contain boundary of each raster cell

I would like to show a raster layer and beyond it another layer which contain lines (polylines) which is boundary of cells in other raster layer

I think about split each cell into new raster file and than convert it to vector - maybe there is much easier way? http://im开发者_如何转开发ageshack.us/photo/my-images/21/qgispyt.png/


I will answer to myself.

By using gdalinfo I can get exactly coordinates of raster corners and number of cells. If I use this information I can generate a GML file - unfortunately I have problem with it: qgis GML


If I understand what you want, there's a more easy way to do this. In Quantum GIS:
Vector > Research Tools > Vector Grid

  • Copy the spatial attributes of another layer (that is opened)
  • Choose a resolution that is not too small (otherwise your layer is just a black patch)
  • Choose lines

Default, the resulting layer will have a fill color, even when you selected lines and not polygons. You can change this in the Properties your layer.

  • Click Edit (or button with wrench icon)
  • Choose 'No fill' for Fill style

You're done!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜