Tag Info

Hot answers tagged

5

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

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

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.


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

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

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


2

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


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

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.


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

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

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.


2

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})


2

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


1

Python's built-in length function looks like this: len(variable) Also, your validate function's logic looks a little off. You're basically set up to run an if statement that does something if Naturefield is blank, then another if Diametrefield is blank, and the else part will only execute if Diametrefield has a value (ignoring whether or not Naturefield ...


1

QGIS 2.1's Relations handles the relationship data in QGIS in a excellent way. Note: 2.1 is a dev version, 2.2 will be the release version.


1

Assuming you are using ArcGIS 10, following is a script based on the batch project example from here. This function, unfortunately, does not provide any control over the output name, and all results are dumped into the same directory. If that is a key requirement, then you may be better off writing some sort of loop that takes the input name and adds "_utm" ...


1

No there isn't a way to do it using a project file but you can use the -z option when starting QGIS. qgis -z custom.ini yourproject.qgs I did think we might be able to do this with project macros but projects are loaded after the customization stuff is applied so out of luck there.


1

To expand on my comment above - In 10.1/10.2 the export to KMZ tools as very "what you see is what you get". That is, what you see inside ArcMap is how the output KML should look. This is the reason you need either a layer from ArcMap or a LYR file for the Layer to KML tool (opposed to just features). For points, the symbology you have inside ArcMap gets ...


1

a tiling scheme like TMS is just a way of storing image in a predefined directory structure, any webserver kan provide access to this tile cache, you only need some piece of software to generate a tileset, but that can be done using a desktop tool (Tilemill comes to mind). The client should be able to figure out which tiles (==images) to retrieve from the ...


1

Building custom QGIS installers for Windows describes Customising the Splash Screen The splash screen master can be found here: images/splash/splash.xcf.bz Once again, you can open this directly in the gimp and edit it according to your needs. When you are ready to save the final splash, resize it to 600×287 pixels first. Be careful to also ...


1

This article shows how to do this in VBA (which you should be aware was removed at 10.1 and requires authorization at 10.0): Private Sub UIButtonControl1_Click() 'Ensure that there are references set to the 'ESRI GeoprocessingUI Object Library and the 'ESRI Geoprocessing Object Library. 'Go to Tools > References to do this Dim pUID As New UID pUID = ...


1

If you are making a java webabb, why not use OpenLayers (a Javascript mapping api) for displaying markers)? Or am I missing something here? I guess you could in some way generate a GeoJSON of your data, en follow some of the examples on OpenLayers Vector Layers? Here is one such example (well, generating data on the fly): ...


1

I thought you might be able to add another button that runs the Zoom To Selection function, and give the button a keyboard shortcut like &Zoom in the name. But it doesn't look like you can add buttons to the table view toolbar (never knew that). However, if you double-click on the selection button (grey box on the left) of a row, it zooms to that ...


1

What you are asking could easily be accomplished interactively (manually) by first selecting the desired point feature in layer A, doing a Select by Location to select the features of layers B and C that intersect the selected feature in layer A using a buffer ("search distance" on the Select by Location dialog) of r meters, and then deleting all of the ...


1

I'm not sure if you are programming in ArcMap VBA or Visual Studio? In VBA you could create a UITool on mouse down event which searches for, I'm assuming a certain layer or project area layer that is selected or not. You could assign the selction count to a function then define your button's enable or disable state according if the function returns 0 or ...


1

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.



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