Tag Info

Hot answers tagged

21

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


10

Which part of the script is actually taking up most of the time? There are about 5 other steps going on before you actually start deleting stuff. You might want to break your script down into bite-sized tests. For example, instead of creating a temporary connection file, listing a bunch of datasets, listing their contents, counting their records, and then ...


9

By "midpoint" I'm assuming you're asking about a centroid. For polygons, you'll want to cast it to an IArea object (see link for example), and then access the Centroid property. For points, you can simply get the X/Y property of the IPoint object. To get the feature, you can use various IFeatureClass methods such as GetFeature to access it using the ...


9

The trick to feedback is setting ISymbol.ROP to esriROPNotXOrPen and drawing the geometry twice, the first draw displays it, the second draw erases it. Be sure if you're using a multilayer symbol to set the ROP for each layer. public class MyTool : ESRI.ArcGIS.Desktop.AddIns.Tool { private ISymbol m_Symbol; private IPoint m_lastPoint; private ...


9

Features in the most general sense are analagous to records in computer science: In computer science, records (also called tuples, structs, or compound data) are among the simplest data structures. A record is a value that contains other values, typically in fixed number and sequence and typically indexed by names. The elements of records are ...


8

While there is no comfortable editor for label properties available yet, you can achieve the effect of label classes using "data defined labeling": This requires some data preparation, but the results should be just what you are looking for. Also of interest to you might be the new labeling tools by Sourcepole: move label tool … move text labels to a ...


8

Here's how I would do it: Make sure your data are in an appropriate projected coordinate system. Add a new Double field to the attribute table called Area. Run field calculator on this new field with the expression: !shape.area! and Python as the parser. Run Summary Statistics, performing COUNT on the Name field, and MAX on the Area field we added in step ...


8

You can unselect features with unselect and unselectAll methods of SelectFeature control: selectControl = new OpenLayers.Control.SelectFeature(vectorLayer); ... map.addControls([selectControl]); selectControl.activate(); // unselect any specific feature... selectControl.unselect(vectorLayer.features[0]); // ...or all features selectControl.unselectAll(); ...


8

I believe you need a field in the attribute table of the feature with a data type of Double. You can call it Rotation or something. This is where the value is stored when you use the rotate tool. Then that field should show in the Symbology/Advance/Rotation drop down.


8

Sure it is. Depending on what you need: zoom to whole layer right click on layer in Layers list and first item is "Zoom to layer" zoom to selected feature(s) select feature in map and click on icon "Zoom to selection" in the main toolbar or right click on layer in layers list and choose "Open Attribute Table" (there is also icon in the main ...


7

Personally I'd very much welcome functionality and ease of use of ArcGIS Network Analyst extension.


7

High quality map production: it's possible with FOSS, but a bunch of extra work.


7

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


7

I know this is old but I was looking for the same as I don't have ArcInfo for the FeatureVerticesToPoints tools. After using Search cursor solution above I went forward to simplify the code and found that using NumPy Arrays in the Data Access Module a simple and very quick script could be produced. I'm using this as a script tool. Note: The key is the ...


7

Few options. Some crazier :-) than others. The basic strategies are Cluster features Hide/move the top feature Send the click through the top feature ==> Turn on feature clustering strategy Implement your own clustering algorithm, so when a new item is added or modified, your algorithm re-runs and does a nested for-loop check and n*n(-1) checks to ...


7

Yes, there is. Go to Options in the Settings menu and open the tab Map tools. Then you can set the Identify Mode. You probably want the Top down, stop at first.


7

The Feature Class to Feature Class tool is a Conversion tool. The idea is to convert a feature class in one format (e.g. shapefile) to another (e.g. geodatabase). It also allows the user to control the Field Map - i.e. which fields will be copied over. The Copy Features tool simply creates an exact copy of the input features. Note - this tool can also be ...


7

I recommend using the Select_analysis tool which will accept a where clause. arcpy.Select_analysis("C:/CGDP.shp", "C:/New.shp", ' "GDP_TOP10" = 1 ')


7

I doubt it has to do with the number of entries. I just added XY data for an Excel spreadsheet of 50000 rows by 17 columns of text of 200 characters and it exported to shapefile without a hiccup. From the error message page: 001337 : The maximum record length has been exceeded. The record length is the number of bytes used to define all the fields ...


7

There are two ways to get at the Create Features window from the Editor toolbar: 1) Start Editing. Right-click on toolbar and select "Editor" 2) In the editor toolbar: Editor > Editing Windows > Create Features Alternatively, the right most button on the editor toolbar:


7

In Windows explorer copy and paste the following location in the address bar and replace username with your username on the machine with the arcGIS install on it.: C:\Users\username\AppData\Roaming\ESRI\Desktop10.1\ArcMap\Templates Delete normal.mxt (your mxd template) this will restore you mxd to it stock/original format with all your toolbars and windows ...


7

The term spectral signature refers to the relationship between the wavelength (or frequency) of electromagnetic radiation and the reflectance of the surface. The signature is affected by several things including the material composition and structure. Some parts of the EMR spectrum, such as the microwave region, are more sensitive to surface structure than ...


6

Assuming you don't want to do this programmatically and with as little fuss as possible... At least at 9.3, ArcMap has an 'Add XY Coordinates' tool (under the Data Management -> Features toolbox). You can run this, which will add a field for the X & Y components of the point coordinate. You can open the attribute table of the layer and export (using ...


6

What about simplifying geometries? http://www.bostongis.com/postgis_simplify.snippet http://stackoverflow.com/questions/1849928/how-to-intelligently-degrade-or-smooth-gis-data-simplifying-polygons Or maybe a combination of WFS, WFS with simplified features and WMS?


6

GeoServer provides a user setting to control the number of decimal places in the geometries which was put in there to speed up WFS serving. Also make sure that the server is compressing the output only if your client can efficiently uncompress it. Finally I've heard good things about tiny OWS in terms of speed.


6

In the attribute table, compute a numeric field with the Python expression !shape.getpart(0).count! The triangles will all have values of 4 (three vertices plus a duplicate of the first one to close the polygon). The islands almost surely will have more than 4: select them based on this count and delete them, or (more safely) set the layer's definition ...


6

You can use the Erase Tool in ArcToolBox. According to ESRI website : "The Erase tool is used to perform overlay analysis on feature classes. This tool creates a feature class from those features or portions of features outside the erase feature class." Have a look at this webpage, they have really nice explanations. To do an "Erase" using a Basic level ...


6

you can use the export (multiple). In ArcCatalog... Just right click on the database and choose "export to shapefile (multiple)" If you do it at the database level you will see everything in the database in the tool listed (there is a remove button if there are a few you don't want). If you do it at the feature dataset level you see everything in ...


6

The event is OnChangeFeature.


6

Matt: if the features have common attributes, you can theme them on those attributes. Check Properties > Style and choose Categorized or Rule-based and play around with the settings there.



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