Tag Info

Hot answers tagged

19

Vector data can have properties stored at two levels. File level or Layer level. For feature class (a type of vector data), file level information is stored in a geodatabase. This consists of properties like feature class geometry, attribute table, assigned subtypes and domains, a coordinate system, etc:. All these file level properties make up the actual ...


9

We may get more technical distinctions offered as answers, and I welcome them, but the way I think about this distinction is: an in_memory workspace involves temporarily storing a spatial dataset (akin to a file geodatabase but not quite the same) in memory. This speeds up geoprocessing. Make Feature Layer creates a layer from a spatial dataset so that it ...


6

These terms specifically relate to the ESRI software and data schemas. A feature class is a set of common geographic features, for example roads, or parcels, or land use, as they are stored in a geodatabase or shapefile, or other storage format. Here is the help file on Feature Class Basics. A feature layer is the representation of a feature class after ...


6

In short, it's not optimal, but it might not be too bad either... On (3) - as long as you always specify the specific fields you want, the only extra "hit" should be on the initial request for the service metadata (which will be a bit larger due to the many fields). If you know the "set" or "theme" of grouped fields your app will use (out of the 500), you ...


6

There are a couple of reasons why you want to reference Feature Layers in ModelBuilder, as opposed to Feature Classes. First it is helpful to understand the differences. "Feature Classes" as simply references to the raw data, in its entirety. One simple example of this where the FC is a shapefile on disk. "Feature Layers" are references to an ...


5

It sounds like you've reached your browser's memory limits in regards to the data returned by arcgis server 10.1. The maximum number of records returned by WFS and ArcGIS Feature Layer depend on how it was set up by the server (default is 1000 for anything running through ArcGIS Server). You can reconfigure it to send more, but then you run into poor browser ...


5

Incorporating temporary layers into your models also decreases processing time. From a processing standpoint, it is much more efficient writing to memory compared to writing to disk. Similarly, you can write temporary data to in_memory workspace, which is also more computationally efficient. Many operations in ArcGIS require temporary layers as inputs. ...


4

Use a renderer. In your case, a SimpleRenderer is probably ideal. There are several samples that demonstrate this...the Unique Value Renderer sample is one.


4

Try making a REST delete features call with a where clause "1 = 1" or something similar.


4

what it means as conceptual, you can check out GIS Dictionary from ESRI, here. Feature Class In ArcGIS, a collection of geographic features with the same geometry type (such as point, line, or polygon), the same attributes, and the same spatial reference. Feature classes can be stored in geodatabases, shapefiles, coverages, or other data formats. ...


4

Have you tried clearing the ArcGIS server rest cache? http://blogs.esri.com/esri/arcgis/2010/10/08/clearing-the-arcgis-services-directory-cache-the-easy-way/ Also you cleared the browser cache/tried a different browser?


4

You are doing two things going on here. You have a click handler, that, when there is a click on the map, it creates a new selection using the point geometry from the click. That handler is toggled on and off by your clickConnect function. But you also have a draw handler, that on draw end creates a new selection using the geometry from the drawing toolbar. ...


3

I've managed to solve this problem using this as a reference. Basically, I looped all of the Polyline graphics (that's the only type the application is interested in) included in the FeatureLayer and do a union operation on each of the graphic's extent. Below is my version. function featureUpdateEnd(error, info) { var localExtent; if ...


3

In simple terms ... I try to think of a feature class being a spatial dataset, i.e. not much more than x,y coords and attributes on disk, while a layer applies symbology (and many other lesser known properties) to a spatial dataset. A layer does not store data, just symbology and a link to where the data is located on a disk somewhere. Feature classes ...


3

I think I found the answer, which was to insert a short pause before adding the layers. //Add the layers, after pausing briefly setTimeout(function(){ console.log("pausing a few seconds"); map.addLayers(mapLayers); },1000); After defining the layers from JSON in the loop, I'm running some other operations on the layers. I haven't had time to debug ...


3

Use featureLayer.selectFeatures() with, as Kirk suggested, a where clause that will return all your features. Once you have all your features, pass them to applyEdits() as the deletes.


3

'featureCollection' expects a 'features' attribute which is a FeatureSet, and not a featureSet attribute like you are doing: var featureCollection = { layerDefinition: { "geometryType": "esriGeometryPolyline", "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID" }, { ...


3

If you can't process the data beforehand, another method may be to add the layers as separate FeatureLayers in the map, and use the geometry of the selected polygon to query the point layer. When the selection is complete, do a count of the features using FeatureLayer::getSelectedFeatures and use that count to provide information in your popup. Here is a ...


3

Check out this post I just wrote on selecting a polygon and highlighting it. Once you have the polygon that was clicked on, you simply do a query with intersection. ArcGIS JS Api: Click on feature, create a particular new map? You could substitute below into the mapOnClick(evt) function above... var queryTask = new esri.tasks.QueryTask(YourServiceName), ...


3

With featureLayers I think you need to reference a single layer in a map service or feature service. So, instead of: http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer try http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer/0 change the "0" at the end to match the layer you are interested in.


3

Sounds like you want to select features and not clear the selection graphics layer each time you click a feature. If you're using a FeatureLayer, you would use SELECTION_ADD instead of SELECTION_NEW to add the selected features as you click on them.


3

You need to set the renderer for your layer. Since you want to use the same symbology for all, you will have to use a ISimpleRenderer Using an IFillSymbol, you can set the border and the color for your polygons. Set this as the symbol for your ISimpleRenderer and set that as the FetureRenderer on your IFeatureLayer. Also have a look at this article: How to ...


3

arcpy.management.MakeFeatureLayer doesn't make a layer file, it makes a layer in memory. ExportReport requires a layer object. Combining the two, you can do this: # Make the layer arcpy.management.MakeFeatureLayer("SOILFC", "soil_layer") # Get reference to layer lyr = arcpy.mapping.Layer("soil_layer") # Do the magic part arcpy.mapping.ExportReport(lyr, ...


3

The answer is Yes. Have a look at this sample: Generalized Data. If you have a look at the Original Services, the Feature service is wkid:4267, while the map and the tiled map service are in wkid:3857/102100. If you have a look at the service call using Firebug, you will see that the data is requested in wkid 102100:


3

I think you just need to refresh the Table of Contents. Try something like this: IMxDocument pDoc = (IMxDocument)pApp.Document; for (int i = 0; i < pDoc.ContentsViewCount; i++) { pDoc.ContentsView[i].Refresh(null); }


3

She doesn't want to publish a feature service, She is just trying to publish A service. I passed through the same exact situation with my ArcGIS for Server 10.2 trial version. Everything was going fine and I was able to publish and read my services. One day, I tried to connect to the ArcGIS for Server Manager and there were no services. I bet if you tried to ...


3

You are looking for the in_memory workspace. Though the files are generally relased upon closure of the application, it's generally a good idea to remove it from memory by running Delete. If you are using this in a loop, you'll want to delete the temporary files before creating a new one with the same name. At any rate, it saves memory. For example: ...


2

It looks like your spatial reference doesn't match your coordinates. Wkid 4326 == WGS84 which is lat/long but your coordinates are definitely not lat/long. I haven't tested your code but if fixing the spat ref issue doesn't work I'll start testing some stuff. Edit: I played around with the code you posted and it looks like you need to specify an ObjectID ...


2

Actually I think I figured it out. Override the standard featureLayer onClick behaviour using: dojo.connect(featureLayer1, "onClick", function () { map.infoWindow.resize(width1,height1) }); dojo.connect(featureLayer2, "onClick", function () { map.infoWindow.resize(width2,height2) });


2

According to Kelly Hutchins from the JS team at Esri, the above is correct - it is necessary to use a featureLayer to access the time-aware properties.



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