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 feature....


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

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

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


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.


4

There are different approaches to this. Customization (+Plugin) Customization is shipped with the official QGIS release. It offers to modify various parts of the user interface, like removing buttons and panels. http://linfiniti.com/2011/07/customizing-the-qgis-ui/ The customized UI can be saved in a .ini file and restored later on. If you need custom ...


3

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


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 ESRI.ArcGIS....


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 http-...


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

If you are using GNU/Linux, you can go to /home/USER/.config/QGIS/QGISCUSTOMIZATION2.conf and set: Menus\mSettingsMenu=true If you are on Windows (I've tested on Windows XP), you can press Windows+R and execute the command regedt32.exe. This opens the Windows Registry. Now go to: HKEY_CURRENT_USER Software QGIS QGIS2 ...


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) { ol.control....


3

VBA is still available in 10.x, but must be installed separately. Prior to 10.x, it was included with installation files. Now, however, you must install separately and receive a license for the VBA extension (it's free, but you must request it from ESRI). Aside from VBA, there are other ways to create custom UI elements, including .NET and python addins. ...


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 ...


3

The "logo" option is documented as being a Boolean value that defaults to true. So if you put false, it won't show it; if you enter any value (or leave it off so it defaults to true), it will show their logo. (This is because JavaScript interprets any non-null value as true.) So you're left with the option to set it to false, and float your own logo over the ...


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



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