Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Use GDAL in VB-Project

$
0
0
Hi
I'm also new to dotSpatial and am pretty impressed. Using v1.8 along with Tutorials 3 + 9, I can add GDAL raster to map .

For native bgd raster format I can use IRaster to access the pixels:
        Dim pRlyr As IMapRasterLayer = Map1.Layers(0)
        Dim demRaster As IRaster = pRlyr.DataSet
I've tried this for a GDAL raster:
 Dim pRlyr As MapImageLayer = DirectCast(Map1.Layers.SelectedLayer, MapImageLayer)
But pRlyr.Datasets is an IImageData and I can't figure out how to get IRaster or pixels (ie iterate through rows and columns).

Can anyone point me in the right direction?

Thanks

Tim

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>