Tag Info

New answers tagged

0

well first you should decide if you want them in a shape file or a feature class. A feature class would give you more flexability and options like enforcing topology. If you have maps of the new districts, in an edit session, you can either draw them into your featureclass/shapefile using the edit and draw tools in arc. Of course this would first require ...


0

If you use the arcpy.AddMessage(message), it should show up in your published GP, but it shows up on the job messages page (not the server logs as you indicated in your question). You also need to enable this in the service properties (or when you publish the service):


1

The AddMessage will add a message to the geoprocessing job message queue: jobs/ja861064b634648f1be2371e2307c6112?f=json For general logging, I use python logging: import logging and make sure the formatter has a process id: formatter = logging.Formatter('%(asctime)s p%(process)s {%(pathname)s:%(lineno)d} %(levelname)s |-| %(message)s') # Set up logging ...


0

You need to convert your data to KML. In ArcToolbox under Conversion Tools there are two tools in To KML. Try those.


0

Version 9 extensions have to be converted, updated, possibly re-written in parts and recompiled for version 10. The method extensions are deployed has changed fundamentally between these 2 versions of ArcGIS. (as well as new SDK, new version of Visual Studio .Net, etc.) You may try what @PolyGeo have suggested but it may not work. (version 8 would have ...


0

Problem was not in script text, but in script object in ArcMap. When I checked Run Python script in process and publish this script, it began to work at server too.


0

I managed to resolve the issue myself. Want to mention the changes I done, hoping that it might save time of others who face the same issue. This is what was happening in my case: The GPS was giving the points on frequent basis and my code was drawing the points on sketch layer. All this execution was happening on a single thread. After drawing each point ...


1

ensure that none of your field names have spaces in them. I had similar problem and when I took out spaces it worked.


0

For #2 - 40,075 km is the East-West circumference. 40,008 km is the North-South circumference. The 9 km error in Google Earth's estimate could be the way they calculate great circle lengths.


1

I wasn't able to find the Model builder answer, but I managed to create a script in python that did the job. Here it is: ##domain clean up script ##Created by: Ruchira Welikala ##Date: Aug 27, 2015 import arcpy from arcpy import env #Workspace where domains will be deleted from gdbConnName = "Database Connections\\ProductionDB.sde" #Workspace/Table ...


1

You could try using XTools Pro, which has an autosave MXD function built in


5

My understanding is that Background Geoprocessing runs as a separate process and, unlike Foreground Geoprocessing, is unaware of your current ArcMap environment. Consequently, I don't think you'll have success with your current approach. AutoSaving maps is not the same as AutoSaving edits but you could look at Incremental "auto save" in ArcMap ...


3

When you are running a script in the background, a python process is spawned that is separate from ArcMap. So essentially, arcpy.mapping.MapDocument("CURRENT") is attempting to open a map document that it cannot see. This makes sense as imagine the issues if you had multiple .mxd open: Python would not know which one you mean by "CURRENT". You can see this ...


1

There are three sets of properties to be aware of here: The envelope of horizon of the coordinate system, The extent of the coordinate reference, and The envelope of the feature class. The coordinate system horizon is mathematical space accessible by the coordinate system (e.g., infinite X, -90...+90 Y for GCS_WGS_1984). Esri uses these horizons to ...


0

FYI (for others with the same issue), you'll find additional discussion here: https://geonet.esri.com/thread/162953


0

So navigate to your server manager > services > Site root > publishing tools > edit service security > check (public,Available to everyone) > save.


0

A simple method is: mean pixel value * total number of pixels The source tab in layer properties has all the information you need for this calculation.


0

According to this compatibility document ArcGIS 10.1 can connect to Oracle SDE 10.3.1 only if it is oracle 10 or 11. The underlying DBMS must be Oracle 10g or 11g. See the ArcGIS 10.1 system requirements for supported versions.


1

It looks like you are configuring a Python script tool in a standard toolbox so I replaced your python-toolbox tag (which is for Python toolboxes) with one for python-script-tool. To set irrdist you are reading the 4th parameter (indexed as 3) but you have not shown us how that parameter has been configured on the tool dialog. I suspect that you are not ...


4

This can be accomplished by adding a value list filter to the tool parameter. Right click the tool in the catalog window and select properties, then navigate to the 'Parameters' tab. Highlight the parameter you would like to add the value list to, navigate to the 'Parameter Properties' box and select 'Value List' from the drop-down menu in the 'filter' ...


0

What finally worked for me is adding the following to the ROOT site and NOT the application for the web adapter. Does it make sense? Not to me. But it worked for me. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add ...


1

My solution is to set up a startup script that sets of the path based on the python environment you are using. This method has the (huge) advantage that you don't need admin access to write .pth files in python installations. This script is setup to use both 32 bit and 64 bit Anaconda and ArcGIS/arcpy. # Startup script to link Anaconda python ...


1

The "LAStools" toolboxes in ArcGIS, QGIS, and ERDAS IMAGINE all operate on one LAS / LAZ file at a time. The "LAStools Production" toolboxes in ArcGIS and QGIS take folders and wildcards instead of filenames as input and can then be run across hundreds of tiles and on multiple cores. For faster performance it is instrumental that you first run lasindex to ...


5

If you have the opportunity to get LAS or LAZ instead of TXT ... absolutely go for it. It will be trivial for you to go from LAS or LAZ to TXT (for example with the free and open source las2txt tool from LAStools). Ordering TXT instead of LAS means to loose many important attributes that you may not care about today but will in a few months or years. It also ...


0

I think in your answer, if you change these two lines, it'll work better: targetGroupLayer = arcpy.mapping.ListLayers(mxd, "Group", df) --> include [0] arcpy.mapping.AddLayerToGroup(df, targetGroupLayer, addLayer, "BOTTOM")[0] --> take off [0]


2

Point cloud files are of type non-binary or binary. Non-binary files (also known as ASCII files) are the ones with extensions '.xyz' and '.txt'. They have the advantage of being easily opened with text editors to visualize what is in there (but it is not a big advantage). Each line of the ascii file represent a laser return record with spatial coordinates ...


9

ArcGis has a new LiDAR dataset at 10.1 which will allow you to view your LiDAR data directly and also see more information than what's in a raster... for example you can add to ArcMap and then filter down the display to just tree classes, or just first returns! LiDAR data contains much more than just elevation, there's intensity that is stored by default ...


0

The tool which should help you to accomplish this is Polygon Neighbors (Analysis): Creates a table with statistics based on polygon contiguity (overlaps, coincident edges, or nodes). Once you know a polygon's neighbors you can work on whether adding attribute values from one or more of them to those of the original polygon will meet your criteria. ...


2

Short answer is move what you had in updateParameters down to execute. What would otherwise be a standalone python script goes there. Fixed some other issues in your code as well, this should be functional (keep everything before getParameterInfo like you had it): def getParameterInfo(self): param = arcpy.Parameter( displayName="TARIKH", ...


0

To give more backround info. The intention is that cities come closer to / further away from the initial city depending the travel times between them. So the map kinda warps arround the cities and gets deformed.


0

Watch out that ArcCatalog has a default option that does update some of the metadata fields when you view the metadata sheet. Check out the ArcCatalog options > metadata tab > uncheck the tick box "Automatically update when metadata is viewed". More on automatic metadata update in ArcGIS in the online help.


0

If you want combine same records with same value in Attributes Table: Step 1) start editing Step 2) select records you want combine together Step 3) Merge selected records (You can find merge in start editing menu)


0

If you are using Feature to Raster from the toolbox to convert the MCP to raster, first add one of your ascii climate layers to the table of contents, then: click the "Environments" button at the bottom of the tool Set "Processing Extent" to be "same as layer " set "Processing Extent" snap raster to the ascii climate layer Set "Raster Analysis" cell size ...


0

Your technique will have to vary depending on the scale of geometry differences, and the type of geometry. Polygon to Polygon could be easy (create points from the poor geometry layer -> spatially join to the good geometry -> look for polygons get have multiple or no points -> manually adjust those) Point to Point could also be easy (search for nearest ...


1

Do you need to have them as a shapefile? If not, try creating a new .gdb and feature class. Create the fields you want/need. Then begin loading the data from your shapefiles to the fields of your choice. It may not be as automated as you would like but this should work. You could export it out again as a .shp if you prefer that or need it as a deliverable.


0

In the Spatial Adjustment toolbar you should be able to use the attribute transfer tool.


0

I just posted a question/answer to this that may be helpful. This is my take on how to utilize multiple python installations on the same computer.


1

Thanks again @FelixIP, and I'd like to post my new answer Here, the independent variables include slope, elevation, precipitation,distance to roads, and distance to river, and all values are 0 to 100 after doing normalization. For normalization all the values to a range of 0 to 100, I used the Raster calculator tool in ArcMap 10.1 with this equation: ...


1

On second thought I decided to post my answer. Normalising variables, which solved an issue is not exactly GIS thing, however careful spatial variables selection for regression analysis is. I'd suggest caution with that many independent variables, because some of them aren't really independent, e.g. distance from 'river' and terrain slope. I've made a ...


2

Use "==" for equality testing. Not "=" which is for variable assignment. if inTable == "Oleander": #<--- Note the "==" do something Note the rest of your if statement is syntactically incorrect and makes little sense.


2

This question, with the official release of Windows 10 is quickly turning into "this is my personal experience type of wiki". Right now, today, the most current versions of ArcGIS for Desktop (ArcMap 10.3.1 and ArcGIS Pro 1.1), are not supported on Windows 10. Historically Esri has introduced support for a new OS with the next release of a product AFTER ...


-1

Hmmm...I hope ESRI comments on this as I ran into issues, according to the IT dept, due to security restrictions tied to Internet Explorer that ran in the background. Perhaps the new browser maintains those aspects. Found this on another forum just now: "ArcGIS for Server requires Microsoft Internet Explorer 7 or later. You must obtain and install ...


0

I was running ArcGIS 10 on Windows 8 (on a PC), and just upgraded to Windows 10. After the upgrade, when I open ArcMap 10, I got this error: "the arcinfo license is in need of a repair operation". I went to ArcGIS Administrator, and then chose the repair folder and option. After this I could open ArcMap 10, but it crashed if I tried using a tool. I ended up ...


1

To select multiple features in ArcGIS 10.1 you can open up the feature layer's attributes and choose select by attribute. This will allow you to filter the selection by using certain fields to mark the features to be deleted. Along with that you can invert selection if you are able to easily select all of the features that you want to keep and then switch it ...


1

Try changing the selection mode in ArcMap to Add To Current Selection. Then you can select multiple features. See the link here for a discussion: http://resources.arcgis.com/en/help/main/10.1/index.html#//00s50000000w000000


1

Here is another option: Use the Split Line at Point tool Splits line features based on intersection or proximity to point features. Open up the attribute table of the output layer of split line and create a new numeric field called "length" Right click on "length" field and and select Calculate Geometry, feature length


2

If the line you are talking about is indeed a route, then you can use the tool "Locate features along route" - This will give you the measures of the points. The next step I would export the table to excel and then you can use a formula to calculate the distance between each point. For example =B2-B1, then drag to the bottom.


1

Below is the model that will connect to an Access 2010 database table and create a point layer from the data. You need to create a Table View and feed that into the Make XY Event Layer tool. This is an in memory layer which can be used in processing but if you want to create a permanent version you need to save it, copy features will do this. When you ...


1

In addition to the roundness formula outlined by radouxju in his response and others like the ratio of the area of the polygon to the area of its minimum bounding circle - ST_Area(geom)/(ST_Area(ST_MinimumBoundingCircle(geom)) as rnd_check in PostGIS: I find it often helps to check the number of vertices/points in a 'suspicious' geometry - ST_NPoints(geom) ...


0

This may be what you are looking for, smartexporter.dxf http://www.gisexpertsolutions.com/ There is a trial version on the site.



Top 50 recent answers are included