POST
|
It throws this error which I seems like there's a corrupt memory heap. 08-02 09:21:21.136: A/libc(21513): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 21526 (ProgressDialogT) 08-02 09:21:21.256: I/DEBUG(88): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad 08-02 09:21:21.386: I/DEBUG(88): backtrace: 08-02 09:21:21.386: I/DEBUG(88): #00 pc 000182ce /system/lib/libc.so 08-02 09:21:21.386: I/DEBUG(88): #01 pc 0000dbd4 /system/lib/libc.so (abort+4) 08-02 09:21:21.386: I/DEBUG(88): #02 pc 00817150 /data/data/mobileapp/lib/libruntimecore_java.so (__gnu_cxx::__verbose_terminate_handler()+276) You can try if you like. For extent you can use Envelope(-180.0, -90.0, 180.0, 90.0). Spatial Reference: "104903" double[] resolution = {0.5625, 0.28125, 0.140625, 0.0703125, 0.03515625, 0.017578125, 0.0087890625, 0.00439453125, 0.002197265625} double[] scale = {2.3639807480314958E8, 1.1819903740157479E8, 5.9099518700787395E7, 2.9549759350393698E7, 1.4774879675196849E7, 7387439.837598424, 3693719.918799212, 1846859.959399606, 923429.979699803} tileInfo = new TileInfo(new Point(0.0, 0.0), scale, resolution, 9, 96, 512, 512);
... View more
08-02-2013
08:44 AM
|
0
|
0
|
76
|
POST
|
So for extents I'm just setting both as setFullExtent(new Envelope(-180.0, -90.0, 180.0, 90.0)) setInitialExtent(new Envelope(-180.0, -90.0, 180.0, 90.0)) resolution is the width of the bounding box for the image divided by the width of a tile. resolution = tilePattern.getWidth() / TILE_WIDTH; scale is calculated using resolution. I'm pretty sure both scale and resolution are calculated correctly. imageWidth = 360.0 / resolution; kmPerPixel = imageWidth / ((TILE_DPI/(CM_PER_INCH))*CM_PER_KM); scale = EARTH_CIRCUM_KM / kmPerPixel; tileInfo is tileInfo = new TileInfo(new Point(0.0, 0.0), scale, resolution, tiledGroup.getTilePatterns().size(), TILE_DPI, TILE_WIDTH.intValue(), TILE_HEIGHT.intValue());
... View more
07-25-2013
01:15 PM
|
0
|
0
|
616
|
POST
|
Except for the database I have what you have. However, when I call super.initLayer(), I get a fatal signal and the program terminates. Any ideas?
... View more
07-25-2013
12:54 PM
|
0
|
0
|
616
|
POST
|
Thanks for replying. It's a custom tiled layer where the url for each image contains a bounding box attribute. I need to write the getTile function because I have to calculate the bounding box for each tile based on the level and position. I might be able to create a web map but I'll have to look into it further.
... View more
07-22-2013
02:44 PM
|
0
|
0
|
616
|
POST
|
Has anyone successfully extended a TiledServiceLayer for android? I'm trying to implement one so that I can create a layer from a non arcgis server. I've overridden the getTile(int level, int row, int column) function and have set the full extent, default spatial reference, and tileinfo. The application never calls getTile for some reason though. Is there anything else I need to initialize or override? I've found this example for SilverLight: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledMapServiceLayer.html one for Flex: http://blogs.esri.com/esri/arcgis/2009/03/06/extending-tiled-layers-in-the-arcgis-api-for-flex/ and one for JS: http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_custom_tiled.html.
... View more
07-22-2013
01:33 PM
|
0
|
10
|
3696
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|