Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a local raster image(*.tif or *.img) to the Map? #57

Closed
chenguanzhou opened this issue Sep 5, 2015 · 2 comments
Closed

How to add a local raster image(*.tif or *.img) to the Map? #57

chenguanzhou opened this issue Sep 5, 2015 · 2 comments

Comments

@chenguanzhou
Copy link

For the SharpMap project , this function is included in SharpMap.Extensions Component

@pauldendulk
Copy link
Member

There are several ways

  1. If you raster needs to be rotated you could use a PointSymbol with world units. There is a sample in Samples\Mapsui.Samples.Wpf. Zoom into the netherlands to view it. You can find the code by digging deeper from Window1.xaml.cs\Window1.PointSymbolsClick.

  2. Use the GeoTiffProvider (only for GeoTiffs). It reads the bounding box from the tiff.

  3. You could add a Raster with a bounding box just as this is done for all the tiles. This can not be rotated. Create your own memory provider and add a Raster Feature. Create like:

_feature = new Feature { Geometry = new Raster(data, _extent) };

@anushabasavaraj92
Copy link

I have to load a raster image of large size(500 mb). I have loaded it successfully. But, the responsiveness of the mapcontrol has decreased considerably. Is there a way to overcome this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants