Tag Info

New answers tagged

0

Try this from arcpy import env d=joinFC.Describe env.extent=d.extent Strange but true, if your shapefile is outside processing extent, field calculator will fail on simplest tasks, that have nothing to do with shape field


2

Writing my comment as an answer: It looks to me like there was an issue with the geometry of the shapefile, so running Repair Geometry should (and did) solve this problem.


0

You may use the Minimum Bounding Geometry tool/method to get feature orientation, which may then be joined back with the polyline layer(s). After that you could use either Field Calculator or Calculate Field method to write a custom python or vbs function for generating the comparison result, see function examples from the link below. Using the Calculate ...


1

Building on Dan C's answer, I would perform the following workflow: Merge Dissolve all shapefiles based on a common key (e.g. landuse code) Intersect your area of interest polygons with the land use polygons. This is always more efficient that clipping individual polygons and trying to extract pertinent data from the individual feature attributes. ...


1

No, if you're using the ArcGIS Merge tool (under Data Management Tools > General), no data will be lost. All the Merge tool does is combine all the polygons into one shapefile. If the 7 separate layers have different attribute fields, all those attributes from all 7 layers will be included in the merged layer by default. Of course if your land use polygons ...


0

if you redid the calculation as well, the numbers for the first two records are right-justified but just differ in the number of decimal places shown


0

Ok I figured out the issue. The second parameter 'cellsize' needed to be called with the "arcpy.GetParameter" tool rather than the "arcpy.GetParameterAsText" tool as it is a numerical value rather than a string. It seems so obvious now! I have amended my question with the answer. Thank you all for helping me get there in the end.


0

Here is a basic explanation on this error - This occurs even though the data clearly does exist on disk. Cause Most often this is due to the input data path being entered incorrectly, as in the following situations: • Misspelled folder names • Using backslashes instead of forward slashes • Having spaces in the path names If the data clearly does exist, ...


0

Perhaps opening up an old question - but I think this is relevant. The Make Query Table SQL creator throws an error when you verify, even if your syntax is correct. I created my query without any double-quotes or brackets, simply Table1.Field1 = Table2.Field1 AND Table1.Field2 = Table2.Field2 and did not select verify; I simply ran the tool and my output ...


0

I just would like you to know how I finally got around my problem: with the Network Analyst. I first had all rivers and streams as polylines (just as one would do with the linear referencing). For lakes, where the rivers run through, I added horizontal lines so that the whole lake then was covered in a grid, connected with the river-polylines. For ponds or ...


1

A spatial reference is not a nominal metadata property which can be changed at will. Once set, it cannot be changed. Deletion is the only supported mechanism for changing an SRID. Once you register a table with ArcGIS, it should only be deleted with geodatabase-aware tools (Desktop, Python, ArcObjects .Net/Java). When registered only from ArcSDE ...


0

finally i can do it by create arcsde connection tools in work space in data management tools by using arc toolbox. it works. i do believe that toolboxes works properly when some short cut solution doesn't work. now i can see all feature tables in management studio.


0

This worked for me: "If you are on a Win7 Computer go to: C:\Users\your username\AppData\Roaming\ESRI\Desktop10.2\ArcMap\Templates and either delete or rename the normal.mxt ArcMap will take a bit longer to open next time (has to recreate that mxt) but the styles will reappear."


0

Thanks @Crhis W , I tried the angle system, and it really works! I computed the bearing for each line, coded each bearing as: NE - NW - SE - SW in another field. Then flipped it, if there was a -1 on its "one way" attribute field, and voilà, there you have!!. Here an example: All I need now is to know how to compare automatically. I have thought about ...


0

Algorithm to get desired result: Take the Line in focus Add some buffer (0.0000005) at Right (or Left) side of the Line geometry. Check whether buffer geometry is ‘Inside’ the Polygon geometry or ‘Overlap’ with Polygon geometry.


1

Gdal PYthon binding works with conjuration with gdal. You need to have installed GDAL along with the binding to work. A quick skim over the errors you provided they suggest that while you installed gdal-python you haven't install the gdal by itself: A possible solution chain is: Install GDAL (http://www.gisinternals.com/sdk/) Append the installation ...


1

I have constructed below a well-known text (WKT) file for the projected coordinate system that your data is using. You should copy it to a text file that has an extension ".prj". The WKT string must be a single line. Put the text file into your ArcGIS installation folder, then "Coordinate Systems, Projected Coordinate Systems". When you want to project your ...


2

The point feature is a bit more straight forward once you have your table in excel (with your X and Y columns), save it out as a .csv and you may use the Make XY Event Layer tool to convert to event layer and then use Feature Class to Feature Class tool to convert to shapefile. The polyline and polygon are not as straight forward, you will have to build a ...


2

I suspect the issue is the GDAL 1.11 bindings you're fetching from gohlke do not match the internal GDAL inside of Arc*. Your bindings need to be compiled against ESRI's GDAL to work reliably. It's possible they can be made to work, but it is going to be a lot of headache. In short, ESRI needs to provide the gdal_i.lib stub file that GDAL generates as part ...


0

I found out that my issue was simply that statistics did not get recalculated when I reclassified my rasters


4

You can also use the Multipart To Singlepart (Data Management) tool.


4

Under "Advanced Editing" there is a Button for "Explode Multi-Part features". Worked just fine!


0

My first suggestion would be to investigate the geometries involved. Note that snapping is not enough - the layers must be coincident, meaning in order for a network junction to occur there must be a vertex at the same point in all related layers. You can't just snap the stop points anywhere along a route segment/edge (nor for that matter will a junction ...


0

ArcGIS's Create Fishnet tool combined with the Intersect will do this for you. Try this workflow: Create Fishnet (Data Management): use your polygons as the template extent. Make sure to select "Create Label Points" as this is the vector layer that will become the regularly distributed sample points. Adjust the parameters so that you get the number of ...


0

You can use any spreadsheet software to generate a list of coordinates pairs, I mean one column X, one column Y, ..., save them as a CSV file, and import them from Arcmap.


0

In ENVI go to "Band math" and tape: float(b1)/0.0001 look at http://www.exelisvis.fr/docs/BandMath.html , Actually there is no need for this, the reason why values ​​are multiplied by 0.0001 is only for size decreasing of files. Classification adopted by MODIS is [0.2 to 0] =Water, [0 to 0.2]=No vegetation,sand, spare vegetation ... [0.2 to 1]= Vegetation , ...


0

Both the Field and Alias can only be changed in the Properties\Field Properties within a .gdb using ArcCatalog. Later versions eg 10.2.1 and above have a Data Management / Alter Field tool (although still only for .gdb). I export the changed file back to a shapefile for further use. A solution will be to change the MapInfo header file to align with the ...


1

You'll need river centreline and linear referencing to achieve this If you have to repeat task multiple time, I'll post a script that fascilitate chainage computation without linear referencing


0

Thanks to Dano for "pointing" me in this direction. The following is my workaround for arrows in ArcView 9.3 -Create a polyline shapefile -Add the shapefile to the map -Use Editor to draw the line -Navigate to the Symbol Selector and scroll down in the list and select either Arrow Right Middle or Arrow Left Middle -The color of the line can be changed ...


3

Convert from shape to gmt use this example code : ogr2ogr -f "GMT" Hudson_bounds.gmt Hudson_bounds.shp


1

I have never tried them myself, but it looks like the iScreenDisplay interface has rotation functions: iScreenDisplay Also check out screenDisplay.DisplayTransformation.Rotation() Might be a good starting point.


2

If you're writing a geoprocessing script, I'd recommend authoring a .lyr file you bundle with your toolbox and set the symbology in the script tool parameters to point to the .lyr file (see the "Symbology" part of the dialog).


0

try this: import arcpy from arcpy import env env.workspace = r"F:\Projects\ohad\derech_atankim\gis" for mxdname in arcpy.ListFiles("*.mxd"): print mxdname mxd = arcpy.mapping.MapDocument(r"F:\Projects\ohad\derech_atankim\gis\\" + mxdname) df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] for lyr in arcpy.mapping.ListLayers(mxd, "", ...


1

The raster equivalent to the Make Feature Layer tool that is often mentioned on this site is Make Raster Layer (Data Management): Creates a raster layer from an input raster dataset or layer file. The layer that is created by the tool is temporary and will not persist after the session ends unless the layer is saved to disk or the map document is ...


0

A slightly different solution that worked for me: Right click on desktop Under AMD FirePRO, Select HydraVision Select Desktop Manager Uncheck Enable Desktop Manager Step 4 is also where you can disable the "enable dialog repositioning"


0

If you find that ArcMap is able to display the images once you get them in, and it's just that ArcCatalog doesn't recognize the file name extension, you can customize that. see the "displaying specific raster formats" page in ArcGIS help for the details. It's mostly spelled out there. Once you get to the "Raster File Formats Properties" screen, click ...


0

I ended up having to use Feature Analyst (extension from Overwatch) and used "Image Fusion" tool and clicked "custom", clicked band 1 and input a script assigning values to elevation classes. Then I used batch processing in Lidar Analyst extension to batch process all of the rasters this way. I think regular GIS tools sometimes have trouble handling a lot of ...


3

I adapted the solution to move / shift points point into a certain direction (angle) and a given distance. Looks like: def shiftXYCoordinates(shape,angle,distance): point = shape.getPart(0) point.Y += distance * math.cos(math.radians(angle)) point.X += distance * math.sin(math.radians(angle)) return point and be called like shiftXYCoordinates(!SHAPE!, ...


2

You are referring to the variables by starting iterating items in your code before you actually declare the variables. The correct syntax would be: #Import arcpy module import arcpy # Local variables: A =['FL_RechargeArea','FL_AquiferProtectionArea','FL_AreaofContribution','GA_RechargeArea','GA_AquiferProtectionArea','GA_AreaofContribution'] B = ...


0

Thanks! Ok the function works fine, only a question. I need also to export as geotiff, but argis answer that Runtime error <type 'exceptions.TypeError'>: PageLayoutObject: Error in executing ExportToTIFF I've read in other topic that some options is only available if the export is maked in data frame, not in page layout. In the Data Driven I've set ...


6

For ArcGIS you probably want to take a look at Data Driven Pages: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_Data_Driven_Pages/00sr00000007000000/ "Data Driven Pages gives you the ability to generate a set of output pages by taking a single layout and iterating over a set of map extents. The extents are defined by the features ...


5

For QGIS, have a look at the Atlas functionality in the Print Composer. http://docs.qgis.org/2.2/en/docs/user_manual/print_composer/print_composer.html?highlight=atlas#atlas-generation The idea is to have a "coverage layer" which contains all the "sites" that you want to zoom to and make a map of. Atlas has all kinds of functions which let you control the ...


6

Wikipedia defines sinuosity as: the ratio of the curvilinear length (along the curve) and the distance (straight line) between the end points of the curve So to calculate this in ArcGIS, you would need to determine: the curvilinear length of the line. You can use the Field Calculator the start and end points of the line. See this Stack Exchange ...


3

If you define sinuosity as a measure of the deviation of a line from the shortest path (dividing total length by shortest possible path), on http://www.arcgis.com/home/item.html?id=00e708a448b74810a0e805c4a97f9d46, you can get a python toolbox "Calculate sinuosity" to it. Just download it and load it in ArcToolBox to make the script available. Note that the ...


0

I had the same problem today. Using the built-in Layer to KML tool and XTools didn't produce a nice image. But i brought in my georeferenced image into Global Mapper and it worked much better without any blurriness. Edit: I created the KML/KMZ in Global Mapper. I loaded the JPG, then used File, Export, Export Web Format. I checked on the Super Overlay Setup ...


0

Assuming that DOQQ is in an image format supported by ArcGIS Desktop 10.0 then you should be able to drag and drop it into ArcMap from its Catalog window just like you can for any other supported formats. It will go into whichever data frame you have active at the time. I could not find a link to the 10.0 equivalent documentation when I looked just now but ...


2

the problem is solved , i described what I did exactly ,in first i change the type of the id from the serial to integer in the table , i tried to load it with defining the OID in querylayer's advanced option, but without defining the srid or the spatial reference ,the result was: the layer appear in the map & i can open my attribute table wothout any ...


1

I recall having this problem before with ArcMap. In my case it was because I didn't go back in to the definition of query layer to refresh the columns. I don't have ArcMap in front of me so forget where that is. Try doing that or creating a completely new query layer if you haven't tried that already.


0

You do not describe how you are "uploading" your XYZ data. Assuming you are using the ASCII to Raster tool then you need to set your output data type to FLOAT if you want the resulting raster to contain numbers with decimal places otherwise it will get truncated to the nearest whole number.


1

What I am doing in such cases is basically exporting every layer separately. Then import them all to any gis software. If you have auto cad map, it can export shp-s, for example, keeping layers in separate files. Then you also have to style every layer properly in gis. If you don't have auto cad MAP, you can save each layer to dxf, and import that to esri. ...



Top 50 recent answers are included