POST
|
When I run the 'shapefiles and rasters' example, the image quality of 8-bit tiffs are seriously degraded. When I open the tiff in any image viewer it looks fine. Also, when I convert the 8bit grayscale to 24-bit it renders with full quality. So...how can I get 8-bit grayscale images to draw properly?
... View more
06-17-2013
04:44 PM
|
0
|
0
|
266
|
POST
|
For anyone with the same problem, here is some code for doing it: double[] modelTiePoint = new double[24]; //Populate the modelTilePoint array // modelTilePoint[0] = someValue; //... //Add our geotiff GCPs to the Tiff metadata BitmapMetadata metaData = new BitmapMetadata("tiff"); metadata.SetQuery("/ifd/{uint=33922}", dModelTiePoint); //Create BitmapFrame using raster data and metadata BitmapFrame bFrame = BitmapFrame.Create(myBitmapSource, null, metadata, null); //Write the GeoTiff to disk TiffBitmapEncoder enc = new TiffBitmapEncoder(); enc.Frames.Add(bFrame); enc.Compression = TiffCompressOption.None; enc.Save(new FileStream(outputGeoTiffName, FileMode.Create));
... View more
06-06-2013
09:37 AM
|
0
|
0
|
907
|
POST
|
Thanks for the tip. I already found a way to do it. I just used TiffBitmapEncoder and added geotiff-related tags to the metadata field.
... View more
06-06-2013
08:37 AM
|
0
|
0
|
907
|
POST
|
Is it possible to pass a memory stream to ArcGISLocalDynamicMapServiceLayer instead of the raster filename? I'm trying to avoid having to write the raster to disk and reading it back in...
... View more
05-30-2013
04:06 PM
|
0
|
0
|
920
|
POST
|
Does the sdk have any support for creating geotiffs (or any other georeferenced raster formats) in code? I'm planning on displaying the geotiff using code from the Raster and Shapefile example, so the raster format must be supported by that code.
... View more
05-30-2013
01:04 PM
|
0
|
6
|
4010
|
POST
|
I took the license string out of Application.xaml.cs and the nag screen stopped showing up. Thanks!
... View more
05-29-2013
10:02 AM
|
0
|
0
|
378
|
POST
|
I got the raster to display, but I still get the nag popup every time. How do I get rid of it?
... View more
05-28-2013
12:31 PM
|
0
|
0
|
378
|
POST
|
I copied code from the "Add Shapefiles and Rasters" example into my project. When I try to add a raster layer, I get a message box that says "This ArcGIS Runtime application is running using a development license. This license is valid for development and testing only". Also, my raster image does not show up over the basemap (but it does when I run the sample). My license string (in Application.xaml.cs) is set up for Development,C#,Standard, and no extensions. Any ideas?
... View more
05-28-2013
12:05 PM
|
0
|
3
|
689
|
POST
|
I'm trying to georeference a tiff in ArcMap. I want to save it as a geotiff, but when I save (to Documents\ArcGIS\Default.gdb) using Rectify->SaveAs, I don't see the saved geotiff file. Also the "Format" field in the SaveAs dialog is grayed out.
... View more
05-28-2013
09:53 AM
|
0
|
2
|
351
|
POST
|
I've been working with the heatmap example. I'm trying to only draw the bitmap in a small location defined by lat/lon coords. I've tried changing the Layer's overridden FullExtent property to the small area, but the bitmap is still being drawn across the entire screen. Can I get some help with this?
... View more
05-24-2013
01:15 PM
|
0
|
0
|
262
|
POST
|
Thanks, this should be useful. I need to look at it more carefully to make sure it will truly help me. Do you have any additional examples? Particularly for doing multiple bitmaps (like a mosaic) in one layer.
... View more
05-23-2013
04:29 PM
|
0
|
0
|
262
|
POST
|
I'm trying overlay an image (as memory stream) on top of a basemap. I have a location for each image frame (in the same spatial reference as basemap). I need to do this in code, not using ArcMaps or some other external tool. It seems like this should be a common feature. Are there examples for doing this?
... View more
05-22-2013
03:37 PM
|
0
|
3
|
772
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|