|
POST
|
I am not sure if there are any examples. They are just methods and they have been documented very well. But, If we are asking what kind of use-cases they can be used? Then, GeometryEngine can be used in lot of other cases where you want to find the relation between 2 geometries, or with the densify to increase the vertex on a geometry or clip, cut, difference and rotate methods you could modify a geometry.
... View more
02-08-2017
06:48 AM
|
0
|
0
|
3082
|
|
POST
|
That only means that you cannot project it using webMercatorUtils. You may have to use the GeometryService to get the result.
... View more
02-07-2017
10:18 AM
|
0
|
0
|
2363
|
|
POST
|
I am not sure, why you are using webMercUtils.lngLatToXY(entry.longitude, entry.latitude) This method returns Number[ ] and the Point class constructor does not take number array a parameter. whereas, lat & long is a valid parameter, you can simply create a new point like this var pt = new Point(entry.longitude, entry.latitude); Hope this was helpful.
... View more
02-07-2017
09:43 AM
|
0
|
2
|
2363
|
|
POST
|
It looks like Melita Kennedy is correct, the coordinates you have shared looks to be in 4326. While creating the point do not pass the spatial-reference parameter, it will initialize it in 4326. Then you can use the GeometryService or webMercatorUtils to project the geometry to 102021 system.
... View more
02-07-2017
07:43 AM
|
1
|
4
|
2363
|
|
POST
|
This blog itself covers lot of methods, like within, union, overlaps, intersect etc. GeometryEngine part 3: Overlay analysis | ArcGIS Blog It would be useful to understand what exactly you are looking for.
... View more
02-07-2017
06:52 AM
|
1
|
4
|
3082
|
|
POST
|
You can use the security configuration available in ArcGIS Server. Editing permissions in Manager—ArcGIS Server Administration (Windows) | ArcGIS Enterprise Is this what your are looking for?
... View more
02-07-2017
06:06 AM
|
1
|
5
|
1260
|
|
POST
|
It works fine, here is a sample. Can you share some code to see how you are using it. <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Measure Tool</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/themes/calcite/dijit/calcite.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/themes/calcite/esri/esri.css">
<style>
html,body {
height:100%;
width:100%;
margin:0;
}
body {
background-color:#FFF;
overflow:hidden;
font-family:"Trebuchet MS";
}
#map {
border:solid 2px #808775;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
margin:5px;
padding:0px;
}
#titlePane{
width:280px;
}
</style>
<script src="https://js.arcgis.com/3.19/"></script>
<script>
var map;
require([
"dojo/dom",
"esri/Color",
"dojo/keys",
"dojo/parser","dojo/on",
"esri/config",
"esri/sniff",
"esri/map",
"esri/SnappingManager",
"esri/dijit/Measurement",
"esri/layers/FeatureLayer",
"esri/renderers/SimpleRenderer",
"esri/tasks/GeometryService",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"esri/dijit/Scalebar",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/TitlePane",
"dijit/form/CheckBox",
"dojo/domReady!"
], function(
dom, Color, keys, parser, on,
esriConfig, has, Map, SnappingManager, Measurement, FeatureLayer, SimpleRenderer, GeometryService, SimpleLineSymbol, SimpleFillSymbol
) {
parser.parse();
//This sample may require a proxy page to handle communications with the ArcGIS Server services. You will need to
//replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic
//for details on setting up a proxy page.
esriConfig.defaults.io.proxyUrl = "/proxy/";
esriConfig.defaults.io.alwaysUseProxy = false;
//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications
esriConfig.defaults.geometryService = new GeometryService("https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
map = new Map("map", {
basemap: "satellite",
center: [-85.743, 38.256],
zoom: 17
});
var sfs = new SimpleFillSymbol(
"solid",
new SimpleLineSymbol("solid", new Color([195, 176, 23]), 2),
null
);
var parcelsLayer = new FeatureLayer("https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
parcelsLayer.setRenderer(new SimpleRenderer(sfs));
map.addLayers([parcelsLayer]);
//dojo.keys.copyKey maps to CTRL on windows and Cmd on Mac., but has wrong code for Chrome on Mac
var snapManager = map.enableSnapping({
snapKey: has("mac") ? keys.META : keys.CTRL
});
var layerInfos = [{
layer: parcelsLayer
}];
snapManager.setLayerInfos(layerInfos);
var measurement = new Measurement({
map: map
}, dom.byId("measurementDiv"));
measurement.startup();
on(measurement, "measure-end", function(evt){
alert("isSelfIntersecting: " + evt.geometry.isSelfIntersecting(evt.geometry));
});
});
</script>
</head>
<body class="calcite">
<div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline',gutters:false"
style="width:100%; height:100%;">
<div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div style="position:absolute; right:20px; top:10px; z-Index:999;">
<div id="titlePane" data-dojo-type="dijit/TitlePane" data-dojo-props="title:'Measurement', closable:false, open:false">
<div id="measurementDiv"></div>
<span style="font-size:smaller;padding:5px 5px;">Press <b>CTRL</b> to enable snapping.</span>
</div>
</div>
</div>
</div>
</body>
</html>
... View more
02-06-2017
01:15 PM
|
1
|
2
|
1046
|
|
POST
|
Can you please share the result of the line console.log(entry.platformId + "," + entry.latitude + "," + entry.longitude
+ " at index " + i );
... View more
02-06-2017
07:58 AM
|
0
|
6
|
2363
|
|
POST
|
I agree with you, I have test this behavior in the sandbox, changing the directShadowEnabled has not impact on the shadow. whereas, updating cameraTrackingEnabled does impact how it behaves. If it is true, the shadow moves along with the move. it the value is false, it is static related to date and time.
... View more
02-01-2017
06:45 AM
|
0
|
0
|
3960
|
|
POST
|
Hello Jerry, I am not able to understand the objective of a example. on.once is a method in dojo, used to listen to an event only once. it would be similar to code below. var handle = on(map, "click", function(evt){
...
handle.remove();
} It does not matter, which event. you can use on.once on any event, which you would like to listen just once.
... View more
01-31-2017
12:06 PM
|
1
|
3
|
1364
|
|
POST
|
I have not worked much with related tables, but if you are creating a FeatureLayer for a stand-alone table and try to applyedit it should work, similar to your esriRequest. If you note, in the request for "editing related tables", you are sending a layer id for the related table and not for the FeatureLayer. A FeatureLayer can be spatial or non-spatial, so if create an instance of FeatureLayer for your related table, you should be able to apply edits, similar to other feature layers. Regarding creating graphic objects, you could use the queryRelatedFeatures() or simply create a new graphic object with no geometry and add the attributes(with object id). If you could setup as Jsbin, I could take a look at the issues you are facing.
... View more
01-31-2017
10:25 AM
|
2
|
1
|
3352
|
|
POST
|
The apply edits for FeatureLayer in JS api is different then the REST api. As Ken suggest, the FeatureLayer.applyEdits is expecting an array of Graphics (which contains valid objectids) and not just object id as integer array. There is no restricting in using the esriRequest to access the REST api directly, however, if your are using the JS api, you are required to provide valid parameters as mentioned in the api documentation.
... View more
01-31-2017
09:36 AM
|
0
|
3
|
3352
|
|
POST
|
Mikael, I am not sure what you are trying to achieve, but from the code I understand, you are get the add graphics and then based on query, you are changing the geometry of the graphic and trying to update it. Is that correct? If it is, the main issue, using the "before-apply-edit" is that, the graphic which was passed to adds would not contain the unique ObjectID when it was inserted into the database. so the required value to identify the feature to update is missing. You may want to do the above action once the updates are completed. i.e. use, "edits-complete" event instead where you will get the features with unique object id assigned to the feature. Hope this was helpful.
... View more
01-31-2017
07:35 AM
|
1
|
2
|
1828
|
|
POST
|
Hello Mathan, Could you be more specific about, what issues you are have and what you need from us? Regarding the objectid property, it is working as expected. Since, you are passing one id, it is returning the record with that object id, in you case OBJECTID = 2. ~Thejus
... View more
01-31-2017
05:49 AM
|
0
|
1
|
873
|
|
POST
|
If you look at the console there is an error "ReferenceError: fill is not defined". While defining the popup, a variable fill is used which is not defined.
... View more
01-27-2017
12:25 PM
|
1
|
0
|
660
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-29-2024
02:34 AM
|