|
POST
|
Dear All, It seems that arcpy.mp does not release the lock of the resulting (new) aprx document. The following code does create a new aprx file: aprx_project.saveACopy(os.path.join(workspace, prefix, name_to_save))
del aprx_project Unfortunately, the lock persists on the new .aprx file. Is there any way to remove it? Only after I close the ArcGIS Pro which I use to run the script, the lock is released. Any hints are much appreciated! Adam ArcGIS Pro v.2.2.2
... View more
09-19-2018
12:26 AM
|
3
|
11
|
6055
|
|
POST
|
Thanks! Another good reason to update to 10.6.1. Adam
... View more
09-18-2018
06:42 AM
|
0
|
0
|
1127
|
|
POST
|
Dear All, Does anybody know if there are some limitations regarding HeatmapRenderer | API Reference | ArcGIS API for JavaScript 4.8 related to Feature and MapServices in 10.5.1 version? My sample code does not show up the heatmap (does not even download HeatMap<****>.js files when using autocasting) and finishes once query returned the data from the service. No errors returned to the console. This code works fine since it is grabbing the data from 10.6.1 service. But, once I replace the url to 10.5.,no longer it works properly. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Visualize points with a heatmap - 4.8</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.8/esri/css/main.css">
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
var dojoConfig = {
has: {
"esri-featurelayer-webgl": 1
}
};
</script>
<script src="https://js.arcgis.com/4.8/"></script>
<script>
require([
"esri/Map",
"esri/layers/FeatureLayer",
"esri/views/MapView",
"esri/config",
"esri/widgets/Legend",
"dojo/domReady!"
], function(
Map,
FeatureLayer,
MapView,
esriConfig,
Legend
) {
// If CSV files are not on the same domain as your website, a CORS enabled server
// or a proxy is required.
const url =
"https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/attendees/FeatureServer/0"
esriConfig.request.corsEnabledServers.push(url);
// Paste the url into a browser's address bar to download and view the attributes
// in the CSV file. These attributes include:
// * mag - magnitude
// * type - earthquake or other event such as nuclear test
// * place - location of the event
// * time - the time of the event
// The heatmap renderer assigns each pixel in the view with
// an intensity value. The ratio of that intensity value
// to the maxPixel intensity is used to assign a color
// from the continuous color ramp in the colorStops property
const renderer = {
type: "heatmap"
};
const layer = new FeatureLayer({
url: url,
title: "Attendess",
copyright: "Esri",
renderer: renderer
});
const map = new Map({
basemap: "gray",
layers: [layer]
});
const view = new MapView({
container: "viewDiv",
center: [21, 40],
zoom: 3,
map: map
});
view.ui.add(new Legend({
view: view
}), "bottom-left");
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html> I use Mozilla ESR 52.7.4. Any hints are much appreciated.
... View more
09-18-2018
12:05 AM
|
0
|
2
|
1496
|
|
POST
|
Dear Jack, Yes, there are some options: 1) Use ProjectEngine in ArcGIS Runtime for Java. However, Runtime was not designed to work with servlet engine. GeometryEngine| arcgis-java 2) Use open - source libraries to perform geometry operations like GitHub - locationtech/jts: The JTS Topology Suite is a Java library for creating and manipulating vector geometry. and integrate it with your application 3) Use Esri JS Geometry Engine and call Javascript from your application geometryEngine | API Reference | ArcGIS API for JavaScript 4.8 Hope it helps, Adam
... View more
07-17-2018
11:37 PM
|
0
|
0
|
836
|
|
POST
|
Hi, I reckon that Esri does not provie toolkit for 100.2.1 (java fx). It used to be available for 10.x version based on Swing components. As for now, there is only .Net toolkit available for current version of ArcGIS Runtime. I think you need to develop it on your own. There is a nice method to get the Legend from layer fetchLegendInfosAsync () Layer| arcgis-java Regards, Adam
... View more
04-12-2018
05:50 AM
|
0
|
0
|
780
|
|
POST
|
Hi, please check this: http://downloads2.esri.com/ArcGISOnline/docs/tou_summary.pdf and licensing restrictions on this page: http://www.arcgis.com/home/item.html?id=226d23f076da478bba4589e7eae95952 Hope it helps, Adam
... View more
04-11-2018
11:09 PM
|
0
|
2
|
741
|
|
POST
|
Dear All, I struggle with Portal for ArcGIS 10.3.1 to make directions working as expected. I created and exposed network service on ArcGIS Server (with Route layer enabled) and pasted the REST endpoint to corresponding parameter box on Utility Services page. The direction button has been enabled on Map Viewer and I can search for directions. However, the issue is that I receive only direction list without route on the map (which corresponds to params of the request sent to service - see below) and once I click on the direction, I receive error about NaN values of coordindates. On the map the scalebar appears with NaN values with map froozen. Here is the query that is sent by Map Viewer. It differs from the request that is actually sent by ArcGIS Online MapViewer (POST with returnRoutes: "true") Also, I checked NAService with some sample Esri JS API, and routing worked fine with output route visible. Any ideas or clues? Thanks ! Adam
... View more
02-01-2018
01:49 AM
|
0
|
0
|
627
|
|
POST
|
Hi, Check this snippet as a reference: @Override
protected List<ArcGISFeature> doInBackground(String... string) {
publishProgress(0);
List<ArcGISFeature> listFeatures = new ArrayList<>();
try {
QueryParameters query = new QueryParameters();
query.setReturnGeometry(true);
query.setWhereClause("Name <>" + "'" + DisplayMap.getSharedPreferences().getString(Settings.USER_NAME, "") +"'");
Polygon ply = GeometryEngine.buffer(usrLocation, 600);
query.setGeometry(ply);
query.setSpatialRelationship(QueryParameters.SpatialRelationship.INTERSECTS);
query.setMaxFeatures(30);
ListenableFuture<FeatureQueryResult> future = mServiceFeatureTable.queryFeaturesAsync(query);
FeatureQueryResult result = future.get();
Iterator<Feature> iter = result.iterator();
while(iter.hasNext()){
ArcGISFeature f = (ArcGISFeature) iter.next();
f.loadAsync();
if(!f.getAttributes().get("Name").equals(DisplayMap.getSharedPreferences().getString(Settings.USER_NAME, ""))){
listFeatures.add(f);
}
}
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
} finally {
return listFeatures;
}
} Hope this helps
... View more
08-09-2017
07:21 AM
|
0
|
0
|
448
|
|
POST
|
Dear Raj, Please check those first: 1) Are you sure that "http://192.168.201.97/mapcache/wmts" is the service endpoint? 2) Does WKID and Tiling scheme align with ArcGIS Online? 3) What does say network inspector? Is there any request to endpoint? Regards, Adam
... View more
07-18-2017
11:08 PM
|
0
|
1
|
551
|
|
POST
|
Dear Stewart, EDIT: Check these: https://developers.arcgis.com/java/latest/sample-code/dynamic-workspace-shapefile.htm and https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/localserver/ShapefileWorkspace.html Happy testing! Adam
... View more
07-18-2017
09:51 PM
|
0
|
0
|
1067
|
|
POST
|
Hi Bruce, I should use Java KML library of your choice, for instance GitHub - micromata/javaapiforkml: The objective of the Java API for KML is to provide Java interfaces for easy access to… Then try to get coordinates and attributes from input file in order to create Graphic Overlays. Hope this helps, Adam
... View more
07-05-2017
01:24 AM
|
0
|
0
|
524
|
|
POST
|
Hi, Java SE 8 update 131. Check it here System requirements—ArcGIS Runtime SDK for Java | ArcGIS for Developers Regards, Adam
... View more
07-05-2017
01:20 AM
|
0
|
0
|
423
|
|
POST
|
Hi, Are you referring to the 10.2.4 viersion? If so, check out this: Infopopup overlay | ArcGIS for Developers Regards, Adam
... View more
06-17-2017
11:06 AM
|
0
|
1
|
495
|
|
POST
|
Hi Daysie, According to the documentation, there is no such method. Additionally, you can remove all grahics at one time. Regards, Adam
... View more
06-17-2017
10:58 AM
|
2
|
1
|
678
|
|
POST
|
Dear Tim, I am not sure what you are getting at, but I can confirm you can have only one type of geometry in a feature layer. As a result, you can not mix point and polygons in one feature class. However, you can store point with radius specified as an attribute value and then make use of geometry engines's buffer method. Hope this helps, Adam
... View more
06-17-2017
10:48 AM
|
0
|
0
|
422
|
| 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
|