question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apply raster symbolizer on gdalimage

See original GitHub issue

Hi, I have tried to load an image manually in map control. I can now read a tiff image using gdal, here is my code

>             DotSpatial.Data.Rasters.GdalExtension.GdalImage g = new DotSpatial.Data.Rasters.GdalExtension.GdalImage(@"E:\Personal\Project\Sebal\dem\dem.tif");
> map1.MapFrame.Layers.Add(g);

well it works and loads gdal driver, But it does not show anything in map, It seems there must be some symbolizer applied on map, But I could not figure out how to do it, Can some one pleas hep me?thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jany-tenajcommented, Oct 4, 2017

Can you see the image if you load your tif file via Map.AddLayers()?

If this works you might be better of using Map.AddLayer(fileName) instead of trying to load it manually.

If it doesn’t work DotSpatial might have a problem loading the file for one reason or another. In this case it would be nice if you’d upload the file so we can check whether we can fix the problem.

0reactions
am2222commented, Oct 4, 2017

@jany-tenaj yes exactly

Read more comments on GitHub >

github_iconTop Results From Across the Web

RasterSymbolizer — GeoServer 2.24.x User Manual
RasterSymbolizer ¶. GeoServer supports the ability to display raster data in addition to vector data. Raster data is not merely a picture, rather...
Read more >
Apply a raster function template to symbolize classified ...
Right-click the created raster function template, and click Export. In the Export window, specify a name for the template under Name and ensure...
Read more >
Geoserver couldn't read SLD - Raster Symbolizer as ...
For your raster you actually want to use the recode function which will assign a colour to each value directly, such as: <PolygonSymbolizer> ......
Read more >
Using the ImageMosaic extension — GeoServer Enterprise ...
Go to Data Panel ‣ Stores and click Add new Store. · Select ImageMosaic under Raster Data Source: · In order to create...
Read more >
Splitting raster into smaller chunks using GDAL?
I have a utility that uses subprocess.Popen to run multiple gdal translates at the same time which I use for extracting a large...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found