Tag Info

New answers tagged

1

ArcPad Checkout from python command line works in arcgis 10.1, but you need to add arcpad toolbox with arcpy.AddToolbox(). this is a working sample script, in this script i pass the path of the axf as first argument in commande line: import arcpy , sys arcpy.env.overwriteOutput = True arcpy.AddToolbox(r"C:\Program Files ...


0

There is a bug for this - NIM102547 - ArcPad tools fail to work in Python outside of ArcMap. It's been found in 10.2.1 but there's no reason why the behaviour should be different in previous versions. As an alternative, you can run your script as a script tool or from the Python window. Also, as @om_henners says, it's not a good idea to use combinations ...


0

Please check your WMS GetCapabilities response. If you cannot add layers usually the cause is that WMS GetCapabilities output is broken because of e.g. a misconfigured layer.


0

Following Mark's lead, there are a couple of options: Oldie but a goodie, but without Unicode support: http://www.arcgis.com/home/item.html?id=f3d91b8f852042e289e09a7ec8342431 My idea which does support Unicode and a schema.ini file, but requires ArcGIS Pro: http://www.arcgis.com/home/item.html?id=d887241f6908466a984c94631fd1974f


5

The only geoprocessing tools you need for that is Intersect (Analysis toolbox) and Join Field (Data Management toolbox). Run Intersect on the land use and watershed polygons which will result in the intersection of those two layers (your watershed layer will be clipped to the borders of your land use layer while having all the attributes preserved). Then ...


4

It's not a very well-known feature, but you need the Feature Type Connections window. You access it like this (View > Windows > Feature Type Connections): In there select all the source feature types, select the transformer point to connect to, then click Connect:


1

You show the smoothing factor as a string in the first example, and an integer in the second. Did you check to make sure the input parameters are formatted correctly? Also, Z_value_field = "id" seems like a suspect field name for an elevation value.


1

CREATE table t_intersect AS SELECT hp.gid, hp.st_address, hp.city, hp.st_num, hp.the_geom FROM public.housepoints as hp WHERE NOT EXISTS( SELECT * From public.parcel as par WHERE ST_Intersects(hp.the_geom,par.the_geom))


3

From the comments, it became clear you were instead trying to remove the overlapping portion of the smaller polygon from the larger polygon. You should use the "Difference" tool instead of the "Clip" tool.


2

I was just looking for the same answer myself and while my answer is not 'official', it's based on my interpretation of this Training Manual entry I found: http://docs.qgis.org/2.2/en/docs/training_manual/answers/answers.html#basic-distance-from-high-schools I think the above illustrates the buffer segments quite well. My answer is therefore... The ...


0

This is an example where shapefile 'a' will have rank 1 and shapefile 'b' will have rank 2, integrated with a tolerance of 100 meters: import arcpy a = r"C:\data\a.shp" b = r"C:\data\b.shp" arcpy.Integrate_management("a 1; b 2", "100 meters") Trick: if you don't know the arcpy syntax of a tool, you can either put the tool with the desired parameters in ...


1

As well as Egge-Jan's excellent Mask tool, you can do this quite easily by selecting your vector regions in the map window then under the Map menu selecting 'Set Clip Region'. This will use your selected vector boundaries to mask the underlying raster data. You can then toggle the mask with 'Clip Region On/Off'.


0

I guess it is not exactly what you asked for, but I wanted to do something similar and I ended up opening a new window with the link I get from the server. After you get the answer from the server open the window: window.open(url); The user can now either save the map or discard it.


2

If you are running this in the Python window, then you need go to the Geoprocessing menu -> Geoprocessing Options and check the setting for "Overwrite the outputs of geoprocessing operations". If it is not checked than the script is behaving correctly, since your current setting is not supposed to not let tools overwrite outputs. Once that setting is ...


0

This tutorial here I believe does exactly what you want. (Scroll to the bottom) Or, heres some pointed JavaScript code which I use to return a link to a <div><span> element that populates with a hyperlink. function go() { var inputText = dojo.byId('inText').value; var params = {'Input_Text': inputText }; ...


2

There's is a rough and dirty way to do it. I say rough and dirty because I've been getting strange intersect results which I'll open a bug for. Use Vector > Geoprocessing Tools > Intersect... with the layer as both the inputs. Use the Spatial Query () tool and select features from the intersect tools output that "Equal" your source layer. Start and editing ...


1

I would do the job with OpenJUMP and the Noder tool. Open your line layers into OpenJUMP Combine the layers for further processing This tool will transform all the attributes from the source layers and add a new attribute "LAYER". That will be useful later. Next use the Noder tool from the menu "Tools - Edit Geometry - Noder.." Lines will be ...


1

Even before you execute ST_Union ANALYZE your database to update query stats. VACUUM your database to purge if you are not already running Autovacuum. Check your main settings to make sure that they are set to sensible values.. shared_buffers should be 10% to 25% of available RAM effective_cache_size should be 75% of available RAM Test changing ...


2

The Try/except does work - the problem here is GP Services have defined inputs and outputs. When you publish it and go look at the REST end point of the service, you'll see how these items are defined. Your service expects an output of a certain type. When your service "fails", it doesn't return whats expected of it and you get that error. If you don't want ...


0

Late post but another tool you can use to look for errors is the plugin Topology Checker in QGIS which allows users to define rules for the plugin to scan vector layers with. Such rules include: Must contain layer X Must not have duplicates Must not have gaps Must not overlap Must not have invalid geometries Hope this helps!



Top 50 recent answers are included