|
POST
|
After doing the below, Java sample also working as expected. Thank you Domenico. In the properties section of the service JSON, add the disableCaching property and set its value to true, for example: "properties": { ... "disableCaching": "true", ... } Note: Without doing the above, .Net sample was working fine.
... View more
08-17-2015
02:23 AM
|
1
|
0
|
3660
|
|
POST
|
Hi Domenico, Thanks for your reply. As mentioned under "EDIT" in my question, the .Net LayerAccessSOI sample working as expected, but the issue is only with Java LayerAccessSOI sample.
... View more
08-14-2015
12:07 AM
|
0
|
1
|
3660
|
|
POST
|
I was exploring LayerAccessSOI java sample. Attached the LayerAccessSOI to SampleWorldCities map service, when accessed the map service in ArcGIS REST Services Directory... Before Login - "Layers" section was not showing any layers, this is the correct behaviour. After Login - "Layers" section was still not showing any (authorized) layers, seems there is something wrong. When I DEBUG the SOI for "After Login" scenario the "userName" is getting empty for the below lines of code. IServerUserInfo userInfo = ServerUtilities.getServerUserInfo(); String userName = userInfo.getName(); Please refer to the attachment. Did any body experienced this? Can help? Edit: - I checked the LayerAccessSOI .Net sample, it has no issues. - For .Net, every page refresh on the map service rest directory was triggering handleRESTRequest method. But it's not the case with Java sample.
... View more
08-09-2015
01:33 AM
|
0
|
7
|
8101
|
|
POST
|
Hi, You got any solution for this? If so, can you please share it?
... View more
07-01-2015
03:22 AM
|
0
|
0
|
531
|
|
POST
|
Here we go... LayerFile layerFile = new LayerFile(); layerFile.esri_new(fileName); layerFile.replaceContents(layer); layerFile.setDocumentVersion(esriArcGISVersion.esriArcGISVersion93) layerFile.save(); When saving a layer to a previous version, keep in mind that older versions of ArcGIS may be unable to access newer data sources in the current release. For example, a layer that points to an ArcGIS 10.2.2 geodatabase will not work in earlier versions of ArcGIS. Source: ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
07-21-2014
04:03 AM
|
0
|
0
|
772
|
|
POST
|
How to save layer file of previous version using ArcObjects Java API from ArcGIS 10.2? I was using the below code, but no option available to specify the layer file version.
ILayerFile layerFile = new LayerFile();
layerFile.esri_new(fileName);
layerFile.replaceContents(layer);
layerFile.save();
... View more
07-16-2014
01:14 AM
|
0
|
1
|
3877
|
|
POST
|
Thank you Xander, appreciated. I will try this later, as I am busy with my other critical tasks.
... View more
10-29-2013
07:39 AM
|
0
|
0
|
3809
|
|
POST
|
Hi Xander, Thanks for your response. Actually I was looking about "Feature Attachments", which involves a relationship table to store the attachments for features. Please go through "Query attachments" section in below link, which talks about performing the same task in .Net. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001qr000000
... View more
10-29-2013
06:07 AM
|
0
|
0
|
3809
|
|
POST
|
"Feature attachments" is the new feature from ArcGIS 10 on wards. How to extract feature attachments and save to disk using Python?
... View more
10-24-2013
01:13 AM
|
0
|
32
|
23857
|
|
POST
|
Hi, Where can I find the REST API help document for ALL the Raster Functions. I have gone through http://resources.arcgis.com/en/help/rest/apiref/index.html?israsterfunctions.html but it doesn't contain the help for ALL the raster functions. I was looking for help about "Mask Function". Basically, I want to know, how to pass the parameters for "Mask Function" using 1. REST API 2. ArcMap ("Server Functions" tab for Image Service layer properties window).
... View more
07-22-2013
04:17 AM
|
0
|
0
|
1315
|
|
POST
|
All basemaps must share the same spatial reference for basemapgallery.
... View more
11-04-2012
03:54 AM
|
0
|
0
|
1095
|
|
POST
|
Is there SOE Walkthrough for ArcGIS 10.1 Java available? I am only finding it for ArcGIS 10.
... View more
09-10-2012
07:45 PM
|
0
|
2
|
622
|
|
POST
|
This java code works... import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; private static void clearRestCache(String server, String username, String password) { DefaultHttpClient httpclient = new DefaultHttpClient(); try { String loginUrl = "http://" + server + ":8399/arcgis/rest/admin/login"; String cacheClearUrl = "http://" + server + ":8399/arcgis/rest/admin/cache/clear"; HttpGet httpget = new HttpGet(loginUrl + "?username=" + username + "&password=" + password + "&redirect=" + cacheClearUrl); httpclient.execute(httpget); } catch (Exception e) { e.printStackTrace(); } finally { httpclient.getConnectionManager().shutdown(); } }
... View more
08-15-2011
10:43 PM
|
0
|
0
|
1006
|
|
POST
|
This java code works... import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; private static void clearRestCache(String server, String username, String password) { DefaultHttpClient httpclient = new DefaultHttpClient(); try { String loginUrl = "http://" + server + ":8399/arcgis/rest/admin/login"; String cacheClearUrl = "http://" + server + ":8399/arcgis/rest/admin/cache/clear"; HttpGet httpget = new HttpGet(loginUrl + "?username=" + username + "&password=" + password + "&redirect=" + cacheClearUrl); httpclient.execute(httpget); } catch (Exception e) { e.printStackTrace(); } finally { httpclient.getConnectionManager().shutdown(); } }
... View more
08-15-2011
10:42 PM
|
0
|
0
|
1554
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-31-2023 08:35 AM | |
| 1 | 10-18-2023 04:43 AM | |
| 1 | 09-30-2020 09:50 PM | |
| 1 | 11-29-2020 12:16 AM | |
| 1 | 03-03-2024 08:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-12-2025
08:26 PM
|