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.
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
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 ...
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 ...
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/...
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
MIMETYPE "application/json; subtype=geojson"
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 ...
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 (...
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 ...
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 ...
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.
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 ...
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)
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 ...
GeoServer looks in a list of places for templates:
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 ...
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 ...
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.
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 ...
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:
<#list features as feature>
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.
In this case, you have to change the map, no the scale, you can use this:
map = layout.itemById("principal map")
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):
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 ...
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 = ...
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 ...
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. ...
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 ...