|
POST
|
Under ArcGIS Runtime there should be a Local Server Utility where you can enable logging. This should provide you a but more detail about whats going on. Since there are no input/output parameters can you check if the defaults for the input and output of the copy feature is defined correctly? Its strange that its not giving you any errors. Would you mind sharing the script? -S
... View more
07-16-2013
07:10 AM
|
0
|
0
|
1252
|
|
POST
|
I have seen similar issues in some versions like 9.3. Generally it is advised to follow the sequence during restarts. Shutdown SDE, then Shutdown database and restart in the reverse way. Also you can analyze these hung connections. Are these from some specific machines? What type of connections are being used?
... View more
07-15-2013
02:30 PM
|
0
|
0
|
499
|
|
POST
|
If you are using a ArcGIS Desktop packages Engine then only you should use AGSDESKTOPJAVA. It you have ArcGIS Engine setup, you should ideally be setting the AGSENGINEJAVA. This error typically occurs when you have different versions of ESRI products installed and you are using an Arcobjects which is not compatible. Make sure you check for all the path variables and remove any unnecessary path. Whats the bootstrap method you are using?
... View more
07-15-2013
01:05 PM
|
0
|
0
|
631
|
|
POST
|
I hope you have created the geoprocessing package correctly by selecting the ArcGIS Runtime Support and then creating the package. You can try to first run everything in a synchronous mode and later switch to Async. What is the expected result from this tool? Is it expected to create any output somewhere? As a side note :- Enabling logging on your local server can also be helpful sometimes
... View more
07-15-2013
12:50 PM
|
0
|
0
|
1252
|
|
POST
|
Can you provide some information about what exactly is the code doing? Is your icon just a shortcut to the script. From the command line you are using a different stack size than the one which crashed. Try defining your JVM parameters like -Xss -Xmx and -Xms explicitly while launching. Alternatively, use something like a jconsole to see if there is a memory leak in your application. Hi all, I am getting a problem when i am trying to run esri desktop application from double click on the icon created on linux, the application runs for a while and crashes showing core dump issue on the terminal window. Although the same application runs fine when i run it using terminal command or with shell script of the application. here is the command i used to run the application directly on the terminal:
$ java -jar -Xss10m /home/user/Desktop/sample.jar
here is the command i used to run the application using shell script. the script file contains the above command.
$ ./runSample.sh
and here is the output when i try to run the application using double click on icon.
/home/gisuser/arcgis/engine10.1/
file:/home/gisuser/Desktop/ADAssetwidTrack05072013.jar!/adaps.png
/home/gisuser/Desktop/runADAsset.sh: line 4: 4738 Aborted (core dumped) java -jar -Xss5m /home/gisuser/Desktop/sample.jar
Please Help.
... View more
07-15-2013
08:20 AM
|
0
|
0
|
850
|
|
POST
|
You can add the same blank layer as many times as you want. It should not matter as you are going to dynamically change the data source etc. I hope I understood your question correctly. To continu previous discussion... I would like to create a "blank mpk" with 10 sub layers (more than 1 is my concern), instead of only one today... So when creating my dynamic map service layer, for each sub layer I can update the dynamic layer infos to point to my Raster datasource (10 rasters from same directory). I was able to create a blank MPK with 1 sub layer, because it's just an empty map. But how can I prepare additional empty sub layers in ArcMap ? Thanks for your help...
... View more
07-10-2013
07:37 AM
|
0
|
0
|
813
|
|
POST
|
If you are behind a proxy (authenticated or otherwise) then you need to configure the proxy details to access external servers (services). The ESRI Proxy code is broken so its recommended you set up the system properties to do the same. String username = "username"; String password = "password"; System.setProperty("http.proxySet", "true"); System.setProperty("http.proxyType", "4"); System.setProperty("http.proxyHost", "proxy server"); System.setProperty("http.proxyPort", "proxy port"); System.setProperty("http.proxyUser", username); System.setProperty("http.proxyPassword", password); System.setProperty("http.nonProxyHosts", "127.0.0.1"); // to allow local server Adjust the code accordingly The service is not secured:: ArcGISTiledMapServiceLayer tiledLayer = new ArcGISTiledMapServiceLayer( "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"); //LayerList layers = map.getLayers(); // layers.add(tiledLayer); map.getLayers().add(tiledLayer); even this is also not being displayed... i am getting same error.
... View more
07-03-2013
07:19 AM
|
0
|
2
|
1069
|
|
POST
|
Glad that you got it working. I agree. Its based on the REST API calls. It a matter to getting the request parameters formed correctly -Sachin thanks Sachin, it's working fine ! 😉 Actually, I already had part of the solution because I'm getting the Geometry Type of shapefiles the same way, but I'm still new to http request and JSon. here's my code : private Envelope requestHttpExtent(final DynamicLayerInfo layerInfo, final String urlMapService) {
Envelope envelope = null;
try {
String layerParam = layerInfo.toJson();
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(urlMapService + "/dynamicLayer?");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
nameValuePairs.add(new BasicNameValuePair("layer", layerParam));
post.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = client.execute(post);
BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
JsonNode extentNode = parseJson(rd).findValue("extent");
if (extentNode != null) {
double xMin = extentNode.findValue("xmin").asDouble();
double yMin = extentNode.findValue("ymin").asDouble();
double xMax = extentNode.findValue("xmax").asDouble();
double yMax = extentNode.findValue("ymax").asDouble();
envelope = new Envelope(xMin, yMin, xMax, yMax);
}
} catch (Exception e) {
// do nothing
envelope = null;
}
return envelope;
}
... View more
06-28-2013
01:16 PM
|
0
|
0
|
1002
|
|
POST
|
One approach could be to query the Dynamic layers for the extents and then use that to implement the Zoom to Layer. HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(MapServiceUrl + "/dynamicLayer?"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1); nameValuePairs.add(new BasicNameValuePair("layer", queryParam)); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); Where queryParam can be formed from dynamics layers String queryParam= "{\"id\":0,\"source\":{\"type\":\"dataLayer\",\"dataSource\":{\"type\":\"" + type + "\",\"workspaceId\":\"" + workspaceId + "\",\"dataSourceName\":\"" + layerName + "\"}}}"; You can put type = "table" for Feature Layers, Workspaceid can be obtained from the added dynamic layer and layername in the name of the shapefile or layer that was added. You can then parse this using the Json parser and get the required extents or any other info that is required JsonNode extentNode = parseJson(rd).findValue("extent"); extentNode.findValue("xmin").asDouble(); extentNode.findValue("ymin").asDouble(); extentNode.findValue("xmax").asDouble(); extentNode.findValue("ymax").asDouble(); Here is the method for parsing JSON private static JsonNode parseJson(BufferedReader jsonStr) { JsonFactory jfactory = new JsonFactory(); JsonNode rootNode = null; try { ObjectMapper mapper = new ObjectMapper(jfactory); rootNode = mapper.readTree(jsonStr); } catch (JsonParseException e2) { e2.printStackTrace(); } catch (Exception e2) { e2.printStackTrace(); } return rootNode; } I hope this helps !!!! The ArcGIS Runtime sample "Datasources > Add Shapefile" provide source code to select a shapefile and add it to the map based on a blank MPK (Map Package) and a map service (on the LocalServer). From that, I would like to be able to get the Full Extent of this layer (from menu "Zoom To Layer"). In my case, I have a World wide blank MPK, so any kind of Shapefile will be loaded. basically, from 2 identical blank MPK, I can load 2 different Shapefile, one with European countries, another with USA countries. I need to be able to zoom to first Layer on "Europe" or to second layer on "USA" ! But my issue is : - if I try to get the full extent from the Dynamic Layer, with getFullExtent(), I will get the Envelope from the MPK which is always the World extent. - How can I get the Full Extent from sub-layers of the dynamic layer to only get the Envelope of my Shapefile (sublayer[0]) ??
... View more
06-25-2013
09:11 AM
|
0
|
0
|
1002
|
|
POST
|
Thanks....There were some issues with the case-sensitivity in the request. Now the Query works fine. I tried the REST API way for the Labeling. I dont get any errors and get an image back but its not labeled. On checking the rest api documentation I find that "If dynamicLayer resource lists canModifyLayer to be false, then only the label properties specified in drawingInfo are honored - use showLabels to turn on/off labels and use labelingInfo to specify how the labels are drawn." http://resources.arcgis.com/en/help/rest/apiref/index.html?ms_dyn_query.html That puts a limitation on dynamic layers? Hi, You won't be able to do Identify or Labeling using the 'dynamic workspaces' functionality (i.e. ad hoc adding of data rather than through a map package / mpk) at 10.1.1, but the REST API does support query on dynamic layers. The Java SE Runtime API doesn't have support within the Query classes for this, but look for this at 10.2. For now to query a dynamic-workspace-style layer, e.g. a shapefile, you would need to construct your own query request, an example is on this page: http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html e.g. Example 1, where 'layer={...}' could be obtained in code from the DynamicLayerInfo of the layer you want to query. If you'd like more information let me know, ~elise
... View more
06-18-2013
06:26 AM
|
0
|
0
|
624
|
|
POST
|
There is a way proposed by ESRI to add shapefiles and rasters using a dynamic service created via a blank mpk. But looks like there are very minimal functionalities it supports. How can do the following functionalities on the dynamic layers added to this blank map service? 1) Query all or specific Layer(s) 2) Identify on dynamic layer(s) 3) Labeling I tried to form requests like the REST API but still doesnt seem to work. Is this not supported yet with ArcGIS Runtime 10.1 for Java and is there a possibility that it will be in 10.2
... View more
06-12-2013
03:17 PM
|
0
|
2
|
2419
|
|
POST
|
The suggestion ofcourse is to create everything within SDE (tables and views) for testing and eliminating the possibility of a bug. At times there are patch issues or could be an issue with schema permissions. If SDE can create it then it could be a permission issue where the user does not have required permission. ESRI should seriously work on their error and exception handling though 🙂 !!!! 'SDE' should have fewer privileges than a data creator (in general, and with respect to the 'dpstr_gis' user's tables), so this would expose the instance to potential corruption without providing any benefit. - V
... View more
09-07-2012
09:37 AM
|
0
|
5
|
2059
|
|
POST
|
Hi, Do you have the tiff file alone in the folder? or there are other files as well. Sometimes the projection information can be stored outside in an external file (aux.xml) as well. If you have only this tiff file alone then maybe you can inspect the tags to see if it is corrupt using the following tool http://www.awaresystems.be/imaging/tiff/astifftagviewer.html
... View more
09-06-2012
11:51 AM
|
0
|
0
|
2776
|
|
POST
|
Hi, I hope what you mean is to upload a shapefile and display it as a map. You can use open source stack like Geoserver with Openlayers/GeoExt or MapFish. If you are using ESRI products then you can use their API's to publish a shapefile. Depends on what you are using !!!
... View more
09-06-2012
11:35 AM
|
0
|
0
|
445
|
|
POST
|
If your requirement is for a web based solution then you can go for Silverlight framework which would provide you most of the vector and raster viewing as well as interaction with most of the Microsoft specific applications like access, word etc. For a Desktop based solution you can go for ArcGIS Runtime.
... View more
09-06-2012
11:32 AM
|
0
|
0
|
341
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-28-2014 08:43 AM | |
| 1 | 02-23-2015 12:10 AM | |
| 1 | 02-27-2015 04:12 AM | |
| 2 | 07-09-2015 12:01 AM | |
| 1 | 03-02-2015 10:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|