POST
|
I have solved the problem, copy the file sde.dll to the system32 and SysWOW64 folders, thanks -RL
... View more
06-17-2014
09:11 AM
|
0
|
1
|
312
|
POST
|
Hi, I have seen the posts: http://forums.arcgis.com/threads/85557-Oracle-SQL-and-ST_RASTER-some-functions-work-others-don-t.?highlight=st_raster http://forums.arcgis.com/threads/110319-XY-coordinates-using-SQL-command but I have not solved the problem, like the first post some functions work, others don't but the error is diferent, I can issue SQL such as: SELECT sde.st_raster_util_getVersion(); the result is: 1000 SELECT raster.getPixelType() FROM unam.sde.HR_50M_U_00Z02ENE2005 The result is: FLOAT SELECT raster.describe(null) from unam.sde.HR_50M_U_00Z02ENE2005 the result is: Raster ID ...................: 1 Raster Column ID ............: 2 Raster Dimension ............: 972, 571, 1 Raster Tile Dimension .......: 128, 128 Pixel Type ..................: float Compression .................: lz77 Image Pyramid ...............: 4, nearest Extent ......................: minx : -121.66974999999999 miny : 12.17025 maxx : -82.34425 maxy : 35.25525 Cell Size....................: x : 0.0405 y : 0.0405 Statistics ..................: min : -9999.0000000000 max : 12.0319995880 mean : -1839.1215462317 std dev : 3871.6449191090 However when try to get a pixel value, the query fails with errors: SELECT raster.getValueByLoc(1,1,-105.2,18.5) from unam.sde.HR_50M_U_00Z02ENE2005 Ther result is: Msg 6522, Level 16, State 1, Line 1 Error de .NET Framework occurred during execution of user-defined routine or aggregate "ST_Raster": System.DllNotFoundException: Unable to load DLL 'sde.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) System.DllNotFoundException: at SES_inflate_init(IntPtr* ) at RasterCodec.decodeLZ77(RasterCodec* , SByte* dest, SByte* src, Int32* size, Int32 numPixels, Int32 dataSize, Int32 bytesPerPixel, SByte* zbuf, Int32 zbufSize) at RasterCodec.decode(RasterCodec* , SByte* dest, SByte* src, Int32* size, Int32 numPixels, Int32 tileSize, Int32 dataSize, Int32 bandTypes, SByte* zbuf, Int32 zbufSize) at gsrvr.SdeRasterTile.decode(SdeRasterTile* , SByte* src, Int32* size, SdeRasterBitmap** bitmap) at ST_RasterCommon.getPixelValueCommon(ST_RasterCommon* , Int32 band, Int32 l, Int32 x, Int32 y, PixelValueArgument* __unnamed004) at ST_RasterSS.getPixelValue(ST_RasterSS* , Int32 band, Int32 l, Double __unnamed002, Double __unnamed003, Double* __unnamed004) at ESRI_ArcSDE.STRasterType.ST_Raster.getValueByLoc(SqlInt32 band, SqlInt32 level, SqlDouble x, SqlDouble y) Windows Server 2003 R2 SQL Server 2008 with ArcSDE 10.0 .NET Framework 3.5 Thanks, -RL
... View more
06-17-2014
08:36 AM
|
0
|
2
|
2080
|
POST
|
Hi Ramon, I tested with your service and I am not able to reproduce the issue. After setting the LayerOption to 'all' and the LayerIds to the range 1-13 (as you did), the identify task returns the infos about the 13 raster layers. See attached screenshot. So for me, everything seems OK. Thank you, my code is wrong, I did with the example as you and the query give me all values�??�??. thank you very much dbroux
... View more
05-17-2011
08:42 AM
|
0
|
0
|
388
|
POST
|
Is your service public and could you share the map service URL, so we could test our side? this is my service: http://sag01.iie.org.mx/ArcGISServer/rest/services/RecursoEolico/MapServer
... View more
05-17-2011
06:32 AM
|
0
|
0
|
388
|
POST
|
Oh it is read-only in the sense that the instance cannot be changed but the collection can be modified. 🙂
//identifyParameters.LayerIds = new System.Collections.Generic.List<int>(); <-- cannot change instance
identifyParameters.LayerIds.AddRange(new int[] { 1, 2 }); // can change collection
You have a good weekend too. help me please, i have problem with identify rasters layer, only return the value of first two layers,no matter how many layers I add LayerOption is "all" and identifyParams.LayerIds.AddRange(new int[] { 1,2,3,4,5,6,7,8,9,10,11,12,13 }); returned value of layers 1 and 2 if modify: identifyParams.LayerIds.AddRange(new int[] { 1,3,4,5,6,7,8,9,10,11,12,13 }); returned value of layers 1 and 3
... View more
05-16-2011
01:02 PM
|
0
|
0
|
388
|
POST
|
AFAIK, the raster layers inside a map service are managed the same way than any feature layer. How did you set the LayerOption and the LayerIds of your identify task? If LayerOption is set to visible, it means that the identify is taking care of the scale and so will not identify the raster layers that are not visible at the current scale. Could this be your case? If your service is public, can you share the identify request that is sent to the service (use fiddler to get it)? and I do not know where it is used fiddler, sorry
... View more
05-13-2011
09:17 AM
|
0
|
0
|
388
|
POST
|
has four sets of layers and each group has thirteen layers. I want to identify the values �??�??of the thirteen layers depending on which group is active regardless of which only some are visible. LayerOption is "all" and identifyParams.LayerIds.AddRange(new int[] { 1,2,3,4,5,6,7,8,9,10,11,12,13 }); return value of layers 1 and 2 if modify: identifyParams.LayerIds.AddRange(new int[] { 1,3,4,5,6,7,8,9,10,11,12,13 }); return value of layers 1 and 3 if modify: identifyParams.LayerIds.AddRange(new int[] {10,11,13 }); return value of layers 10 and 11
... View more
05-13-2011
08:49 AM
|
0
|
0
|
388
|
POST
|
I noticed that your map service contains group layers. Take care that if you include a group layer in the list of layer to identify, all sublayers of this group layer will be identified. I would recommend not to include the group layers in the list. That being said I am not sure that explains your issue but it's worth the try. If you still get the issue and that your service is public, could you check with fiddler what kind of identify request is sent to the server and could you share the URL of this request? Thanks The identify task supports query to raster layers? is there any example? because I had problems in the identification of raster layers. I have groups of raster layers and groups of feature layers , but identification only send me the result of the first two raster layers for each group although I assigned the entire list of raster layers to identify. For Feature layers is not problem, return all results.
... View more
05-13-2011
06:38 AM
|
0
|
0
|
408
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|