Tag Info

New answers tagged

0

its really so slow even when i upgrade the ram


0

I am assuming that you have a Standard or Advanced license which will be needed to update the relationship feature class used by attachments. There is a Help page entitled Working with the Attachments geoprocessing tools which says: The geodatabase attachment tools offer a flexible environment for batch processing of attachments. The attachment ...


0

I don't see why radouxju's answer wouldn't work, assuming you're calculating it into a text field. It's unclear (at least to me) what the data type of the field you're calculating is. I get that T_Acres is a text field. It really shouldn't be, but that's water under the bridge. To get past this problem, how about creating a new double field called something ...


2

use the equivelant cursor without .da. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v00000039000000 ex: shapefieldname = arcpy.Describe(featureclass).ShapeFieldName sCur = arcpy.SearchCursor(featureclass, {where_clause}, {spatial_reference}, {fields}, {sort_fields}) for row in sCur: feature = row.getValue(shapefieldname) ...


1

In QGIS, by default cuts the full range of values off and only shows those in the 2-98% range. No idea why this is the default, but it is. You can change that by opening the properties window for that raster layer and going to the Style tab. In there, change "Load min/max values" to "Min / Max" and make sure "Extent" is set to "Full", also might help to ...


5

the percent symbol is not a valid value in a numeric field. If you want to see the percent symbol, you can right click on your field name, go to properties -> number fomat and choose percentage. otherwise (not recommended) you need a text field,but then you need to convert your numeric values to string (assuming that T_Acres is numeric and using the ...


0

See the Esri help file under coordinates or measures are out of bounds, which explains: A coordinate of the added feature is beyond the extents of the feature class x,y domain. Geodatabase feature coordinates must fall within the feature class x,y domain extent. The x,y domain is set when the dataset or stand-alone feature class is created. It ...


0

Check your bit depth. ArcGIS does strange things to rasters sometimes. It may have changed the radiometric resolution of the file.


1

We used to have those problems all the time but it seems pretty rare now. I assume because we are all using 10.2 now. I suggest upgrading and then trying again. If it still doesn't work submit a ticket with Esri to try to work it out. There are other threads here already that list a bunch of tricks you can do to minimize issues but I am on my phone right ...


2

There are many known issues exporting maps to vector PDF in ArcGIS. Some of these issues cannot be resolved. With ESRI's efforts directed towards ArcGIS Pro we will likely see less attention devoted to solving existing problem such as this one. You can implement some mechanism in the source map document that does not place the unwanted labels along the ...


0

I'm not a python expert so your code looks OK to me, I assume you are using a set() as a way of removing duplicates? If not and your dataset really does have only 4 rows in it then try using a list as all the examples in the ESRI help file uses lists... Before you try that I would spoof up a second dataset which YOU have created and typed in those words ...


1

Without more exact knowledge about your source route system and event overlays it is difficult to say exactly what is going on. It would appear that your route is not being created with a starting measure of 0, since negative measures should normally not be created by these tools unless those measures exist on the route. The Create Route tool can generate ...


0

This example post from the GeoNet forum is javascript-based, but it essentially accomplishes what you want to happen. However, for the case of ESRI's 'ArcObjects for .Net' API (which we can tell you are using based on the Namespaces) you should implement the IArcGISSingleSignon.GetToken method. This object's method will sign on a user to ArcGIS Online ...


0

Have you tried right clicking on your XYSites feature class and selecting "Zoom to Layer"? If you can see them, and they are not overlappign your raster coverage, you have a Projection problem.


1

I had the same problem but with rasters produced by model. After spending quite a lot of time trying to make Add to Display work I finally decided to implement arcpy script to add output raster to ArcMap data frame. I think the same can be applied in your case. My solution is derived from the one found here. So, make python script with code similar to this ...


2

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


0

Please refer the below link, seems to be that you do have some proxy issue. For accessing a secured services you need to have username and password and just write a code where token is generated at run time and you just need to append it properly http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000000sv000000


0

If you have point data from rain gages of known locations (which you indicated in a comment), you should be able to interpolate a surface. Which method of interpolation you use is up to you and there are lots of references for determining the best methods and the science/art of kriging (a more involved interpolation method). You can usually get a decent ...


0

You can right click on the layer and then "Convert Labels to Annotation". Then you can manually drag the labels to where you want.


1

Or the python equivalent for quick and simple , separator formatting would be something along the lines of "{:,}".format(14000) Obviously replacing the value with field name or rounding function and field name. "{:,}".format(round([fieldname])) Other potentially helpful python answers to this question ...


1

From within your label manager or label panel in the ArcMap label properties, click the expression button. Ensure the parser (at the bottom) is set to VBScript In the upper-right hand corner of the expression box (that holds the expression itself), check the advanced box You'll now have an expression that looks like this: Function FindLabel ( [fieldName] ...


0

In the Fields tab of the layer properties page, select your field, click in the Number Format section, click the ... ellipsis, and check Show thousands separators.


1

prior to running the search cursor, you could do something like flds=[] fldObj=arcpy.ListFields(yourfeatureclass) for fld in fldObj: flds.append(fld.name) #then loop through your list of variables that the search cursor is looking for: missingvar=[] for v in variables: if v not in flds: missingvar.append(v) #and print the missing variables ...


0

When you define your concat_fields function there should be no exclamation marks used because you are at that stage dealing with Python variable names. def concat_fields(AREA_HI, AREA_LO): if AREA_HI.strip() == "" or AREA_LO.strip() == "": return "" else: return AREA_HI + AREA_LO However, be sure to leave the exclamation marks on ...


1

To do this I think you would need to look into using ArcPy to clone text and graphic elements. The code is far from trivial but would have much in common with the GraphicElement example 2 which is provided to "construct a graphic table based on data values from a table in the map document". However, I suspect that you will find it much easier to write a ...


2

Since you have FME, I recommend using the PolylineAnalyzer which is a custom transformer you can download for free within FME. This will measure the angle of your line segments, and the angle at vertices. Because this is a custom transformer, there's not much documentation, but the help says the following: Takes polylines and polygons and analyzes ...


1

Is Python an option? If so, you could calculate the difference between two points (p1 and p2) where p1 is the intersection point and p2 is the endpoint of the first line segment. // Begin Pseudocode xDelta = p2.X - p1.X yDelta = p2.Y - p1.Y angleInDegrees = Atan2(yDelta, xDelta) * (180/Pi) // End Pseudocode Examples of this type of ...


1

I use Geo Wizards for this. The point angle position tool has output like this... But it is not free. Outputs: A new Point feature class. The attribute table of the resulting feature class will have three new fields [ET_Angle] the angle of the closest segment of the closest to the point polyline. The angle is in ...


0

I've not done much with labelling with ArcObjects so this may not be relevant or you have tried it already? Have you tried setting IAnnotateLayerProperties.DisplayAnnotation Property?


0

I've the same problem. I've two fields to concatenate, exluding empty values. The fields are: AREA_HI AREA_LO But arcgis return an error "000539 : Error message from Python." Some suggestions? Thank's. def concat_fields(!AREA_HI!, !AREA_LO!): if !AREA_HI!.strip() == "" or !AREA_LO!.strip() == "": return "" else: return !AREA_HI! + ...


2

What a great question! The problem is that contours are a cartographic lie. They're a convenient way of conveying information about the relief within a landscape. However they don't translate directly to the real-life experience of topography, except perhaps in the heavily modified and engineered landscapes of our urban environments. Topography in reality is ...


0

Not elegant, but how about converting each raster into a set of points using Raster to Point? Then giving those points a z value using Feature To 3D By Attribute. Then find the closest fault point (near feature) to each bathymetry point (in feature) using Near 3D. There are two potential downsides (1) there is a limit in how many points can be generated ...


2

In ArcGIS, use the Resample tool to resample two of the three rasters into a cell size that matches the third on. You'll need to consider what you're doing to your data when you resample. With that in mind I would pick the Land Use raster as the one that goes unmodified since the others are likely already interpolations of discrete samples of continuous ...


1

The easiest way to dock is double clicking TOC.


0

Do you try to edit event layer created from XY coordinates excelsheet? Try first to export the event layer to shapefile (or feature class into geodatabase).


1

These answers are both technically correct. Length can be calculated automatically in a GDB in the Shape_Length and I agree that clipping to the polygon and the buffer might help to keep things straight. It sounds to me like you are not having any problem calculating the length manually if/when needed but that summarizing the data is what is giving you ...


1

I second the first answer and may add something. In case you keep your data within a Geodatabase, the length will be recalculated automatically. One more thing... Depending on what you want, you might be better of with a clip instead of an intersection. I do things like this for a couple of thousand buffers and the roads I clip are much more than there a ...


1

The length of each polyline objekt in the intersect result should be in the field Shape_Length. Intersect copies the attribute values from the input data, and as the field "LENGTH" is not tied to geometry length in arcmap it won't automatically update. Based on the Shape_Length field you should be able to summarize this.


0

Unfortunately you can't use arcpy to work with ArcScene and sxd layers. You will be able to manage extrusion and other properties of 3D layers with the new mapping module in ArcGIS Pro - check the Layer properties and methods available in ArcGIS Pro. You can try the prerelease of ArcGIS Pro right now if you have a current maintenance contract with Esri, I ...


2

No it is not possible to add "Folder Connections" using Arcpy. Folder Connections are stored in the ArcCatalog.gx file, which is typically located at c:\Users\*username*\AppData\Roaming\ESRI\*Desktopverion*\ArcCatalog\ArcCatalog.gx This is a binary file, so forget about editing it. The only thing you could possibly do is to create the Folder ...


1

You can use the Split tool under Advanced Editing Toolbar also. Please see attached file for reference.


1

Basically you can treat each band as a separate raster and use it as input of the Composite Band tool. If you want to automate the process, there must be a structure in the name of the bands, like raster.tif\rainfall_year_month. If you have such a structure (at least with the year mentioned) you could use this code (not fully tested): arcpy.env.workspace = ...


0

Thanks Hornbydd, I adapted your method. What i did was 1.Firstly i created a point raster file for my entire extent of my map as suggested by "http://www.researchgate.net/post/Is_there_any_way_in_ArcGIS_to_calculate_the_Latitude_and_Longitude_of_each_pixel." and set the point to be 1km2 apart. 2.Reclassified the kernel density models 3.extracted by ...


0

In this situation, I would use the "Change Layout" tool on the Layout Toolbar. Open the MXD that contains the data frame you want to use and then use the "Change Layout" tool. In the tool, choose the MXD that contains the layout, scale bar, etc. that you want to use as your template and click Finish. This will insert the data frame you want onto the map ...


0

I was able to copy the scale bar I wanted to use, activate the data frame I needed it for, then paste. The new one retains all the formatting of the old. You can then set aside or delete the old one.


0

The script will return an array of point objects for each part (returned by the GetPart method) for each record in the feature class. The number of points returned is not defined by any tolerance; the array will contain all the vertices that make up that polygon part. The only way to get more points would be to place them on the existing lines, which (if ...


0

Whenever I have seen this option grayed out it is because the shapefile (or feature class) does not have a spatial index. To address this from a script I would use the Add Spatial Index (Data Management) tool. To do it on every shapefile (feature class) I would use arcpy.da.Walk to visit every workspace and run the tool on any shapefiles (feature classes) ...


1

Presumably the red areas are a single value? If so you could: Extract by attribute. Convert to polygon. Finally extract the centroid. Optionally extract the coordinates of the points. If you were going to do this on many datasets you could easily wrap this workflow up in a fairly simple model.


2

It looks like you need to set a temporary alias on your toolbox (or a permanent one via its Properties) as described in the Help for ImportToolbox (arcpy): If the toolbox does not have an alias, the module_name is required. When a tool is accessed through the ArcPy site package, the toolbox alias where the tool is contained is a required suffix ...


0

You have not included the version of ArcGIS for Desktop that you are using but the error message you are seeing is consistent with it being ArcGIS Desktop 10.0 because the listLegendItemLayers method was only added to the LegendElement Class at ArcGIS 10.1 for Desktop. I am not aware of any workaround to doing this at 10.0 so I recommend upgrading to 10.1 ...



Top 50 recent answers are included