|
POST
|
Hi Bertrand, I just want to say that the title is not precise enough. The service is published to ArcGIS for Server, isn't it? And then consumed in the thin client which is ArcGIS Online Map Viewer. The result is that the service is added or 'registered' with ArcGIS Online. Since ArcGIS Online does not host image services, you can't publish this type of services to this environment, that is why I found the tile misleading. Regards, Adam
... View more
02-10-2016
10:04 PM
|
0
|
0
|
1643
|
|
POST
|
I resolved my issue using ArcGIS 10.2.2 for gpk files creation. I recommend the same for you. Hope this helps, Adam
... View more
02-10-2016
04:39 AM
|
0
|
1
|
1421
|
|
POST
|
Chris, I experienced almost the same issue when I used ArcGIS 10.3+ for gpk file creation. There was an compatibility problem, that some of the geoporcessing tools were not recognized by runtime local server, which is still in version 10.2. What version of ArcGIS do you use for gpk creation? Adam
... View more
02-10-2016
02:56 AM
|
0
|
3
|
1421
|
|
POST
|
Hi Mohammad, that is why I suggested creation of aux.xml file associated with your tiff file. Inside xml file you will see definition of raster's coordinate system. This file is automatically saved by ArcMap, so you can examine it 's structure, by making a sample raster in your coordinate system. Regarding reprojection on the fly, According to the documentation it is not done automatically in ArcGIS Runtime. You need to test it. If the raster location is wrong, then I would try to use project method on RasterSource. See the sample; Add raster data—ArcGIS Runtime SDK for Java | ArcGIS for Developers Regards, Adam
... View more
02-09-2016
01:09 PM
|
0
|
2
|
1633
|
|
POST
|
Hi Chris, I also get the same error when trying to view the Service URL in a web browser. If I back track within the web browser to the GPServer branch, there are no tasks listed within the information. It seems that there is an issue with publishing .gpk file. First, I would try to get it running on AGS Site. Check if the Geoprocessing task was published with success (use REST end point and logs from AGS Manager). Make adjustments if necessary in ArcMap to the source gpk file. When it comes to the Local Service, check or set the internal port and enable logging (to be specified in ArcGIS Runtime Local Server Utility app) . Then, start your service, and check if it runs on the REST endpoint and finally the name of task. Hope this helps, Adam
... View more
02-09-2016
05:34 AM
|
0
|
6
|
1421
|
|
POST
|
Hi Sven, the only thing that comes to my mind is to add addLayerInitializeCompleteListener to all layers in your map. See the ArcGIS Runtime Samples - Layer Tree for sample usage. Regards, Adam
... View more
02-09-2016
12:21 AM
|
0
|
0
|
941
|
|
POST
|
Hi, You can use TextSymbol and set offset accordingly. Another option is to use FeatureLayer (from SQLite local geodatabase), edit data with Labels set and enabled. I did not try the second approach, but it should work. Hope this helps a bit. Regards, Adma
... View more
02-08-2016
12:06 PM
|
2
|
0
|
745
|
|
POST
|
Hi, try this code to save world file: File writerWld = new File();
BufferedWriter writerWld = new BufferedWriter(new FileWriter(wld))) {
Integer mapheight = map.exportMapImage().getHeight();
Integer mapwidth = map.exportMapImage().getWidth();
Double coordHeight = (map.getExtent().getUpperLeft().getY() - map.getExtent().getLowerLeft().getY());
Double coordWidth = (map.getExtent().getUpperRight().getX() - map.getExtent().getUpperLeft().getX());
writerWld.write(String.valueOf(coordWidth / mapwidth));
writerWld.newLine();
writerWld.write("0.000000");
writerWld.newLine();
writerWld.write("0.000000");
writerWld.newLine();
writerWld.write("-" + String.valueOf(coordHeight / mapheight));
writerWld.newLine();
writerWld.write(String.valueOf((map.getExtent().getUpperLeft().getX())));
writerWld.newLine();
writerWld.write(String.valueOf(map.getExtent().getUpperLeft().getY())); I suggest you create aux.xml file as well. Regards, Adam
... View more
02-07-2016
10:31 PM
|
0
|
1
|
1633
|
|
POST
|
Hi Sven, To save current map view as an image I use exportMapImage method on JMap. Also, I add addMapEventListener to JMap and wait for mapReady event. This is pretty much my workflow. Hope, you find it useful. Adam
... View more
02-07-2016
10:09 PM
|
0
|
1
|
941
|
|
POST
|
Hi Bertrand, It is great, you posted this short video. It must be very useful for many Esri software users. However, the title is misleading, since you just publish image serivce to ArcGIS for Server site and then, add it to ArcGIS Online map viewer. By the way, It would be great if AGOL, some day, will support image service publishing as well. Regards, Adam
... View more
02-04-2016
05:58 AM
|
0
|
0
|
1643
|
|
POST
|
HI, Well, there are some options: 1) Set labels for Feature Layer - setEnableLabels method 2) Make a use of TextSymbol for Graphic in Grpahic Layers Add graphics and text—ArcGIS Runtime SDK for Java | ArcGIS for Developers 3) Try to use MapTips Show MapTips—ArcGIS Runtime SDK for Java | ArcGIS for Developers Hope this helps, Adam
... View more
01-28-2016
12:44 AM
|
0
|
2
|
2103
|
|
POST
|
HI Colin, I recreated your tpk request. The REST API request page looks like: The resulting tpk is 34.6MB large. I added the file to ArcMap, and I could display it at all scales: Please, check your request parameters first. There must be something wrong there. Regards, Adam
... View more
01-07-2016
02:40 AM
|
0
|
1
|
1316
|
|
POST
|
Hi Colin, Open ArcMap (new blank document) and drag/drop tpk to the map window. ArcMap should automatically be zoomed to the extent of tpk. If it does not work, please answer the two following questions: 1) What is the size of downloaded tpk? 2) What is the area (coordinates) of the data you downloaded? Regards, Adam
... View more
01-05-2016
03:04 AM
|
0
|
3
|
1316
|
|
POST
|
Hi Eric, I don't have access to Esri's Technical Support as I am an EDN user only. As I suppose, there won't be any new release of ArcGIS Runtime, so I look forward to see the bug fixes in the Quartz final release. The sooner is the better! Thanks, Adam
... View more
12-22-2015
11:07 PM
|
1
|
0
|
1570
|
|
POST
|
Hi All, It seems that I found the issue. Unfortunately, It must be a bug in Runtime 10.2.4. After having enabled logging in LocalServer Utility, It turned out that ArcGIS Runtime sent a wrong-encoded request to the REST endpoint. There are many extra " and \ signs, which make the request invalid. Here is the wrong request made by Runtime: submitJob?input_rasters=["{\"format\":\"tif\",\"url\":\"http://localhost/lot1.tif\"}","{\"format\":\"tif\",\"url\":\"http://localhost/lot2.tif\"}","{\"format\":\"tif\",\"url\":\"http://localhost/lot3.tif\"}","{\"format\":\"tif\",\"url\":\"http://localhost/lot4.tif\"}"]&returnZ=false&returnM=false&f=json |The good request is below (tested in REST API endpoint): submitJob?input_rasters=[{ "url" : "http://localhost/lot1.tif", "format" : "tif" },{ "url" : "http://localhost/lot2.tif", "format" : "tif" },{ "url" : "http://localhost/lot3.tif", "format" : "tif" }]&returnZ=false&returnM=false&f=json Moreover, I would like to point out a few things: 1) Rest API, apparently, supports local path to the GPRasterDataLayer parameter in the following format { "url" : "C:/Tools/ChangeDetection/zm1wgs.tif", "format" : "tif" }. However, ArcGIS Runtime SDK 10.2.4 does NOT. When using " file:/// " prefix, Runtime creates this json: { "url" : "file:/C:/Tools/ChangeDetection/zm1wgs.tif", "format" : "tif" } which is in fact incorrect path. 2) "Mosaic To New Raster' tool is not supported when creating GPK from ArcGIS Desktop 10.3.1 (with MPK patch installed). Runtime shows the error: ERROR 000816: The tool is not valid. This must be a bug as well. When creating the same GPK from ArcGIS 10.2.2, the tool works as expected. 3) The input GPRasterDataLayer geoprocessing parameters can be defined as below. It works just fine GPRasterDataLayer rasterAfter = new GPRasterDataLayer("rasterAfter");
rasterAfter.setRasterDataUrl("http://localhost/zm1wgs.tif");
rasterAfter.setFormat("tif"); I hope, you find these comments useful, Regards, Adam Użyj zaawansowanego edytora
... View more
12-22-2015
07:09 AM
|
2
|
2
|
1570
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-19-2024 12:19 PM | |
| 1 | 05-11-2016 06:36 AM | |
| 1 | 09-28-2023 08:17 AM | |
| 2 | 03-17-2021 12:09 PM | |
| 1 | 05-11-2016 10:40 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-22-2024
10:35 PM
|