Quick Osm Qgis

0 views
Skip to first unread message

Octavis Uberstine

unread,
Aug 4, 2024, 7:00:28 PM8/4/24
to hosloreare
QGISQuick is a QT Quick based GUI library primarily for mobile/tablet devices. Covering basic GIS components (e.g. MapCanvas, Scalebar), it simplifies creation of a mobile applications for surveys, data gathering or other on-site work. Qt Quick provides tools to create a rich application with a fluid and dynamic user interface. Additionally, Qt Quick Controls 2 provides highly optimized controls for embedded/mobile devices with limited resources.

The element refers to current position according gps location device connected to it. It holds information about longitude, latitude, altitude, direction of the movement and accuracy of the signal. See also QgsQuickPositionKit.


A QML component that shows the scale ratio between its length and distance on the MapCanvas. There are predefined rounded values for several zooming levels with 'm' or 'km' postfixes. After any zoom in/out event on canvas recalculates its properties and updates text. See also QgsQuickScaleBarKit.


Since the QGIS Quick library is meant to be reusable for a wide variety of applications with different styles/themes of the user interface, some effort has been done to allow developers customize the colors and layouts of the components. Individual components either have attributes for customization (e.g. ScaleBar has "barColor", "barBackgroundColor" properties) or more complex components accept a custom styling object (e.g. FeatureForm has "style" property of type FeatureFormStyling with a hierarchy of color and layout properties).


QML engine supports versioning of individual components with libraries - a single component may be available in multiple versions with slightly different set of features. This is allows QML libraries to keep API compatibility with older code.


QGIS Quick library is currently in version 0.1 and since it is still a very new library, there are no API stability guarantees: the following releases of QGIS may ship updates to components while keeping the same version or even remove some components. Over time we expect that as the library will become stable, we will deliver stable API just like with the other QGIS libraries.


Qt Quick uses pixel sizes for the visual items. When building applications that may run on devices with varying screen DPI, this is a problem as the absolute pixel values make the application look different depending on the screen pixel density. We recommend to use values device independent pixels ("dp"). It is a concept used on mobile devices, where an item of width of 10dp will have always the same physical size (e.g. in millimeters) regardless of the screen density. To set width of an item to 10dp in QML, one would write: "width: 10 * QgsQuick.Utils.dp".


The QGIS Quick library is not built by default because QGIS application currently does not use it. In order to build the library please make sure that WITH_QUICK variable in CMake configuration is set to ON.


It is recommended to build with CMake variable ENABLE_TESTS set to ON because that will also build a small example application that uses Qt Quick components. In the generated project you should see target "qgis_quickapp".


The built QML plugin is installed to a dedicated directory - see QgsApplication::qmlImportPath(). When using QGIS Quick components, it is necessary to either use QQmlEngine::addImportPath() to add that directory or to specify QML2_IMPORT_PATH environment variable.


For some reason my landsat imagery through QuickMapServices is not showing up. I set the CRS to Albers Equal Area NAD 5070. It does say "Getting Tiles", so I'm not sure if it just takes hours to load?


It shouldn't take hours for a basemap to load. It shouldn't even take more than a minute, and that's with a very slow internet connection. Loading time on my computer (with a mediocre internet connection and at least a 5 year old desktop) is less than a second.


In my experience, not all the basemaps listed in the quickmapservices plugin menu actually work. I don't think I've ever been able to load the landsat layer. Try a few different maps from different data providers. The maps from OSM, Google, Bing, Stamen, CartoDB and ESRI usually work for me. (Some of those are extra basemaps that you can get by installing the "contributed pack.")


Also try putting your project in WGS84 or WGS84/Web Mercator. The basemaps seem to load more quickly in their native CRS's, which is usually one of those two. (I haven't seen this documented anywhere, it's just based on my personal experience). Once you find a basemap that works you can change it back to the CRS you want.


Or, you can first load a local layer (eg, get a shapefile for the state/province/country/county/city where you'll be doing your mapping). Zoom to that layer, and test out different basemaps until you find one that works at that scale.


All articles published by MDPI are made immediately available worldwide under an open access license. No special permission is required to reuse all or part of the article published by MDPI, including figures and tables. For articles published under an open access Creative Common CC BY license, any part of the article may be reused without permission provided that the original article is clearly cited. For more information, please refer to


Feature papers represent the most advanced research with significant potential for high impact in the field. A Feature Paper should be a substantial original Article that involves several techniques or approaches, provides an outlook for future research directions and describes possible research applications.


Abstract: Rockfalls are widespread, rapid, and high-energy landslide phenomena that could potentially affect large portions of populated lands. The preliminary identification of the most rockfall-prone zones is a challenging task, especially in times of extreme and unpredictable climate change. Even slight environmental modifications can produce significant consequences in terms of exposure, hazard, and risk. Therefore, a timely risk assessment is paramount for territorial administrators to plan and prioritize adequate countermeasures. Risk assessment is crucial to guaranteeing the safety of human lives, the integrity of structures and infrastructures, the preservation of historic and environmental heritage, and the safeguard of economic activities. Hence, new and rapid evaluation methods for rockfall hazard, vulnerability, and risk are needed to identify the most critical areas where more indepth analyses aimed at the design of protective works should be carried out. This study proposes a quick, innovative, and completely GIS-based procedure to preliminarily assess rockfall time-independent hazard and risk in large areas. Propagation analysis is performed by integrating powerful QGIS plugin QPROTO, which can estimate rockfall energy within the invasion area in a simplified way, with the slope units polygons of the Italian territory for the definition of the input parameters. The quantification of risk was obtained by the application of the multidisciplinary IMIRILAND methodology, again within a free and open QGIS environment. Lastly, to test the capabilities of the method, the procedure was applied to a case study of the Sorba Valley (Piemonte, Italy), a tourist region in the northwestern Italian Alps. The findings offer an important contribution to the field of land-planning activities and risk-management strategies. Keywords: rockfall; rockfall risk; QGIS; QPROTO; IMIRILAND


Torsello, Giulia, Gianmarco Vallero, Lorenzo Milan, Monica Barbero, and Marta Castelli. 2022. "A Quick QGIS-Based Procedure to Preliminarily Define Time-Independent Rockfall Risk: The Case Study of Sorba Valley, Italy" Geosciences 12, no. 8: 305.


Download and extract the Natural Earth Quick Start Kit data. Open QGIS. Locate the Natural Earth quick start folder in the Browser panel. Expand the folder to locate the Natural_Earth_quick_start_for_QGIS_v3 project. This is the project file that contains styled layers in QGIS Document format. Double-click the project to open it.


Project variables are a great way to store project-specific values for use anywhere you can use an expression in QGIS. The Natural_Earth_quick_start_for_QGIS_v3 project comes with many preset variables that are used for styling within that project.


For Japan, Japan Plane Rectangular CS is a projected coordinate referencesystem (CRS) that is designed for minimum distortions. It is divided in 18zones and if you are working for a smaller region in Japan, using this CRSwill be better.


Now we will add a map inset that shows a zoomed in view for the Tokyo area. Before we make any changes to the layers in the main QGIS window, check the Lock layers and Lock styles for layers boxes. This will ensure that if we turn off some layers or change their styles, this view will not change.


Switch to the main QGIS window. Turn off the layer group z5 - 1:18m and activate the z7 - 1: 4m group. This layer group has styling that is more appropriate for a zoomed-in view. Use the pan and zoom controls in the Map Navigation Toolbar and zoom around Tokyo.


Drag a rectangle at the place where you want to add the map inset. You will now notice that we have 2 map objects in the Print Layout. When making changes, make sure you have the correct map selected.


Select the Map 2 object that we just added from the Items panel. Select the Item properties tab. Scroll down to the Frame panel and check the box next to it. You can change the color and thickness of the frame border so it is easy to distinguish against the map background.


One neat feature of the Print Layout is that it can automatically highlight the area from the main map which is represented in the inset. Select the Map 1 object from the Items panel. In the Item properties tab, scroll down to the Overviews section. Click the Add a new overview button.

3a8082e126
Reply all
Reply to author
Forward
0 new messages