[Qgis-user] trigger action in qgis2web

2023-12-02 Thread Stephen Sacks via QGIS-User
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

[Qgis-user] how to trigger an "action" on a web map

2023-09-30 Thread Stephen Sacks via QGIS-User
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

Re: [Qgis-user] action to open an HTML file with arguments

2023-09-10 Thread Stephen Sacks via QGIS-User
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

[Qgis-user] action to open an HTML file with arguments

2023-09-08 Thread Stephen Sacks via QGIS-User
   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

Re: [Qgis-user] mysterious polygon

2023-06-10 Thread Stephen Sacks via QGIS-User
ttps://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 

[Qgis-user] mysterious polygon

2023-06-10 Thread Stephen Sacks via QGIS-User
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

[Qgis-user] trouble adding a basemap from a WMTS source

2022-07-06 Thread Stephen Sacks via Qgis-user
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

[Qgis-user] trouble adding a basemap from a WMTS source

2022-07-04 Thread Stephen Sacks via Qgis-user
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

Re: [Qgis-user] adding a layer from a zipped file

2022-05-30 Thread Stephen Sacks via Qgis-user
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). Regards, Richard Duivenvoorde On

Re: [Qgis-user] adding a layer from a zipped file

2022-05-29 Thread Stephen Sacks via Qgis-user
- 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 different

[Qgis-user] adding a layer from a zipped file

2022-05-28 Thread Stephen Sacks via Qgis-user
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

[Qgis-user] quit() and exit()

2022-05-03 Thread Stephen Sacks via Qgis-user
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,

[Qgis-user] quit() and exit()

2022-05-02 Thread Stephen Sacks via Qgis-user
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():    

[Qgis-user] from xxx import zzz

2022-03-28 Thread Stephen Sacks via Qgis-user
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

Re: [Qgis-user] hide attribute from popup window

2022-03-21 Thread Stephen Sacks via Qgis-user
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 limit whi

[Qgis-user] hide attribute from popup window

2022-03-20 Thread Stephen Sacks via Qgis-user
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