POST
|
you may try the request into Postman and then you can produse the required code
... View more
12-05-2022
03:15 AM
|
0
|
0
|
697
|
POST
|
what did you mean when you say the expand is turned off?
... View more
02-15-2021
07:16 AM
|
1
|
1
|
2959
|
POST
|
Hi I changed the following function function filterBySeason(event) { const selectedSeason = event.target.getAttribute("data-season"); var markedCheckbox = document.getElementsByClassName('checkboxCL'); var queryWhere=[]; for (var checkbox of markedCheckbox) { if (checkbox.checked) queryWhere.push("'"+checkbox.value+"'"); } floodLayerView.filter = { where: "provinsi in(" + queryWhere.toString() + ")" }; alert("provinsi = in(" + queryWhere.toString() + ")"); } and the check boxes <input type="checkbox" value="SUMATERA BARAT" class="checkboxCL" id="flexCheckDefault" name="selectSumbar[]" data-season="SUMATERA BARAT"> The idea is to parse all the check boxes and get the values from the selected. Then create a where clause including all the selected values.
... View more
02-15-2021
12:05 AM
|
1
|
2
|
2988
|
POST
|
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> <title>Filter features by attribute | Sample | ArcGIS API for JavaScript 4.18</title> <link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/light/main.css" /> <script src="https://js.arcgis.com/4.18/"></script> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } #seasons-filter { height: 100px; width: 180px; visibility: hidden; } .season-item { width: 100%; padding: 12px; text-align: center; vertical-align: baseline; cursor: pointer; height: 50px; } .season-item:focus { background-color: dimgrey; } .season-item:hover { background-color: dimgrey; } #titleDiv { padding: 10px; } #titleText { font-size: 20pt; font-weight: 60; padding-bottom: 10px; } </style> <script> require([ "esri/views/MapView", "esri/Map", "esri/layers/FeatureLayer", "esri/widgets/Expand" ], function ( MapView, Map, FeatureLayer, Expand ) { let floodLayerView; const layer = new FeatureLayer({ url: "https://gis.dukcapil.kemendagri.go.id/arcgis/rest/services/Usia_Produktif_2020_Prov/MapServer/0", outFields: ["*"] }); const map = new Map({ basemap: "gray-vector", layers: [layer] }); const view = new MapView({ map: map, container: "viewDiv", center: [116.6333769, -0.6171669], zoom: 3, }); const seasonsNodes = document.querySelectorAll(`.season-item`); const seasonsElement = document.getElementById("seasons-filter"); // click event handler for seasons choices seasonsElement.addEventListener("click", filterBySeason); // User clicked on Winter, Spring, Summer or Fall // set an attribute filter on flood warnings layer view // to display the warnings issued in that season function filterBySeason(event) { const selectedSeason = event.target.getAttribute("data-season"); var markedCheckbox = document.getElementsByClassName('checkboxCL'); var queryWhere=[]; for (var checkbox of markedCheckbox) { if (checkbox.checked) queryWhere.push("'"+checkbox.value+"'"); } floodLayerView.filter = { where: "provinsi in(" + queryWhere.toString() + ")" }; alert("provinsi in(" + queryWhere.toString() + ")"); } view.whenLayerView(layer).then(function (layerView) { // flash flood warnings layer loaded // get a reference to the flood warnings layerview floodLayerView = layerView; // set up UI items seasonsElement.style.visibility = "visible"; const seasonsExpand = new Expand({ view: view, content: seasonsElement, expandIconClass: "esri-icon-filter", group: "top-left" }); //clear the filters when user closes the expand widget seasonsExpand.watch("expanded", function () { if (!seasonsExpand.expanded) { floodLayerView.filter = null; } }); view.ui.add(seasonsExpand, "top-left"); view.ui.add("titleDiv", "top-right"); }); }); </script> </head> <body> <div id="seasons-filter" class="esri-widget"> <div class="form-check"> <input type="checkbox" value="ACEH" class="checkboxCL" id="flexCheckDefault" name="selectAceh[]" data-season="ACEH"> <label class="form-check-label" for="flexCheckDefault"> ACEH </label> </div> <div class="form-check"> <input type="checkbox" value="SUMATERA UTARA" class="checkboxCL" id="flexCheckDefault" name="selectSumut[]" data-season="SUMATERA UTARA"> <label class="form-check-label" for="flexCheckDefault"> SUMATERA UTARA </label> </div> <div class="form-check"> <input type="checkbox" value="SUMATERA BARAT" class="checkboxCL" id="flexCheckDefault" name="selectSumbar[]" data-season="SUMATERA BARAT"> <label class="form-check-label" for="flexCheckDefault"> SUMATERA BARAT </label> </div> <div class="form-check"> <input type="checkbox" value="SUMATERA SELATAN" class="checkboxCL" id="flexCheckDefault" name="selectSumsel[]" data-season="SUMATERA SELATAN"> <label class="form-check-label" for="flexCheckDefault"> SUMATERA SELATAN </label> </div> </div> <div id="viewDiv"></div> </body> </html>
... View more
02-15-2021
12:02 AM
|
1
|
0
|
2988
|
POST
|
No it is installed only for the Portal' s Web Adaptor (Instance portal, in my case). There are 2 web adaptors configured, one foe the Portal component and one for the GIS Server. The Patch according to the description is for the Portal component.
... View more
12-21-2020
01:05 AM
|
2
|
1
|
2532
|
POST
|
Hi, if run the Patch Finder you will see that the patch installed on the Portal's Web Adaptor http://downloads.esri.com/Support/downloads/other_/PatchFinder.exe According to the patch description I think this is the case https://support.esri.com/en/download/7855
... View more
12-21-2020
12:38 AM
|
2
|
1
|
2537
|
POST
|
navigate to the following path https://<domain name>/portal/sharing/rest/portals/self (sign in first) over there you will find the allowedOrigins parameter here supported also the Update operation in case you want to change something.
... View more
12-14-2020
11:55 PM
|
0
|
0
|
620
|
POST
|
Also how to use ArcGIS Javascript API with Angular see here https://github.com/Esri/angular-cli-esri-map
... View more
12-11-2020
12:02 AM
|
0
|
0
|
1953
|
POST
|
So on the web app you can use the ArcGIS Javascript API (https://developers.arcgis.com/javascript/) in order to create a map and the editing functionality. The best way is to use an ArcGIS Enterprise in order to Enable and create a Geodatabase on the SQL Server (https://pro.arcgis.com/en/pro-app/tool-reference/data-management/enable-enterprise-geodatabase.htm) and create the appropriate web services (Feature services) for the web editing (https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-feature-service-.htm) Finally on the Web App you can use the out of the box Editing Widget (https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_simpletoolbar) or create custom editing tools (https://developers.arcgis.com/javascript/3/jssamples/ed_feature_creation.html) The geometries stored directly to the Geodatabase (SQL Server in your case) If your case is not to apply the ArcGIS Enterprise Solution on the system the only part you can use is the ArcGIS Javascript API to create the map and the editing tools, only for the drawing tools (https://developers.arcgis.com/javascript/3/jssamples/toolbar_draw.html). After that from the result graphic you can get the geometry (https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#geometry) and from the geometry (depends from the geometry type, point line, polygon) you can get the coordinates (vertices) For point (https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#x) For Line (https://developers.arcgis.com/javascript/3/jsapi/polyline-amd.html#paths) For Polygon (https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#rings) Also you can convert the geometry to Json. A sample is here: if (graphic.geometry.type==="point"){ graphic.geometry.x graphic.geometry.y ……. if (graphic.geometry.type==="polyline"){ var RG = graphic.paths[0] var countVertex =0; for (var im = 0, ilm = RG.length; im < ilm; im++) { countVertex = countVertex + 1; var vertex = graphic.getPoint(0,im); …. …. } ….. … if (graphic.geometry.type==="polygon"){ var RG = graphic. rings[0] var countVertex =0; for (var im = 0, ilm = RG. length-1; im < ilm; im++) { countVertex = countVertex + 1; var vertex = graphic.getPoint(0,im); …. …. } ….. …. At this point you only have on the client side the graphic and the vertices. With out ArcGIS Enterprise depends to you to implement the way you have to store the data on the database For this case see the Developer options you have in order to use the ArcGIS Javascript API https://developers.arcgis.com/
... View more
12-10-2020
11:58 PM
|
1
|
2
|
1953
|
POST
|
Also to get the coordinates there are many ways to achieve this. 1. Using Geometry Calculation from ArcGIS Pro (https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-geometry-attributes.htm) 2. Use python tools (https://pro.arcgis.com/en/pro-app/arcpy/data-access/featureclasstonumpyarray.htm) 3. If you are using enterprise Geodatabase with SQL and spatial functions (https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-x.htm) .....
... View more
12-09-2020
05:08 AM
|
0
|
0
|
1981
|
POST
|
what kind of client you want to use Desktop, Web, Mobile? Also what is your local database? Some answers you can find on the following help https://pro.arcgis.com/en/pro-app/help/editing/overview-of-desktop-editing.htm https://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/about-editing-in-web-applications.htm https://pro.arcgis.com/en/pro-app/help/data/databases/databases-and-arcgis.htm
... View more
12-09-2020
05:00 AM
|
1
|
4
|
1982
|
POST
|
Try to detect the error from the browser DevTools console. for example on Google Chrome pushing the F12 button from your keyboard opens the following console in your case you can select the Network Tab in order to analyze the request to your Portal when your are truing to update the Service Definition. try to add the domain and monitor the request on the Network Tab. When the error occurred something like the following expected select the updateDefinition request and get the detailed info from the response Tab. Also the same massage can be found on the ArcGIS Server Manager Logs
... View more
07-01-2020
03:20 AM
|
0
|
1
|
1321
|
POST
|
From ArcGIS Desktop when you are connected to Portal (Enterprise) you have the ability to share hosted services Publish to ArcGIS Online and ArcGIS Enterprise—Publish services | ArcGIS Desktop From ArcGIS Desktop when you are connected to ArcGIS Server (directly) you have the ability to share all the other types of services. Publish a map service from ArcMap—Publish services | ArcGIS Desktop
... View more
11-18-2019
12:00 AM
|
3
|
1
|
624
|
POST
|
when you publish the service from machine 1 where is the data hosted? From the screen shots I assume you are using a local file geodatabase and during the publish allow the Server to copy the data?
... View more
05-07-2019
11:59 PM
|
7
|
8
|
1065
|
POST
|
before sent the data with applyEdits they can execute a query using the rest end point with the notification number. See here for more information https://developers.arcgis.com/rest/services-reference/query-feature-service-.htm If a feature exist they can use the ObjectID from the Json response in order to prepare an applyEdit request for update attributes and/or shape.
... View more
05-01-2019
11:52 PM
|
0
|
0
|
622
|
Title | Kudos | Posted |
---|---|---|
1 | 04-05-2017 12:35 AM | |
1 | 02-15-2021 07:16 AM | |
1 | 02-15-2021 12:05 AM | |
1 | 02-15-2021 12:02 AM | |
2 | 12-21-2020 12:38 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|