|
POST
|
I have look in the Database Connection properties of the .sde connection file and I can confirm the Authentication Type is: Database authentication, and the username and password are saved inside
... View more
07-04-2017
07:10 AM
|
0
|
0
|
4477
|
|
POST
|
Hi! How can I know if the DB use user authentication or Operating System authentication? I have forgot to mention that FME is not running on a server, but on the same desktop than the python shell, and both are using the same python interpretor (I have double check using sys.version to be sure its the same python interpretor).
... View more
07-04-2017
07:00 AM
|
0
|
4
|
4477
|
|
POST
|
Something very strange happen in my FME shutdown python script that uses arcpy.Exists() function. This function test if a feature class exists or not and returns True or False. The following script returns False in FME even if the feature class do exists. I have tryed the same script in a python shell using the same python interpretor, and it returns True. Any ideas why it fails in FME shutdown python? import arcpy print arcpy.Exists("\\\\cnatrtd8\\geo\\GEODEV011.sde\\GEO09_WEB_MERCATOR\\GEO09E03_CS_STA")
... View more
07-04-2017
05:50 AM
|
0
|
8
|
6112
|
|
POST
|
Oh! That's right. I think I'll go back to v.3.20 then Thank you very much !
... View more
06-13-2017
06:18 AM
|
1
|
0
|
2077
|
|
POST
|
Hi Robert, You example is using a MapImageLayer, but I am asking about a FeatureLayer. And I see in the example that they creating the LabelClass used as label renderers instead of getting it from the service.
... View more
06-13-2017
05:55 AM
|
0
|
2
|
2077
|
|
POST
|
I wonder if it is possible to use the labels renderers defined in a .mxd published as a Map Service (Feature Access enabled) for a FeatureLayer with the javascript API v4.3 just like it works with the geometry renderer? I define a featureLayer like this: var organismesLayer = new FeatureLayer({
url: "https://infogeo.education.gouv.qc.ca/arcgis/rest/services/SandBox_Maxime/GDUNO/MapServer/1",
labelsVisible: true
}); In the map, I see the layer style is the same than in the .mxd, but the labels are not visible. Do I have to define the LabelClass manually in the javascript code? Is there a way to get the label renderers from the Map Service?
... View more
06-13-2017
05:42 AM
|
0
|
4
|
2669
|
|
IDEA
|
If you are using a GPService to access your images, you could encode them in base64, so it will be passed as strings through the REST API.
... View more
06-07-2017
06:31 AM
|
0
|
0
|
2341
|
|
POST
|
Hi, I wonder if there is a way (maybe using a REST service) to get a list of all tokens that were created and that are still valid (not expired) with the user info attach to each token? I am using ArcGIS Server 10.3 and this list would be useful to know who is have been using the securised services lately. Thank you Maxime
... View more
04-24-2017
10:31 AM
|
0
|
1
|
1285
|
|
POST
|
Thank you for your help Thomas. I have already tried this workaround. It could works only if you don't use definitionExpression on the subLayers, what I do. The features in subLayers that are invisible by the action of the definitionExpression are queried anyway by the IdentifyTask(). I don't think there is a workaround that will cover every possibilities...
... View more
03-30-2017
09:45 AM
|
0
|
0
|
1644
|
|
POST
|
According to me, the layerIds property refer to the subLayers ids (see for instance MapImageLayer.subLayers in the documentation.) When you instantiate an IdentifyTask(), you give the url of the layer that would be queried by the tool. So, layerIds is not related to every layers in the map, only the subLayers of the layer you have initiate the IdentifyTask with. How is possible that no one have ever encountered this bug before? I can't believe it. I think it would be trivial to fix it, but how long shall we wait for the fix?
... View more
03-30-2017
09:18 AM
|
0
|
5
|
3025
|
|
POST
|
Imagine you have more than one layer that you want to use with the IdentifyTask, for instance subLayers in a MapImageLayer, you wont be able to use such workaround. It seems to be a bug in the API right?
... View more
03-30-2017
08:31 AM
|
0
|
8
|
3025
|
|
POST
|
Doing that, it wont work when the layer is visible...
... View more
03-30-2017
08:19 AM
|
0
|
10
|
3025
|
|
POST
|
Thats not what the doc says about the layerOption "top" paramerer: Only the top-most VISIBLE layer is identified. Anyway setting the layerOption to "visible" does not make any difference. You can try directly in the sample code sandbox
... View more
03-30-2017
08:08 AM
|
0
|
12
|
3025
|
|
POST
|
Hi! Is it normal that the IdentifyTask returns features even if the layer is not visible? I see in the documentation that the layerOption parameter in the IdentifyParameters should define if the IdentifyTask will return feature for visibile layer only. However, this parameter seem not working. The popup is displayed even if the layer is not visible as shown below. The image and code below are taken from the documentation sample codes <script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/TileLayer",
"esri/tasks/IdentifyTask",
"esri/tasks/support/IdentifyParameters",
"dojo/_base/array",
"dojo/on",
"dojo/dom",
"dojo/domReady!"
], function(
Map, MapView, TileLayer,
IdentifyTask, IdentifyParameters,
arrayUtils, on, dom
) {
var identifyTask, params;
// URL to the map service where the identify will be performed
var soilURL =
"https://services.arcgisonline.com/arcgis/rest/services/Specialty/Soil_Survey_Map/MapServer";
// Add the map service as a TileLayer for fast rendering
// Tile layers are composed of non-interactive images. For that reason we'll
// use IdentifyTask to query the service to add interactivity to the app
var parcelsLyr = new TileLayer({
url: soilURL,
opacity: 0.85,
visible: false
});
var map = new Map({
basemap: "osm"
});
map.add(parcelsLyr);
var view = new MapView({
map: map,
container: "viewDiv",
center: [-120.174, 47.255],
zoom: 7
});
view.then(function() {
// executeIdentifyTask() is called each time the view is clicked
on(view, "click", executeIdentifyTask);
// Create identify task for the specified map service
identifyTask = new IdentifyTask(soilURL);
// Set the parameters for the Identify
params = new IdentifyParameters();
params.tolerance = 3;
params.layerIds = [0, 1, 2];
params.layerOption = "top";
params.width = view.width;
params.height = view.height;
});
// Executes each time the view is clicked
function executeIdentifyTask(event) {
// Set the geometry to the location of the view click
params.geometry = event.mapPoint;
params.mapExtent = view.extent;
dom.byId("viewDiv").style.cursor = "wait";
// This function returns a promise that resolves to an array of features
// A custom popupTemplate is set for each feature based on the layer it
// originates from
identifyTask.execute(params).then(function(response) {
var results = response.results;
return arrayUtils.map(results, function(result) {
var feature = result.feature;
var layerName = result.layerName;
feature.attributes.layerName = layerName;
if (layerName === 'Soil Survey Geographic') {
feature.popupTemplate = { // autocasts as new PopupTemplate()
title: "{Map Unit Name}",
content: "<b>Dominant order:</b> {Dominant Order} ({Dom. Cond. Order %}%)" +
"<br><b>Dominant sub-order:</b> {Dominant Sub-Order} ({Dom. Cond. Suborder %}%)" +
"<br><b>Dominant Drainage Class:</b> {Dom. Cond. Drainage Class} ({Dom. Cond. Drainage Class %}%)" +
"<br><b>Farmland Class:</b> {Farmland Class}"
};
}
else if (layerName === 'State Soil Geographic') {
feature.popupTemplate = { // autocasts as new PopupTemplate()
title: "{Map Unit Name}",
content: "<b>Dominant order:</b> {Dominant Order} ({Dominant %}%)" +
"<br><b>Dominant sub-order:</b> {Dominant Sub-Order} ({Dominant Sub-Order %}%)"
};
}
else if (layerName === 'Global Soil Regions') {
feature.popupTemplate = { // autocasts as new PopupTemplate()
title: layerName,
content: "<b>Dominant order:</b> {Dominant Order}" +
"<br><b>Dominant sub-order:</b> {Dominant Sub-Order}"
};
}
return feature;
});
}).then(showPopup); // Send the array of features to showPopup()
// Shows the results of the Identify in a popup once the promise is resolved
function showPopup(response) {
if (response.length > 0) {
view.popup.open({
features: response,
location: event.mapPoint
});
}
dom.byId("viewDiv").style.cursor = "auto";
}
}
});
</script>
... View more
03-30-2017
05:43 AM
|
0
|
15
|
6485
|
|
POST
|
Thank you again for your help (second time today!). I did not know every esri classes had the createSubclass method. This method is not described in the WebTileLayer documentation: WebTileLayer | API Reference | ArcGIS API for JavaScript 4.3 I suppose it inherited the createSubclass method from the Accessor class, but even in the Accessor documentation this method is not described Accessor | API Reference | ArcGIS API for JavaScript 4.3 Thanks again, Maxime
... View more
03-24-2017
06:51 AM
|
0
|
1
|
2380
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 05:45 AM | |
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 2 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|