Re: [Qgis-user] MMQGIS - Reverse geocoding -REQUEST_DENIED

2024-09-19 Thread Keith Jenkins via QGIS-User
Hi, Krishna.

The URL for the Google reverse geocoding seems to be on line 1464 of
mmqgis_library.py, and is already https

What do you get if you go to the following URL with your Google API key?
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.0262,-75.0301&key={your_api_key}

If you get a REQUEST_DENIED error with that, then it would seem that
the API key is invalid.

Keith


On Thu, Sep 19, 2024 at 9:03 PM krishna Ayyala via QGIS-User
 wrote:
>
> In continuation to the question posted below, I am also attaching 
> mmqgis_library file. I opened this in notepad++ .In line 288, I don’t see 
> anything that starts with 'http://'. However, someone in the QGIS forums 
> suggested changing the URL in line 288 of mmqgis_library.py to begin with 
> 'https' instead of 'http'.
>
> -- Forwarded message -
> From: krishna Ayyala 
> Date: Thu, Sep 19, 2024 at 5:43 PM
> Subject: MMQGIS - Reverse geocoding -REQUEST_DENIED
> To: qgis-user 
>
>
> Hello,
> I do not know scripting or programming. I am using Reverse Geocode tool as 
> shown below. I am getting the below error. Can anyone help me fix this?
> Regards.
>
>
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Query - Dynamic Text - Layer Credits

2024-07-26 Thread Keith Jenkins via QGIS-User
Hi, Alanna.

I was able to replicate this issue here by adding a label to a layout
using the dynamic text "Layer Credits", which creates a label using
this expression:
[%array_to_string(map_credits())%]

It seems that that expression will include any credits specified in
the QGIS metadata for each layer that appears on the layout.  To
adjust (or remove) the credit text for a layer, open the Layer
Properties > Metadata > Access and edit the value shown for the
"Rights (attribution or copyright)" section.

I'm guessing that the text string "REQUIRED: Restrictions and legal
prerequisites for using the data set after access is granted" was in
the rights metadata of one of the datasets you are including on your
map.  I've occasionally seen such values in cases where the data
creator (even an otherwise authoritative government entity) started
their metadata from a template and never finished editing it properly.

There are some more details about the map_credits() function and its
options (like saying which data layer the credit applies to) here:
https://docs.qgis.org/3.34/en/docs/user_manual/expressions/functions_list.html#map-credits

Hope this helps!

Keith


On Fri, Jul 26, 2024 at 3:50 AM Alanna Mitchell via QGIS-User
 wrote:
>
> Good Day QGIS Users,
>
> I wanted to enquire about dynamic text - map properties - layer credits.
>
> I use this in the print layout, usually to credit Google or OSM. However, for 
> Google, sometimes the dynamic text is simply 'Map data ©2015 Google', however 
> sometimes this changes to 'REQUIRED: Restrictions and legal prerequisites for 
> using the data set after access is granted., Map data ©2015 Google'. This may 
> change mid map, or if I am creating two maps back to back using the same base 
> layer (Google Satellite), between the two maps this may change. The changes 
> could be as simple as having the same vector layer displaying different 
> symbology/properties. Would anyone know why this is happening and how to 
> prevent this?
>
> Kind regards,
> Alanna
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] merging parts from various raster files

2024-05-01 Thread Keith Jenkins via QGIS-User
Another option would be to use the "Rasterize (vector to raster)" tool
to create a raster where the pixel value is region number, and then
use "Raster Calculator" with a formula like this:

"U11@1"*("RR@1"=11) + "U21@1"*("RR@1"=21) + "U22@1"*("RR@1"=22) + etc.

Where U11, U21, U22... are your original rasters, and RR is the
rasterized region polygons.  This will effectively copy the values
within each region from the corresponding raster.

Keith


On Tue, Apr 30, 2024 at 2:10 PM Sibylle Stöckli via QGIS-User
 wrote:
> Selection of the raster file modelled with the input data for this 
> biogeoregion. Reminder, my ecosystem service model is just able to provide 
> output for the entire country, but each biogeoregion should be modelled with 
> it’s respective input data. In this way, from the model with the input data 
> form biogeoregion 1 I just need the output from biogeoregion 1 etc.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Import qml-style-files

2024-01-17 Thread Keith Jenkins via QGIS-User
Another method is from the "Style Manager" tab of the Layer Styling
panel, click the folder icon ("Load Style") and then select the .qml
file.

Note that the "Style Manager" tab (6th tab on the left side of the
Layer Styling panel) is different from the "Style Manager" in the
Settings menu.

Keith


> On 2024-01-17 16:36, Bernhard Seckinger via QGIS-User wrote:
> > I know how to save a style in an qml file (using context menu "export",
> > save as QML file). But I didn't find any possibility to load it. Is there
> > any? (The style manager has an import feature, but it expects xml files
> > and not qml files.)
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Error! No Internet connection? OSM Place Search plugin error

2023-09-13 Thread Keith Jenkins via QGIS-User
Hi, Jared.

Yes, the problem seems to be when checking the "Add address search"
box under the "Appearance" tab in qgis2web and exporting to OpenLayers
(as noted by Andrea).

I checked the network traffic from an exported map, which is making a
request like:
https://nominatim.openstreetmap.org/search/?q=kinshasa&format=json&addressdetails=1&limit=5&countrycodes=&accept-language=en-US

According to the response to that request, the Nominatim API has been
changed, making the request invalid.  However, it is an easy fix,
since a single slash just needs to be removed.

In the ol-geocoder.js file that is created by qgis2web, search for:
"https://nominatim.openstreetmap.org/search/";

and change it to
"https://nominatim.openstreetmap.org/search";

And then the search box should work.

Cheers,
Keith
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Possibility for Labels as Hyperlinks in PDF Output?

2023-09-11 Thread Keith Jenkins via QGIS-User
I don't think the label "HTML formatting" currently supports links.
The supported HTML is just a subset of HTML, mainly focused on visual
styles:

"""
The HTML formatting option enables the proper rendering of some HTML
tags to customize the label. The supported HTML tags are:

* Color, applicable to text, underline, strikethrough, and overline
* Font properties (font family, font size, bold and italic)
* Superscript and subscript components in text
"""
https://docs.qgis.org/testing/en/docs/user_manual/style_library/label_settings.html#text-tab

Keith

On Mon, Sep 11, 2023 at 9:28 AM Mike Treglia via QGIS-User
 wrote:
>
> Hi all,
>
> Working on a project where the desired output is PDF map, where the labels 
> are hyperlinks. From searching around, it seems like there are, at least 
> historically, some challenges related to this functionality and Qt, which 
> might still be present?
>
> I'm finding that in the Print Composer in QGIS, I can add a label that 
> functions as a hyperlink in an exported PDF (using the "render as HTML" 
> functionality"), but labels associated with a layer, placed in the main map 
> window, do not function as hyperlinks when exported as a PDF.
>
> Thus, wanted to check if maybe either I'm missing something - like this 
> is/should be possible, or if not directly, maybe there's an efficient 
> work-around?  I'm working in QGIS 3.32-2 most immediately for testing this, 
> on Windows.
>
> Thanks, all, for any insights!
> Mike
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user