POST
|
Hi all, I want to get screenPoints of polyline (maybe array of points, no problem). For point features i use code: projection.load().then(function () { let screenPoint = view.toScreen(feature.geometry); console.log(screenPoint.x, screenPoint.y); } and it works fine, but how can achieve this for polyline? Thanks in advance
... View more
|
0
|
1
|
170
|
POST
|
Hi guyz, I am trying to set feature length as label on my map. From MapServer i can get it using $feature.Shape_length, but from FeatureServer it does not work, i tried to use Length($feature, 'meters') but it returns wrong data, any idea how to do? Kind regards.
... View more
3 weeks ago
|
0
|
1
|
171
|
POST
|
Thank you very much, this is exactly what i wanted 3>
... View more
03-03-2024
10:08 PM
|
0
|
0
|
141
|
POST
|
Hello Guyz, I have changed click event to mouseover in this sample, here on mouse hover view goes to feature. Two thing i want to do are: 1) Open popup for selected feature, i tried view.openPopup({}), but i think i have missing something. 2) Deselect selected feature after mouse out on button. this two thing, i think it will help others too in the future. Thanks
... View more
02-29-2024
05:17 AM
|
0
|
2
|
207
|
POST
|
hi @Marten , on 6080 port admin is accessible, but on 6443 it isn't and all the ports are opened.
... View more
12-07-2023
12:59 AM
|
0
|
0
|
250
|
POST
|
hello everyone we have a problem about ArcGIS server 10.9, so the deal is: our server works fine with port 6080 when we have HTTP as a protocol, but it crashes as soon as we put Http and Https as protocol. Server has problem with 6443 port machine status gets error "Error" Failed to get the status of the server machine 'server.domain'. Could not connect to the ArcGIS component at URL 'https://server:6443/arcgis/admin/local/isAppServerStarted'. The ArcGIS component on that machine may not be running or the machine may not be reachable at this time.Error: Connection refused: connect Code 500 we checked SSL certificate and it is not a problem with certificate. I would be grateful with any suggestions you have for me.
... View more
12-06-2023
04:31 AM
|
0
|
3
|
292
|
POST
|
Thanks Jeffry, you gave me right direction, i simply change projection of clicked point and it works fine. Thanks Working code: var beforeLandslideUrl =
"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
var beforeLandslideLayer = new ElevationLayer({
url: beforeLandslideUrl
});
view.on("click", function(event) {
var xyztext = document.getElementById("xyzcheckbox");
if(xyztext.checked == true){
// Query both elevation layers for the elevation at the clicked map position
let sr1 = new SpatialReference({ wkid: 32638 });
var position = event.mapPoint;
let projectedPoints = projection.project(position, sr1);
console.log(projectedPoints);
var queryBeforeLandslide = beforeLandslideLayer.queryElevation(position);
// When both query promises resolve execute the following code
promiseUtils
.eachAlways([queryBeforeLandslide])
.then(function(results) {
var posBeforeLandslide = results[0].value.geometry;
document.getElementById('xspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2);
document.getElementById('yspan').innerHTML = "Y: " + posBeforeLandslide.y.toFixed(2);
document.getElementById('zspan').innerHTML = "Z: " + posBeforeLandslide.z.toFixed(2);
})
}
else
{
//view.graphics.removeAll();
}
});
... View more
09-07-2023
01:24 AM
|
0
|
0
|
313
|
POST
|
Hi all, I am using worldelevation3D service to display X-Y-Z coordinates, but X and Y i want to show in WKID: 32638, SpatialReference for map i have isGCSWGS1984. To get coordinates i use this code still get different WKID coordinates: let beforeLandslideUrl =
"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
const sr1 = new SpatialReference({ wkid: 32638 });
let beforeLandslideLayer = new ElevationLayer({
url: beforeLandslideUrl,
spatialReference: sr1
});
view.on("click", function(event) {
var xyztext = document.getElementById("xyzcheckbox");
if(xyztext.checked == true){
// Query both elevation layers for the elevation at the clicked map position
var position = event.mapPoint;
var queryBeforeLandslide = beforeLandslideLayer.queryElevation(position);
// When both query promises resolve execute the following code
promiseUtils
.eachAlways([queryBeforeLandslide])
.then(function(results) {
var posBeforeLandslide = results[0].value.geometry;
// Clear graphics from previous result (if applicable)
//view.graphics.removeAll();
//alert("ზღვის დონიდან: " + posBeforeLandslide.z +", " + "x: " + posBeforeLandslide.x + ", " + "y: " + posBeforeLandslide.y)
// document.getElementById('xyzspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2)+ "; " + "Y: " + posBeforeLandslide.y.toFixed(2)+ "; " + "Z: " + posBeforeLandslide.z.toFixed(2);
document.getElementById('xspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2);
document.getElementById('yspan').innerHTML = "Y: " + posBeforeLandslide.y.toFixed(2);
document.getElementById('zspan').innerHTML = "Z: " + posBeforeLandslide.z.toFixed(2);
})
}
else
{
//view.graphics.removeAll();
}
});
... View more
09-06-2023
04:46 AM
|
0
|
2
|
396
|
POST
|
Hi guyz, I try to get JSON data from GIS server using PHP, but i couldn't, i use this code: <?php
$curl= curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_URL, 'http://127.0.0.0:6080/arcgis/rest/services/Water_Incidents/GWP_WATER_2023/FeatureServer/0/query?where=1%3D1&objectIds=&time=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&gdbVersion=&historicMoment=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=xyFootprint&resultOffset=&resultRecordCount=&returnTrueCurves=false&returnExceededLimitFeatures=false&quantizationParameters=&returnCentroid=false&timeReferenceUnknownClient=false&sqlFormat=standard&resultType=&featureEncoding=esriDefault&datumTransformation=&f=json');
$res = curl_exec($curl);
curl_close($curl);
$jo = json_decode($res);
echo $jo->features;
?> how can i get this data any idea? Thanks
... View more
07-13-2023
06:26 AM
|
0
|
0
|
349
|
POST
|
Thanks @David_McRitchie, it works great, you saved me a lot of time ❤️
... View more
07-06-2023
05:46 AM
|
0
|
0
|
329
|
POST
|
Hi guyz, how can i make Popup movable? I am looking for simple way, not to use too much JS code, if you have any smart solution please share. Thanks
... View more
07-04-2023
11:46 PM
|
0
|
2
|
402
|
POST
|
Thank you for your reply. I will split into small pieces and add to mosaic, but how i will split still don't know.
... View more
07-04-2023
11:42 PM
|
0
|
0
|
253
|
POST
|
Hello Guyz. I have 12 GB *.ecw imaginary layer. I want to publish it on my owns server. What is best solution, publish as as one image, or make tiles and publish as tiles? Share your opinion, suggestions ,or experience please. Thank you
... View more
04-27-2023
05:42 AM
|
0
|
2
|
367
|
POST
|
Hi all, Now i am trying to make translation to my map. I just need some pointers on where to start, how to start... I thin, e.g if map main language is Georgian and when click on English, change label field and refresh featurelayer. But i do not know if it will change labels text on map, do anyone have experience if this will work? or it is better to make clone of my map and translate it? Thanks for your advices
... View more
03-31-2023
05:34 AM
|
0
|
0
|
293
|
Title | Kudos | Posted |
---|---|---|
1 | 08-22-2022 11:57 PM | |
1 | 08-31-2022 12:41 AM | |
1 | 08-23-2022 02:49 AM | |
1 | 05-10-2022 05:12 AM | |
1 | 01-13-2022 10:03 AM |
Online Status |
Offline
|
Date Last Visited |
Monday
|