Select to view content in your preferred language

White space around Cached Imagery - Displays differently in Flex vs. ArcGIS

1370
4
01-20-2011 06:55 AM
CarmenDurham
Frequent Contributor
Hello all!

Here are two services displayed in a Flex app (one ESRI and the other is our image cache):
Note the change in the white space between the two imagesignore the crosshatch - look at white space beneath crosshatch)...





Then the same two services displayed in ArcMap:



I don't want any white space, but if I am stuck with it using Flex, I would like it to look like how it appears in ArcMAP.  Why would the white space be different between the two applications?

I thought the white space would be a cache issue and I tried to recreate the cache using some different parameters, but I kept seeing the white space.  One time I tried limiting the Dataview to a shapefile that was a box surrounding the imagery, then create the cache.  that didn't work. 

Using 9.3.1 to create cache.  Current one is .jpg.  Did try .png one of the times, but didn't work or I did something wrong. 

So - not sure if this is a flex issue or a cache issue. But since I saw a difference between Flex and ArcGIS in the display, I am asking here.  I want to eliminate the white space when displayed in Flex OR hear that it cannot be done and that I have to get over it.

We are trying to show historical imagery from 1955, 65, 79, etc and they all have large amounts of white space. 

Thanks,
Carmen
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Carmen,

   I would say you need to begin in ArcMap. There is a clip tool in Arctoolbox, under Data Management Tools, Raster, Raster Processing that I would use to clip the raster to a shapefile that covers only the extent of the actual image. Do this for all of your rasters that have the white collar before you worry about creating a cache again.
0 Kudos
CarmenDurham
Frequent Contributor
Robert,

I am sorry if I was not clear - none of my rasters have a collar before caching.  Both above images were bringing in the same cached services - one into Flex, and one into ArcGIS.

Here is how my SDE raster looks (not a service) overlaying the ESRI service in ArcMap -- no collar.  The other images are the same way,  although not in SDE.



That's what is weird - where did the white space come from and why does it display differently in Flex vs. ArcMAP?  

I notice other websites (ie. Greeley) have the white space also, but it annoys me!

Thanks,
Carmen
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Carmen,

   OK, I didn't get that at first. Maybe someone will just in on this then as I don't cache any of my services; therefore, have no expertise in this area. If you don't get any help from this forum I would call tech support and forget about the flex portion of this issue and just focus on the white collar added by server to the cached service.
0 Kudos
WesBailes
Occasional Contributor
Basically the .Jpeg does not support transparency thus the white collar is shown starting at the origin of the cache to the point where your raster data begins.  I think the reason you don't see this in arcmap is due to the fact that it displays to the extent of the data (only a portion of white area).  If you upgrade to version 10 there is a mixed mode that creates tiles that support transparency around the edges of your cache (.png) and .jpeg for the rest of the data.
0 Kudos