[QGIS-Developer] QEP: Add z/elevation slicing and filtering to map renders

2020-11-18 Thread Nyall Dawson
Hi all,

Please see https://github.com/qgis/QGIS-Enhancement-Proposals/issues/201
for a proposal regarding adding z/elevation based filtering to 2d map
renders.

Thoughts and feedback welcome!
Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Library behind native plugin 'Check Geometries'

2020-11-18 Thread Nyall Dawson
On Wed, 18 Nov 2020 at 20:10, Jakob  wrote:
>
> What is the rutine or library behind - that the QGIS native plugin Check
> Geometries uses. This plugin finds at lot more topological errors and other
> data inconsistencies than PostGIS st_isvalid() by GEOS and the QGIS menu
> Vector > Geometry Tools > Check Validity (Method QGIS or GEOS).

It's an internal QGIS routine, all located here:
https://github.com/qgis/QGIS/blob/master/src/core/qgsgeometryvalidator.cpp

Hope that helps!
Nyall




>
> Jakob
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Change "Compression" of PDF/GeoPDF

2020-11-18 Thread Felix Feckler

Dear List,

I am trying to change the Compression of my PDF's/GeoPDF's when i export 
a print compose.


So I edited the GDAL driver for PDF (Settings > Options > GDAL), but 
that seems to have no effect.


Someone got an Idea?

Greetings,

Felix

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Library behind native plugin 'Check Geometries'

2020-11-18 Thread Jakob
What is the rutine or library behind - that the QGIS native plugin Check
Geometries uses. This plugin finds at lot more topological errors and other
data inconsistencies than PostGIS st_isvalid() by GEOS and the QGIS menu
Vector > Geometry Tools > Check Validity (Method QGIS or GEOS). 

Jakob



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Setting a custom CRS for the map canvas

2020-11-18 Thread Tim Sutton
Thank you very much Matthias, that fixed it.

Updated my Gist accordingly here:
https://gist.github.com/timlinux/1057c2c6b5ebda6ed2b5aa8c5aa21372

Regards

Tim

On Tue, Nov 17, 2020 at 7:57 AM Matthias Kuhn  wrote:

> Hi Tim,
>
> Does it help if you directly call `mapCanvas.setDestinationCrs()` instead
> of setting the crs on `mapSettings()`?
>
> The returned mapSettings object is not meant to be modified.
>
> Matthias
>
>
> On Tue, Nov 17, 2020 at 12:58 AM Tim Sutton  wrote:
>
>> Hi Folks
>>
>> I am trying to update a 2.x snippet I have which iteratively sets the CRS
>> with sequentially higher LO values:
>>
>> https://gist.github.com/timlinux/1057c2c6b5ebda6ed2b5aa8c5aa21372
>>
>> # Uses a trick from Alexander Neto: "I created a orthographic projection
>> with lisbon longitude, but with a south hemisphere latitude
>> # That way kinda looks 3d"
>> # This will make the QGIS use a world projection and then move the center
>> # of the CRS sequentially to create a spinning globe effect
>> import time
>> from subprocess import call
>> longitude_increments = 5
>> image_counter = 1
>> for i in range(-180, 180, longitude_increments):
>>   definition = (
>>   '+proj=ortho +lat_0=-20 +lon_0=%i +x_0=0 +y_0=0 +R=6371000 +units=m
>> +no_defs +type=crs' % i)
>>   crs = QgsCoordinateReferenceSystem()
>>   crs.createFromProj(definition)
>>   iface.mapCanvas().mapSettings().setDestinationCrs(crs)
>>   #iface.mapCanvas().setMapUnits(0)
>>   iface.mapCanvas().refresh()
>>   iface.mapCanvas().saveAsImage(
>> '/tmp/globe-%03d.png' % image_counter)
>>   image_counter += 1
>>   print (definition)
>>   time.sleep(1)
>> # Now generate the GIF. If this fails try run the call from the command
>> line
>> # and check the path to convert (provided by ImageMagick) is correct...
>> call('/usr/bin/convert -delay 35 -loop 0 /tmp/globe-*.png /tmp/globe.gif')
>>
>> The  example python above using Orthographc North will hopefully make a
>> more pleasing looking spinny globe. However, in QGIS 3.x the code runs
>> but if I inspect the mapcanvas CRS after setting the new CRS, it still
>> shows the old CRS. Can anyone see what I am missing here?
>>
>> Thanks!
>>
>> Regards
>>
>> Tim
>>
>> --
>>
>> --
>>
>> Tim Sutton
>> Visit http://kartoza.com to find out about open source:
>>  * Desktop GIS programming services
>>  * Geospatial web development
>> * GIS Training
>> * Consulting Services
>> Tim is a member of the QGIS Project Steering Committee
>>
>> ---
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>

-- 
--
​

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer