I am using qgis2web (QGIS 3.34.9) to display a map of trees and shrubs
in a public park. A popup for each feature shows a link to an HTML
page that includes name and picture of that feature. I would prefer to
have a single mouse click take the user to that HTML page rather than
requiring two
In my desktop QGIS I have a short Python script that opens an HTML page
including arguments (attributes of the selected feature). When I use
QGIS2web to put the project on the web, I would like the user to
trigger that action when he/she clicks on a feature. I would be
grateful for advice on
In my desktop QGIS project, I define an "action" that opens an HTML page
and passes parameters to it. I will use qgis2web to move the project to
a web site and would like the web user to trigger that action by
clicking on a feature. Is there a way to do this?
Steve
___
Adam -
Thanks for your sage advice. Prepending file:// solves my problem
when the target HTML file is on my desktop hard drive. The arguments
are sent and received correctly.
I still have what turns out to be an unimportant problem when the
target HTML file is on the web (I use a fr
I want to create a situation where clicking on a feature in a vector
layer opens an HTML file and passes several attributes of the feature
to the HTML file. I have successfully created an action which opens the
HTML file, but I can't figure out how to pass the arguments.
My action "type
0]
https://docs.qgis.org/3.28/en/docs/user_manual/map_views/map_view.html#interaction
[1]
https://docs.qgis.org/3.28/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html#digitizing-an-existing-layer
Le 11 juin 2023 01:22:43 GMT+02:00, Stephen Sacks via QGIS-User
a écrit :
My intention was to create a new vector layer consisting of several
polygons. I used the CreatePolygon tool to mark the four vertices of a
rectangle. I must have done something wrong because I've ended up with
a polygon that seems to belong to no layer. In desperation I ran the
following py
It turns out that my problem is not getting the map from New York's
DOITT, but in re-projecting it from EPSG:900913 to the project's
EPSG:2263. If I leave it in EPSG:900913 it doesn't disappear. But I
worry that some trouble may result if my basemap has a different CRS
from all the other laye
My project CRS is EPSG:2263; all 21 layers were created in this project
with CRS EPSG:2263 , which seems appropriate for a public park in
Brooklyn, NY. If I use Google Satellite Hybrid as basemap, everything
looks to be in the right place. I would like to replace the Google
basemap with o
t QGIS
decides that it has the same 'base name'.
If all that fails: I would create a Feature Request for it (or start
using Geopackages ...)
Note that using geopackages, you also have 1 file, and you can save
style INTO the geopackage (and even put more layers+styles into it etc
etc)
.
Cheers - Phil
*From:*Qgis-user *On Behalf Of
*Stephen Sacks via Qgis-user
*Sent:* Sunday, 29 May 2022 5:29 AM
*To:* qgis forum
*Subject:* [Qgis-user] adding a layer from a zipped file
When I write a layer as a shape file, it appears on my C: drive as six
files, all with the same name but
When I write a layer as a shape file, it appears on my C: drive as six
files, all with the same name but different extensions. Then I zip
those six into a single file (xxx.zip). When I reload that layer from
the zip file (Layer > AddLayer > VectorLayer > File > Dataset >
xxx.zip), QGIS is a
In case there may be someone out there who is interested in my question,
below is Asim's answer (with one correction he made). When run in the
Python console, this code causes execution of the script to stop and a
window to pop up titled "Execution error" with my explanatory message.
And, u
I would like to terminate a Python script gracefully. Both quit() and
exit() not only abort the script but end the entire QGIS app. For
example, if a file I want to read doesn't exist, the following four
lines of code terminate QGIS:
filePath = Path(fName)
if not filePath.is_file():
prin
Please pardon what may be a dumb question from a self- (half-) taught
student of Python. I often steal fragments of code from the internet
(especially including this forum) and sometimes get an error message
like "xxx is not an attribute of yyy" . My problem, I think, is a
missing " from x
8 PM, Sebastian Gutwein wrote:
If you change it to hidden in the layer properties>attribute form>
widget type you won't see it in the identify window or feature form
window.
The default is text.
On Sun, Mar 20, 2022 at 8:18 PM Stephen Sacks via Qgis-user
wrote:
I would like to li
I would like to limit which fields appear in the popup window when I
click on a feature. In the layer's attribute table, I can Hide a field
but it still appears in the popup window when I click a feature with the
Identify tool.
___
Qgis-user mailing l
17 matches
Mail list logo