Tag Info

Hot answers tagged


Assuming you have a reference to the feature class pFC: ERSI.ArcGIS.Geometry.ISpatialReference pSP = ((ESRI.ArcGIS.GeoDatabase.IGeoDataset)pFC).SpatialReference; coord=pSP.FactoryCode coord now contains the code for the coordinate system. Note that not all projected coordinate systems are defined in esriSRProjCSType, there are more constants ...


You can use the Select (Analysis) tool to select a subset of features based on a SQL expression and export the selected results to a new feature class. In this case, I used the following expression: SHAPE_Area > 100 Alternatively, you can perform the same action directly on the attributes using the following workflow: Open attribute table > Select ...


In order to solve your problem: Create a FileGeodatabase In the FileGeodatabase create a FeatureDataset Import the shape in the FeatureDataset In the FeatureDataset create a Topology In the wizard choose next and in the Rules page click Add Rule Select "Must Not Overlap" or "Must Not Have Gaps", check "Show Errors" and click OK. Complete the wizard and ...


It is really quite straightforward to obtain a Pearson's correlation coefficient. Given a population assumption: xBar = mean(x) yBar = mean(y) xyBar = mean( (x * y) ) covariance = xyBar - xBar * yBar correlation = covariance / ( sd(x) * sd(y) ) Unless your points represent a true sample (e.g., field data), there is no need to subsample. This equation ...


Not sure by your question if you want the map spatial reference or a layer. For a map you may use the IMap.SpatialReference Property.


I had the same issue and was able to solve it. If You have large number of layers or domains with many values then service may reach "Maximum Number of Coded Domains" parameter maximum value. Go to "ArcGIS server manager" "Edit service" (the one with missing domains) Open "Parameters" settings "Properties" table find the "Maximum Number of Coded Domains" ...


You would do something like this: dataset = "c:/data/landbase.gdb/Wetlands" spatial_ref = arcpy.Describe(dataset).spatialReference as per the ESRI help page here


Add the new values with the Add Values button, not the Add ALL Values button. The add ALL values button will override the existing symbology and re-add all unique values whereas the Add Values button allows you to preserve the existing symbology and add new unique values not present in the Symbol list. EDIT: Also, confirm that after importing symbology ...


You can set the scale on the fly using ArcPy's mapping module: from arcpy import mapping mxd = mapping.MapDocument(r"Some Path") df = mxd.activeDataFrame # you can also get access to all data frames through listdataframes() scales = [1500,3000,...,50000] for scale in scales: df.scale = scale # do stuff with map Hope this helps. Andrew


If you are using Data Driven Pages from ArcMap there is an option to round the best fit scale to nearest value of your choice (see below) To use this in ArcPy I would have a look at this question and answer: How to automatically generate useful scales for data driven pages in ArcGIS desktop

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