Hot answers tagged

6

Unfortunately, this type of modifications is not accessible via Python (arcpy or python add-ins). I believe you can change this with ArcObjects though. I recommend looking at ArcGIS Add-in, here is a good 10.1 sample to start with. The closest you can get is to create a Python add-in button on a toolbar which user can click on when having selected a ...


5

Try this: OpenLayers.Util.onImageLoadError = function(){ this.src = "images/blank.png"; };


4

There are preset shortcuts, but I don't now how to change them. For Zoom To Selected Feature, the hotkey is [CTRL] + [SHIFT] + [=] Read the ArcGIS Help @ Keyboard shortcuts for working with tables, for other keyboard shortcuts.


4

The double click is unfortunately not tied to a command, but is handled internally by the TOC contents view which displays a dialog with all property pages applicable to the active selected item. The same is done when selecting Properties.. in the context menu. There is no double click event readily available which you could subscribe to and stop its ...


4

QGIS alread has a GPS tracker tool. There is no need to develop something from scratch.


4

As I promised: here is a tutorial on creating stand-alone app that is very similar to your description (scroll page to the bottom to see the result). Unfortunately it is in Russian, but I suppose google-translate will provide some help. Also you may find some inspiration here (GeoApt spatial data browser based on QGIS).


4

I recently ran into this limitation when creating an esri addin toolbar. I was limited to the option that Chris R mentioned, creating and saving a template layer with my python code. It was fairly simple and works remarkably well. To not hard code the path to the symbology layer, I used os.path to get the path of the layer saved with the python code... ...


4

You can use map.setMapCursor("url(custom.cur),auto") Here is the api reference


4

Yes, but you need to make sure that your original relationship class has a 1-to-1 relationship. If it's 1-to-1, then you can simply add the relationship fields to your pop-up. If it's 1-to-many, you only get the option to add the "summary statistics" for a field from the related table. You can read about it all here.


3

You will need the QGIS libraries, along with Qt and PyQt. You didn't mention what OS you are deploying for, but take a look at bb-freeze (https://pypi.python.org/pypi/bbfreeze/) and py2app (https://pypi.python.org/pypi/py2app/) for a way to bundle up the needed dependencies.


3

You can't deploy this without access to the GAC libraries, which are installed as part of ArcGIS Desktop or ArcGIS Server for .NET; there is no way of deploying an ArcObjects toolkit without first installing the above. We deployed it with all it's library files contained in the deployment. This worked, but was completely at odds with ESRI licensing. So in ...


3

If you work in .NET, you could take advantage of its mechanism of assembly loading. In a nutshell, an assembly is typically loaded into memory when one if its types is first accessed. A type is first accessed when a method which contains a reference to that type begins to execute. This means that you can have your assembly reference the ...


3

You either go to the SortCut Apps folder or to the project folder itself and simply delete the lnk file. You can also delete the .ico if you like. To add/remove other elements on the ArcPadtoday screen you can edit the XML file, in case you don't want the ArcPad default button on it. Cheers, Gareth


3

Your module IDs in your require dependency list do not match the aliases in the callback provided to require(). Things get out of whack after dojo/parser... Here's a working example with a corrected require: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta ...


3

One option would be to create a color map file (.clr) you can reference in your script. Then it is simply a matter of using Add Colormap (Data Management) to assign your color map to the raster layer: arcpy.AddColormap_management (in_raster, {in_template_raster}, {input_CLR_file})


3

The problem is that you are using getMap() in the constructor of your control. But at the moment you instantiate the control, it is not yet added to the map. So, getMap() returns undefined. You can overwrite setMap(map) in your control which is called by the map when executing map.setControl(). ol3_legend.prototype.setMap = function(map) { ...


3

Yes it does, but it's quite clunky compared to the one in ArcMap (in my opinion). You can see it here in the Project pane, I have right-clicked and created a new Style. You can then open that style in the Project View, and add new items. Once your new items are created you can modify to suit, or you can save new items from the symbology pane as in ...


2

Did you see this link regarding removing shortcuts? Remove Arcpad App shortcut 10.02


2

I think this could be done with an Editor Extension. When IEditEvents.OnSketchFinished fires, depending on what the currenttask is modify the sketch by adding parallel segments etc.


2

You can remove them from ArcCatalog but I'm not sure about ArcMap. Under preferences, go to general and uncheck "Database Connections." Check this help page out too: Using ArcCatalog options Edit: 9.3/9.3.1 documentation: ArcCatalog: The Options dialog box


2

You can double click a record to zoom to or you can Use AutoHotKey to write a small script for example: `::^+= pressing the "`" key would give you [CTRL] + [SHIFT] + [=] For Zoom To Selected Feature `::^p pressing the "`" key would give you [CTRL] + [p] For Pan To Selected Feature What I commonly use: This script is Content Aware so that the ...


2

With ArcGIS 10.0, VBA is no longer officially supported. You can request a VBA license for 10.0 and 10.1, but ESRI is strongly pushing people to Arcpy and C#. Older documents will still function for backwards compatibility, but if you want to create new VBA, you'll need to get a VBA license from ESRI and install an extension. See ESRI's blog post about it ...


2

There is no simple way to do what you want using current application preferences, but it can readily be done with a background plugin that loads at launch. Plugin Directory Structure CustomToolbar __init__.py customtoolbar.py icon.png metadata.txt Contents of Files customtoolbar.py - this is the main plugin Python class that creates the custom ...


2

You can try the mapbox terrain views also mapbox.js for mobile app and Mobile SDK for iOS


2

Try Settings->Options->Digitizing-->Other settings--->enable Reuse last entered attribute values (QGIS 1.8.0).


2

You could use OpenLayers to handle both the plotting of your vector data and also use the the OpenLayers.Layer.Image to "ship" the tile for the area statically with the app. Which would allow you to update the image for the area programatically instead of using GIS tools. This may seem like an overly simple solution but I would allow you to minimized third ...


2

I assume you can add a tool. If you don't know this process go here. In your tool's class you will need a global variable that holds a reference to your form. In your tool's OnActivate you will create the form (if it doesn't exists) and run the Show method. In your tool's OnDeactivate you will run the Hide method. That's about as easy as it gets. Good ...


2

I confirm it is/was a bug. The Vector menu is now customizable and there are work in progress with the Raster menu. Use QGIS master if you want to see that changes.


2

Rather than build a solution yourself, there is a plugin you can use. The Data Driven Input Mask plugin can handle data entry for one-to-many situations. It can also handle constraints, foreign key relationships, etc in your Postgres database.



Only top voted, non community-wiki answers of a minimum length are eligible