Tag Info

New answers tagged

4

Use the cursor.updateRow(field) instead of cursor.updateRow([field]). You should supply an object, not the list.


0

You need to come up with a unique name for each raster output. In doing this, you need to remove the ".shp" extension from the shapefile in order to use this in the output raster name. Also, keep in mind that you need to be aware of input and output raster extensions in your script. import arcpy, os from arcpy import env from arcpy.sa import * #set work ...


3

Adding to MC5's answer, I get this info using the LMUTIL.EXE in the license manager ..\bin folder. Here is the DOS command I use: lmutil lmstat -a -c @LMservername Regarding "inactive" licenses, there is no way to get anything like this using Flexera. I've tried and ESRI has confirmed it is not possible. All the LM will tell you is who is connected and ...


1

At the risk of being vague: ArcGIS (as of 10.1) uses FlexNet Publisher License Manager v11.9. See the License Manager Reference Guide. There doesn't appear to be a programmatic API, though there is an audit log. In prior versions of the license manager my colleagues used to use BAT or Perl to examine the license manager logs, I'm not clear if the new license ...


0

You could view the cache in the javascript viewer while running the web traffic debugger fiddler. It will throw errors where it files to find tiles. You can then look at the request folder locations to help you recreate the tiles


1

This code (modified to include any datatype) uses the raster loaded directly as active Layer in QGIS (see next image): import sys, struct from osgeo import gdal from osgeo import gdalconst import os minLat = -48 maxLat = -33 minLong = 165 maxLong = 179 layer = iface.activeLayer() provider = layer.dataProvider() fmttypes = {'Byte':'B', 'UInt16':'H', ...


2

It is necessary to clarify that "l10g" is a DEM tile from the GLOBE website (Python Geospatial Development, p.120) and is a valid raster (raw elevation data). You must also download the hdr (l10g.hdr, book p.120 and explanations of Gabor Farkas) The l10g, l10g.hdr and histogram.py files should be in the same folder D:\Python\Progies\Geospatial\l10g\ To ...


1

There are three problems with your code/approach, which I would like to help to resolve in a quick and explicit manner: The raster data cannot be processed by the algorithm on its own. It needs a header file to access georeference information. Header files can be downloaded from here for the example dataset, as stated on page 120. You have to declare ...


2

Iterating is a little tricky for the first time user who has done VB or C, there is no for i = 1 to n iteration in python (yet). To iterate from one number to another you have to make a range (list) of integers then step through it with for value in list: Use this as an example to adjust your code, I've written the whole thing to give you some context: ...


1

Here is the working code updating one of two dictionaries based on common keys: Mesh_dict={} Point_dict={} Mesh = open (r'short3.txt','r+') for row in Mesh: # extract lines describing one type of geometry if row.startswith('ND'): Inline= row.split() IDM = Inline[1] ZM = Inline[4] # actualise the dictionary of original data ...



Top 50 recent answers are included