Select to view content in your preferred language

lockraster doesnt work properly

2062
5
01-03-2011 06:58 PM
tongkimongki
Emerging Contributor
hi,

I am trying to use lockraster to lock to specific image in a service but it doesnt work correctly. That particular image that is locked will show up if i zoom it in to a particular scale... eg: the image shows up if i zoom in to 1:20K and above. below that it is just blank and gives out error :

[ServiceCore.ImageService.LoadServiceDefinition] Service Definition Source : \\xxxx\xxxxx\xxxxx\xxxxx.ISDef\ImageService.ISDef
[ImageServiceDB.SeRasterItemStore.SelectRasterItems : 008029] Error: No rasters were selected for the selection criteria.


Apparently the error tells me that there is no raster for small scale.. is it ?
how to overcome this ? i want the locked image to show up in every zoom scale..

Here is the attributes table of footprint for that particular image :
MinPS : 0
MaxPS : 7.2
LoPS : 2.4
HiPS : 2.4


thanks guys
0 Kudos
5 Replies
MelanieHarlow
Esri Contributor
The Lock Raster will not work as you desire. It is designed to lock to a raster dataset, but only within the display scale where it is designed to display (therefore between that min/max pixel range)
0 Kudos
tongkimongki
Emerging Contributor
thanks melanie...

So i can use the Lock Raster if the service is from Raster Dataset.. Is that correct ? I publish the service straight from the file...
BTW, i am using Arcgis Server 9.3.1. 

thanks again
0 Kudos
MelanieHarlow
Esri Contributor
You could modify the MaxPS in the service table of the ISDef to something larger, so it will get displayed as smaller scales.

I'm assuming you have a collection of raster datasets in the ISDef.

If you publish just one raster dataset (as it looks like you're suggesting), then you do not need to create an ISDef. You can just publish that raster dataset as an image service--note, you will no longer have any mosaic methods to choose as they're not needed. Be sure to create pyramids as this will help it display faster at smaller scales.
0 Kudos
tongkimongki
Emerging Contributor
Hi Melanie,

i publish my service straight from the raster files... i dont use Raster Dataset, made in ArcCatalog, to publish the service..
is there any difference ? ie : if I use Raster Dataset i can use LockRaster if i dont use raster Dataset then I cant use LockRaster...
0 Kudos
tongkimongki
Emerging Contributor
I solve it by increasing the value in maxPS to 10x higher than the default value.
0 Kudos