Tag Info

Hot answers tagged

4

There are some best practices listed here: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Authoring_feature_services/009300000021000000/


3

Regarding your question as to whether you can edit a feature layer using the REST API, the answer is yes. See the Apply Edits section of the REST API for documentation on how do this this. However, if it's only the status of the alarms which is changing every 15 minutes, you could make the change purely within the web map (without needing to change the ...


3

Most companies actually seem to use dual range address calculators (At least in my experience the results are consistent with that behavior). Basically each uninterrupted strip of road has a range, or multiple ranges of numbers, on either side that specify the maximum street number and minimum street number. One side has odd and the other usually has even. ...


3

After 2015-Jul-14 The situation is much improved. The organisation admin can create a group with Members can update items permission. This removes the need for shared login credentials and/or giving all editors organisation-wide admin privileges*, while also making group permissions answer** viable for public maps. The new recommended practice is: ...


3

the best way to get an idea of what you need to do in your javascript app to interact with ArcGIS Server or ArcGIS Online services successfully is to play around with the REST endpoint for a particular operation interactively and snoop the web traffic to see what requests you are sending. in this case, the syntax you need would look something like this ...


3

The URL passed to esri.layers.FeatureLayer needs to be for a specific layer. Your code points to the root of the feature service. To fix this, append the layer index of the layer the URL. For instance, in this feature service, the rivers layer is layer 1. To create a feature layer using this layer, you would use this url: ...


3

It sounds like you want to be Drawing features to show quantity by category for which the online help is here.


3

I don't think feature services display labels. You need to use a map service instead or create labels yourself with graphics. This was the case with 10.0 I'm not sure if anything changes at 10.1. If you need the capability of feature services just add an additional map service layer just with labels displayed.


3

As Vince pointed out in a comment - you could theoretically write code to clip a map/feature service. But that would probably be a lot of custom work. You wouldnt as much be extending the Clip and Ship tool as you'd be writing a custom extraction of JSON from map services. Generally the clip and ship work flow is comprised of 2 services: GP + Map. They both ...


3

The ArcGIS documentation actually has pages titled "What is a feature service" and "What is a map service", the text of which is quoted verbatim here -- Feature Service: Feature services allow you to serve features over the Internet and provide the symbology to use when displaying the features. Clients can execute queries to get features and perform ...


2

This is what a POST request to applyEdits looks like: In the headers: Content-type:application/x-www-form-urlencoded POST body: ...


2

Use Selection mode for the feature layer. Set your symbol using Layer.setSelectionSymbol(symbol). If you have a complex symbology, set the renderer instead and leave the selection symbol blank. There are two ways to go about the next part. Method one: Use the checkboxes to composite a complex query. For example, if each feature has a unique identifier ...


2

(edited 5/7/15) Not ideal, but achieves collaborative editing and public viewing/not editing. make editors administrators under the organization make layer non-editable but share publicly administrators can "add as editable layer" for web admin and do disconnected/syncronized editing on Desktop I was not able to recreate the correct permissions using ...


2

I have set up groups. One group is an edit group. In that group the editable map (with feature service) is shared. The group is private and I invite only the editors to it. Another group is for non-editors and I invite other members to it. In that group my map service (non-editable) webmap is shared. It works a bit like assigning permissions and roles.


2

The solution: the feature layer I was trying to edit participates in a non-versioned network dataset => not editable. In order to edit layers participating in network datasets, the dataset must be versioned.


2

To create a feature layer, you need access to the layer's REST endpoint. This can be on the web, or on your localhost - see The Services Directory and the REST API. See the Feature Layer help page to get started with creating a feature layer using the ArcGIS Server JS API - the URL you use can point to your local machine.


2

Your layerUrl is similar at: http://services1.arcgis.com/cFi1BRRsYB2fYqCl/arcgis/rest/services/NameService/FeatureServer Just add the token to Url: ...


2

A feature server serves individual layers (aka features) as structured text (xml or json) a mapserver serves maps as images (png - jpeg - gif)


1

A bit belated, but at version 3.10 the ArcGIS API for JavaScript added internal logic which simplifies displaying information from a related table in a popup. https://developers.arcgis.com/javascript/jssamples/popup_relatedrecords.html https://developers.arcgis.com/javascript/jshelp/intro_popuptemplate.html


1

The Geocortex Essentials Manager application tries to access an ArcGIS Server REST endpoint directly, because the Essentials REST application would also try to do that. For most user interaction, your browser will make a direct connection to your resources. However, when you print the map, generate a report, or export a map image (among other things), ...


1

I found this layer works well. https://services.arcgis.com/HuLaMAzbcrbWfOM8/ArcGIS/rest/services/Outline_of_world_countries/FeatureServer/0 field name is Country and the countries are their English names. Ie: Germany and Spain.


1

If you wanna to get only 1 record try use TOP statement. ie: OBJECTID IN (SELECT TOP 1 OBJECTID FROM 'customers' ORDER BY OBJECTID)) but you have note that this is bypass because TOP and LIMIT arent supported by geodatabase http://forums.arcgis.com/threads/68997-TOP-100 EDIT I digged deeper cause this subject seems to me as interesting, and I found this ...


1

Change this line flayer.applyEdits(feature,null,null); to flayer.applyEdits(null, [feature], null);


1

The Linked pdf said ...the best way to understand the JSON format is to look at examples from ArcGIS Online On searching for ArcGIS web map JSON format, I found that ESRI does have some limited documentation for this JSON format here. Though the documentation itself is sparse, the samples are more than helpful. The relevant sample in my case was: ...


1

Image service is a type of service where a raster dataset as published and can be accessed by a client. An image service can be cached or dynamic. In the case of Landscape Layers, as you have noticed, they are dynamic image services (at least those I have previewed). This means that you have access to the symbology settings (so you can change a layer ...


1

Check out the FeatureLayer's onBeforeApplyEdits event. You should be able to get the updated feature, then edit whatever attributes you need before it gets saved. Feature Layer - onBeforeApplyEdits dojo.connect(monumentFL, "onBeforeApplyEdits", function( // updates dojo.forEach(u, function (update) { debugger; ...


1

Answering my own question. For hundreds of points the best practice is to use SQL and ArcPy. Only use rest in case you don't have access to the server. I end up using ArcPy. Note that you will need to use arcpy.env.workspace and point to the SDE file, everything else is via arcpy.da.InsertCursor.


1

You might also look at the Uploads functionality of the GP services in 10.1 - http://resources.arcgis.com/en/help/rest/apiref/uploads.html. This is the core functionality of the Server 10.1, so you don't have to develop a new piece of functionality.


1

Your main task is to upload the user given shapefile into your server and append it to your SDE Geodatabase. I'm not sure if actually showing the features to your user on the web map is an actual requirement, so I'll give you two ways of doing this. If You need to show the geometries on the map, then there are two main parts to your User Case: Upload ...


1

The webmap returns a featureLayer already instantiated. I haven't tried changing the mode to instantiate a featureLayer with mode selection, but it makes sense that you lose symbology and popups because you set those when instantiating. Solution: I have queried (queryTask) against the featureLayer url based on user drawn polygon (or user click, hover, etc), ...



Only top voted, non community-wiki answers of a minimum length are eligible