[QGIS-it-user] MagicWand in python Console

2023-04-06 Per discussione Giulio Fattori

Buongiorno,

ho notato le modifiche nella console, tra cui la magicwand per 'Reformat 
Code'


al tentativo di usarla appare il messaggio /'The Python modules isort, 
autopep8 are missing'/


ho tentato di installarli dal setup di osgeo ma senza risultato, pare 
non siano disponibili.


C' è soluzione ?

Sarebbe un ottimo aiuto.

Buona Pasqua a tutti

A presto

Giulio
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] API data importing

2023-04-06 Per discussione Allan Younger via QGIS-User

Have tried to use LINZ Data Importer plugin.
Have pasted API Key but have this Message in plugin which cannot remove
Have re-installed plugin but message remains.
Chrs
Allan Younger
___
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] Identify features

2023-04-06 Per discussione Thayer Young via QGIS-User
 Hi Dario,
In the QGIS 'Preferences' under 'Map Tools' at the top of the window 'Identify' 
you can set the 'Search radius for identifying features and displaying map 
tips'  the default is 2.00 mm.
In the 'Identify Results' panel you can also set the tool to 'Identify Features 
by Radius', which allows you to set the radius every time with two clicks.The 
default setting 'Identify Features by Area or Single Click' also allows you to 
click and drag to select within a rectangle.

-Thayer

On Thursday, April 6, 2023 at 03:00:46 PM EDT, 
qgis-user-requ...@lists.osgeo.org  wrote:
From: Dario C 
To: QGIS User List 
Subject: [Qgis-user] Identify features
Message-ID:
    
Content-Type: text/plain; charset="utf-8"

Hi,

Is there any way to decrease or increase "identify features" action area?

Thank you,
Dario


  ___
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-it-user] Cancellazione console

2023-04-06 Per discussione Andrea Giudiceandrea via QGIS-it-user

Il 06/04/2023 19:49, Giulio Fattori ha scritto:

che codice occorre per cancellare la console da pyqgis?


Ciao Giulio,
questo dovrebbe fare al caso tuo...

from console import console
console._console.console.shellOut.clearConsole()


A presto.

Andrea
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[QGIS-it-user] Cancellazione console

2023-04-06 Per discussione Giulio Fattori

Buonasera,

che codice occorre per cancellare la console da pyqgis?

Grazie anticipatamente
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Question Re: Map Exporting (How to keep Map

2023-04-06 Per discussione Thayer Young via QGIS-User
 This GIS Stackexchange question and answer should help you:
https://gis.stackexchange.com/questions/312150/why-are-labels-and-looks-different-between-print-layout-and-map-canvas-at-same-s
-Thayer

On Thursday, April 6, 2023 at 11:40:51 AM EDT, Michael Raymond 
 wrote:  
 
 
Thank you, I am experimenting with changing the map canvas now. You’re correct 
as well, I am looking into getting an updated version of QGis also. With an 
updated version of QGis what is the normal function one would otherwise use to 
do this? 
 
  
 
Regards,
 
  
 
Mike
 
  
 
From: Thayer Young 
Sent: 06 April 2023 15:56
To: qgis-user@lists.osgeo.org; Michael Raymond 

Subject: Re: Question Re: Map Exporting (How to keep Map
 
  
 
[CAUTION: EXTERNAL EMAIL]This email originated from outside of the 
organisation. Do not click links or open attachments unless you recognise the 
sender and know the content is safe.
 
Hi Mike,
 
  
 
Firstly I would say that you should seriously think about updating your QGIS, 
as 2.18.28 is very old. The current long term release version is 3.28.5. QGIS 3 
has many improvements over 2, and has been in development for long enough that 
the bugs are mostly worked out. I can not remember your specific issue from 2, 
but I know that labeling has been much improved recently in 3, with very good, 
but not necessarily perfect, correspondence between how labels look in the 
layout and how they look on exported pdf's and images, the difference is mostly 
just that occasionally a label will not shows up on an export when it is 
present in the layout. I have not noticed differences in size or font. The 
correspondence between labels in the map canvas and the layout/print is much 
improved also.
 
  
 
You may want to try adjusting your map canvas scale to match the scale in the 
layout. I have found that there is usually a sweet spot where the map canvas 
labels display almost exactly the same as in the layout.
 
  
 
-Thayer
 
  
 
  
 
On Thursday, April 6, 2023 at 06:14:49 AM EDT,qgis-user-requ...@lists.osgeo.org 
 wrote:
 
From: Michael Raymond 
 
To: "qgis-user@lists.osgeo.org" 
 
Subject: [Qgis-user] Question Re: Map Exporting (How to keep Map
 
    labels the same size when exporting Map as pdf or image via composer
 
    manager)
 
Message-ID:
 
    

 
   
 
Content-Type: text/plain; charset="utf-8"
 
  
 
Good morning,
 
  
 
I?m messaging as, when I export my Map as pdf (or as image) the labels on the 
Map are smaller than what is shown when I preview after ?drawing the map? in 
the composer manager.
 
  
 
At present I can remedy this to an extent by lowering the MAP dpi in composer 
manager, but this obviously comes at the cost of the labels teetering on 
illegibility (which is just another version of the issue I?m trying to remedy 
in the first place). I understand a better remedy might be a case of converting 
the raster layer (which I am only presuming is the underlying map that I?m 
having issues with) ?from pixels to points? (or vice versa).
 
  
 
However, I have QGis version 2.18.28 and there doesn?t appear to be any 
explicit function pertaining to this, and indeed said remedy may in fact be 
something different entirely. Am open to any alternative resolutions if so, 
hope you can help?
 
  
 
Note: Have attached a version of the Map which I?ve managed to sort based on 
lowering the dpi, which as you can see works ok but it would be preferred to 
have it clearer.
 
  
 
Regards,
 
  
 
Mike Raymond ? Place Information Officer
 
Performance, Intelligence and Partnerships
 
North Northamptonshire Council
 
Cedar Drive, Thrapston, Northants NN14 4LZ
 
T: 0300 126 3000 | DD:  07423799714
 
  
 
Twitter:@NNorthantsC
 
Facebook:@NorthNorthants
 
Web:www.northnorthants.gov.uk
 
Any views expressed in this email are those of the individual sender and are 
not necessarily those of North Northamptonshire Council unless explicitly 
stated.

This email (including any attachments) may contain confidential or privileged 
information and is intended solely for the use of the individual or entity to 
whom it is addressed. Any confidential, sensitive or protectively marked 
material must be handled accordingly.

If you are not the intended recipient you must not disclose, distribute, copy, 
print or rely on any of the information contained in the email or attachments, 
and all copies must be deleted immediately. If you do receive this email in 
error, please notify the sender immediately and note that confidentiality or 
privilege is not waived or lost.

North Northamptonshire Council may monitor the contents of emails sent and 
received via its network for the purposes of ensuring compliance with relevant 
legislation and the Council’s policies and procedures. All such monitoring will 
take place in accordance with relevant legislation including privacy and data 
protection legislation. For details of how North Northamptonshire Council uses 
personal information 

[Qgis-user] Identify features

2023-04-06 Per discussione Dario C via QGIS-User
Hi,

Is there any way to decrease or increase "identify features" action area?

Thank you,
Dario
___
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] MBTiles have wrong georeferencing

2023-04-06 Per discussione Namotec, Eberbach am Neckar via QGIS-User

Hi,


I want to georeference a very large SQlite file (MBTiles) and include
it in QGIS3. The tiles can be displayed with QGIS, but the location is
not correct.

What is the best strategy to georeference MBTiles?

According to manual MBTiles does not accept worldfile (wld).
Reference: https://gdal.org/drivers/raster/mbtiles.html

For correct projection scaling and XY shift is enough.

Is it standard to create a Custom Coordinate Reference System (CRS) in
such a case?

Or is GDAL suitable to make a coordinate transformation?

Does anyone know a manual? I am grateful for any hint.


Regards,
Christian Naujoks


gdalinfo:

Driver: MBTiles/MBTiles
Files: map_z6-18.mbtiles
Size is 2097152, 2097152
Coordinate System is:
PROJCS["WGS 84 / Pseudo-Mercator",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["X",EAST],
AXIS["Y",NORTH],
EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null
+wktext  +no_defs"],
AUTHORITY["EPSG","3857"]]
Origin = (0.000,7514065.628809665329754)
Pixel Size = (1.194328566955879,-1.194328566955879)
Metadata:
  ZOOM_LEVEL=17
  name=Unnamed map
  type=baselayer
  version=1.2
  format=jpg
  bounds=0.,40.97989807,22.5000,55.77657302
  attribution=
  scheme=tms
  minzoom=5
  maxzoom=17
  center=11.2500, 48.37823554, 5
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   0.000, 7514065.629) (  0d 0' 0.01"E, 55d46'35.66"N)
Lower Left  (   0.000, 5009377.086) (  0d 0' 0.01"E, 40d58'47.63"N)
Upper Right ( 2504688.543, 7514065.629) ( 22d30' 0.00"E, 55d46'35.66"N)
Lower Right ( 2504688.543, 5009377.086) ( 22d30' 0.00"E, 40d58'47.63"N)
Center  ( 1252344.271, 6261721.357) ( 11d15' 0.00"E, 48d55'21.00"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  Overviews: 1048576x1048576, 524288x524288, 262144x262144,
131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192,
4096x4096, 2048x2048, 1024x1024, 512x512
  Mask Flags: PER_DATASET ALPHA 
  Overviews of mask band: 1048576x1048576, 524288x524288,
262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384,
8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  Overviews: 1048576x1048576, 524288x524288, 262144x262144,
131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192,
4096x4096, 2048x2048, 1024x1024, 512x512
  Mask Flags: PER_DATASET ALPHA 
  Overviews of mask band: 1048576x1048576, 524288x524288,
262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384,
8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  Overviews: 1048576x1048576, 524288x524288, 262144x262144,
131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192,
4096x4096, 2048x2048, 1024x1024, 512x512
  Mask Flags: PER_DATASET ALPHA 
  Overviews of mask band: 1048576x1048576, 524288x524288,
262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384,
8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512
Band 4 Block=256x256 Type=Byte, ColorInterp=Alpha
  Overviews: 1048576x1048576, 524288x524288, 262144x262144,
131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192,
4096x4096, 2048x2048, 1024x1024, 512x512
___
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] Question Re: Map Exporting (How to keep Map

2023-04-06 Per discussione Thayer Young via QGIS-User
 Hi Mike,
Firstly I would say that you should seriously think about updating your QGIS, 
as 2.18.28 is very old. The current long term release version is 3.28.5. QGIS 3 
has many improvements over 2, and has been in development for long enough that 
the bugs are mostly worked out. I can not remember your specific issue from 2, 
but I know that labeling has been much improved recently in 3, with very good, 
but not necessarily perfect, correspondence between how labels look in the 
layout and how they look on exported pdf's and images, the difference is mostly 
just that occasionally a label will not shows up on an export when it is 
present in the layout. I have not noticed differences in size or font. The 
correspondence between labels in the map canvas and the layout/print is much 
improved also.
You may want to try adjusting your map canvas scale to match the scale in the 
layout. I have found that there is usually a sweet spot where the map canvas 
labels display almost exactly the same as in the layout.

-Thayer


On Thursday, April 6, 2023 at 06:14:49 AM EDT, 
qgis-user-requ...@lists.osgeo.org  wrote: 
From: Michael Raymond 
To: "qgis-user@lists.osgeo.org" 
Subject: [Qgis-user] Question Re: Map Exporting (How to keep Map
    labels the same size when exporting Map as pdf or image via composer
    manager)
Message-ID:
    

    
Content-Type: text/plain; charset="utf-8"

Good morning,

I?m messaging as, when I export my Map as pdf (or as image) the labels on the 
Map are smaller than what is shown when I preview after ?drawing the map? in 
the composer manager.

At present I can remedy this to an extent by lowering the MAP dpi in composer 
manager, but this obviously comes at the cost of the labels teetering on 
illegibility (which is just another version of the issue I?m trying to remedy 
in the first place). I understand a better remedy might be a case of converting 
the raster layer (which I am only presuming is the underlying map that I?m 
having issues with) ?from pixels to points? (or vice versa).

However, I have QGis version 2.18.28 and there doesn?t appear to be any 
explicit function pertaining to this, and indeed said remedy may in fact be 
something different entirely. Am open to any alternative resolutions if so, 
hope you can help?

Note: Have attached a version of the Map which I?ve managed to sort based on 
lowering the dpi, which as you can see works ok but it would be preferred to 
have it clearer.

Regards,

Mike Raymond ? Place Information Officer
Performance, Intelligence and Partnerships
North Northamptonshire Council
Cedar Drive, Thrapston, Northants NN14 4LZ
T: 0300 126 3000 | DD:  07423799714

Twitter:@NNorthantsC
Facebook:@NorthNorthants
Web: www.northnorthants.gov.uk
  ___
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