10

Save your scalebar as a template. Create a blank composer, add a scalebar with your relevant settings then from the menubar in your print composer, go to: Composer > Save as Template... The next time you're creating a map, you can use: Composer > Add Items from Template... which will load your scalebar with the options you saved it with.


7

You can easily save map templates from print composer, see documentation. Create a map composer In your project go Project --> New Print Composer and set a name for map composer. You can also use Composer Manager for this step Prepare your map output in composer Add title, map windows, legends and set desired parametres for this items Saving as a template ...


5

The object QgsMapRenderer is deprecated in 2.4 and above, so the script wasn’t working properly. To make the script work it’s necessary to replace it by the object QgsMapSettings. Consequently, also some function names need to be slightly changed (e.g. from setProjectionsEnabled() to setCrsTransformEnabled(), from setLayerSet() to setLayers()) This is the ...


4

Adding a domain would create a dropdown. As an alternative to ArcGIS Desktop, I find ArcGIS Collector App to be the easiest software for working with field crews for emergency management, it's a quick and easy learning curve and can be set up to collect using a celluar network or offline. There are already templates available for emergency management, but ...


4

As Joseph suggested in comment for most of the things it should be sufficient to use expression (I have completely missed that option). I also had no idea it is possible to save that as part of template. Well it works great. The button to insert expression: For example if you like to have in the composer always current date (time) in the format of day/...


4

Instead of templates I suggest to define an OGR outputformat for GeoJSON. Here are advice taken from https://lists.osgeo.org/pipermail/mapserver-users/2013-November/075559.html You can use OGR outputformats. Add something like this to your mapfile OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" ...


4

Yes, same for me when I updated to 2.2:


4

You can create a folder to hold your templates. Create the Shapefiles, style them, set the labels. The, for each of them, save the style/label as a QML file. Right click the layer, go to properties, then style, then hit the style button then save style / QGIS Layer Style File and use the same name as your Shapefile (so mylayer.shp -> mylayer.qml). When you ...


3

You can do this using Data Driven Pages (DDP). Here is a basic guide for setting up DDP in ArcMap. I have started with some random polygons and points I created Turn on the Data Driven Pages toolbar (Customize > Toolbars > Data Driven Pages) and click on the Setup button In the Set Up Data Driven Pages dialog, select the layer you want to loop through (...


3

I've had the same experience - you can't edit ISO 19139 metadata from within the ArcCatalog (I'm using Arc 10.2). You select a metadata profile that you want to use, and when creating the metadata in the catalog is saves it in the ArcGIS metadata format. Then you export your metadata using that profile (i.e. to ISO), and can validate the ISO record against a ...


3

The answer is : logo_item.setPictureFile(path_to_image)


2

I found the problem. When I saved template I did it to different folder than project was saved in. The image was specified through relative path but from project - not template itself. All I had to do was specify image through absolute path. Now the template shows the image. (In the Project / Project properties... Ctrl+Shift+P under General tab / Save ...


2

Not in QGIS 2.8, but in QGIS >= 2.12 you can use the @layout_pageheight and @layout_pagewidth variables in your expressions for the size and position of various items. These will be automatically populated with the width/height of the composer page in mm, and will automatically update if the paper size changes.


2

In the ArcGIS for Desktop documentation the About feature templates page says (with my bolding): Creating features is accomplished through the use of feature templates. Feature templates define all the information required to create a feature: the layer where a feature will be stored, the attributes a feature is created with, and the default tool ...


2

You should save it as a template, so that each time you need it you can click project -> new from template. Just save your .qgs template file and copy it in the template directory (which can be found or specified in the General tab)


2

This is a good source of information Adding report page numbers or dates from Esri, to add the date to your report. Add page numbers or dates to your report to make your report easier to interpret. Page numbers give context to the entire report in terms of how much content there is; dates allow the target audience to understand what point in time the ...


2

There is no such tool as far as I know. Since there is no schema for project files (Seeking detailed description of qgs file structure?), it would seem rather unsave to run automatic cleaning.


2

GeoServer looks in a list of places for templates: Look into GEOSERVER_DATA_DIR/workspaces/<workspace>/<datastore>/<featuretype>/content.ftl to see if there is a feature type specific template Look into GEOSERVER_DATA_DIR/workspaces/<workspace>/<datastore>/content.ftl to see if there is a store specific template Look into ...


2

To include the styles in your project, you need to define and save your style in project file (or in .qml , .SLD file or a database) from your layer properties. Then your style will be applied automatically to the layers when you open the project. You can achieve this goal using the Style combobox at the bottom of the Layer Properties dialog with the add ...


2

There is no user interface for MapServer. You need to create your own or use some wrapper like NextGIS Web. See: http://docs.nextgis.com/docs_ngweb/source/mapstyles.html You can try this functionality on http://nextgis.com/ or install NextGIS Web + nextgisweb_mapserver extension on your own server.


2

Mapserver is only pushing cartographic web services (WMS, WFS, etc.). These become you data source that you show on a map. The web map can be built using a wrapper like NextGIS Web (as suggested by user Dmitry Baryshnikov) or Mapbender, etc. You can even use these services is QGIS or ArcMap. You can build a web maps from scratch using HTML/CSS and ...


2

On HTML response, checking "org.geoserver.template.FeatureWrapper" class on Geoserver looks like bbox is not available (You could check it too to see all available variables parsed). But still you can get the Geometry WKT which is useful for to recreate bbox: content.ftl: <ul> <#list features as feature> <li><b>Type: ${type.name}&...


2

Not exactly what you asked for, but there is an option in the settings to reuse the last entered attribute value in the QGis form, maybe this helps. You can find it under Settings-> Options->Digitizing -> Feature creation.


2

In this case, you have to change the map, no the scale, you can use this: map = layout.itemById("principal map") map.setScale(12500) if you don't have a itemByID, the other option is this: layout = project.layoutManager().layoutByName("RAMMS_Karte_layout_de") page = layout.pageCollection() for i in items: if isinstance(i, QgsLayoutItemMap): ...


2

Use the atlas composer and the lock layers data defined override option Create a csv (or other file) listing all the maps you want to create, this will be a column labelled layerMap1, layerMap2 containing the layers for each map - this will be in the format "ANIMAL|Basemap" load the csv into qgis, then in the print composer, set the atlas coverage layer to ...


1

arcpy.ListDataFrames(mxd) returns a list of dataframes. If you don't specifiy the second parameter with a string, you will get a list of all the dataframes available in the MXD. If you do populate the second paramter, it will only return frames that meet the wildcard criteria. So the code would look something similar to this for two dataframes: dataframe = ...


1

I don't know how the "common" data is stored right now, so will assume it is in a format that can be read by ArcGIS Desktop. A .mxd basically store paths to data sources and draw them on the screen. So you could have a Geodatabase with common data and a Geodatabase for each project. (Update) ESRI has the .lyr file that stores the path to the source and ...


1

When it is the same area to be shown on multiple maps, I use data driven pages, that are identical (rectangles?) in terms of geometry. Map title and other things are stored in relevant fields of the pages layer. The script hides/unhides groups by looking at group names. Thus there is no drama when asked to change tiny things common to set of maps, e.g. ...


1

I think it would look something like: [standard template] ... <xsl:variable name="quote">"</xsl:variable> ... [standard template] ... <xsl:for-each select="esri_wms:FeatureInfo"> <tr> <xsl:if test="(position() + 1) mod 2"> <xsl:attribute name="bgcolor">#eeeeee</xsl:attribute> </xsl:if> <...


1

XSL transformation is the only way to handle your purpose. ArcGIS Server offers some templates to conduct this BUT when you use the ArcGIS Server xslt templates and modify them so that only some selected attributes will be shown, this template will be used for ALL services the server publish! You cannot configure that the template will be used only for a ...


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