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

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

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

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 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

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


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

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

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

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

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


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.


1

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


1

Ok, I figured out how to do this. As Stefan suggested, I had to add a couple of parameters to the URL: geometry (value = e.g. 639739.5,7598259.3) geometryType (value = esriGeometryPoint) spatialRel (value = esriSpatialRelWithin) Here is an example call: ...


1

The URL that you provide in your question is to a map service that will only return an image for display. To perform analysis you will need to use a feature service instead. As an introduction to doing this there is an Esri blog entitled Quick Tips: Consuming Feature Services with Geoprocessing: Do you work with Feature Services? Do you want to use ...


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

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), ...


1

I would have used the code given at this ticket: http://trac.osgeo.org/openlayers/ticket/3661. That way you can get the data on the fly, and show it in your OpenLayers map.


1

It sounds like you may be wanting to perform a graphic clip of a data frame containing the map service you mention, by using a selected polygon from a feature class. To do this take a look at the Clip Options on the Data Frame tab of your Data Frame's Properties. There is online help on Clipping the Data Frame available here.


1

A FeatureLayer ends with a digit, which is more of an array concept. my/service/url/points/here vs. my/feature/url/points/here/0 The first url points to a service containing anywhere from 1 to X Features. Whereas the second url points to a specific Feature inside of that service. Hope that helps...



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