[Qgis-user] set Z component of PointZ from field

2019-09-03 Thread Andreas Plesch
metry in a script and replace the existing geometry, but just updating the the existing z would seem most straightforward. Is it possible ? Any feedback much appreciated, -Andreas -- Andreas Plesch Waltham, MA 02453 ___ Qgis-user mailing list Qgis-u

Re: [Qgis-user] Aligning georeferenced USGS historical map

2018-11-19 Thread Andreas Plesch
road intersections or bends, or the coastline, and regeoreference using spline warping. -Andreas On Fri, Nov 16, 2018 at 8:36 AM Andreas Plesch wrote: > Looking at > > > https://ngmdb.usgs.gov/img4/ht_icons/Browse/CA/CA_Tamalpais_301790_1897_62500.jpg > > there is a note in

Re: [Qgis-user] Aligning georeferenced USGS historical map

2018-11-16 Thread Andreas Plesch
Looking at https://ngmdb.usgs.gov/img4/ht_icons/Browse/CA/CA_Tamalpais_301790_1897_62500.jpg there is a note in the lower right corner: Polyconic projection. To place on North American datum, move projection lines 690 ft south and 320 ft west. https://en.m.wikipedia.org/wiki/American_polyconic_

[Qgis-user] multipart to singlepart Z fix for 2.18

2017-07-12 Thread Andreas Plesch
Looking at the source, 2.99 seems to fix the issue that the multipart to singlepart vector geometry tool does not preserve Z values for 3d geometries. 2.18.10 seems to still have this issue, at least 2.18.3 has it. It turns out that it is straightforward to backport the 2.99 fix to 2.18, so I thou

Re: [Qgis-user] wkt multipoint via delimited text requires internal parens

2017-07-12 Thread Andreas Plesch
hat about testing for the 'standard' wkt form by looking for double parentheses with '(\\s*(' instead ? On Wed, Jul 12, 2017 at 10:05 AM, Andreas Plesch wrote: > Hi, I could narrow down the error to negative coordinates: > > This works on the console: > >>&

Re: [Qgis-user] wkt multipoint via delimited text requires internal parens

2017-07-12 Thread Andreas Plesch
ordinates work with parentheses: >>> QgsGeometry.fromWkt('MULTIPOINTZ((-2 2 4),(3 3 4))').exportToWkt() u'MultiPointZ ((-2 2 4),(3 3 4))' If there are no objections, I will file a report on the bug tracker. -Andreas On Tue, Jul 11, 2017 at 7:09 PM, Andrea

[Qgis-user] wkt multipoint via delimited text requires internal parens

2017-07-11 Thread Andreas Plesch
porting as MULTIPOINTZ seemed the easiest option. Is there another option ? Thanks, Andreas -- Andreas Plesch 39 Barbara Rd. Waltham, MA 02453 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user U

Re: [Qgis-user] [processing] gdal warp -te confusion

2017-06-13 Thread Andreas Plesch
setting, and ProcessingConfig.setSettingValue(settingskey, value) modifies the setting. This way a warning can be temporarily disabled and then restored. Seems to work well, -Andreas On Sun, Jun 11, 2017 at 6:40 PM, Andreas Plesch wrote: > I am using the gdal warp (reproject) processing algori

[Qgis-user] [processing] gdal warp -te confusion

2017-06-11 Thread Andreas Plesch
I am using the gdal warp (reproject) processing algorithm in 2.18.9 with the 'Set georeferenced extents of output file' option, eg. the -te command line switch. I am warping from unprojected to UTM coordinates. Here is a correctly constructed console call gdalwarp -ot Float32 -t_srs EPSG:32611 -r

Re: [Qgis-user] styled vector to raster layer

2017-05-31 Thread Andreas Plesch
otherwise only uses PyQt4 ? PyQt4 does not seem to have a QtWidgets module. Is there perhaps an environmental variable to set ? Anything I can check ? -Andreas On Wed, May 31, 2017 at 2:14 PM, Andreas Plesch wrote: > Hi Matthias, > > sounds like exactly what I need. Unfortunately, QFieldSyn

Re: [Qgis-user] styled vector to raster layer

2017-05-31 Thread Andreas Plesch
u can use the QFieldSync plugin which comes with a processing algorithm > that renders a styled map within a given extent to a raster dataset. > > Matthias > > On 5/31/17 6:29 PM, Andreas Plesch wrote: > > Responding to myself, I found this processing script in the script > r

Re: [Qgis-user] styled vector to raster layer

2017-05-31 Thread Andreas Plesch
necessary to clone the mapcanvas maprendercontext to preserve current settings ? The main idea is to use the rasterized, styled vector layer as a georeferenced image outside of QGis. -Andreas On Tue, May 30, 2017 at 2:19 PM, Andreas Plesch wrote: > I feel I am missing a basic function somewh

[Qgis-user] styled vector to raster layer

2017-05-30 Thread Andreas Plesch
I feel I am missing a basic function somewhere to "burn" (in gdal terms) a vector layer as styled by QGIS, for example with labels, to a raster layer (of some resolution). The Rasterize (vector to raster) function is based on gdal_rasterize and does not take into account styling as it focuses on p

[Qgis-user] [processing] connect selection input in model

2017-05-17 Thread Andreas Plesch
I have a selection input parameter in a processing script and would like to use it in a model. However, as far as I can see there is no way to connect the selection input parameter to an output parameter of another script. This is probably because there is no matching 'selected selection' output

[Qgis-user] Fwd: 2017 QGIS Grant Proposals final results

2017-05-01 Thread Andreas Plesch
b.com/andreasplesch/QGIS-X3D-Processing to follow progress on this project. Any feedback, or contributions are much appreciated. Here is an example DEM export using the existing functionality: https://rawgit.com/andreasplesch/QGIS-X3D-Processing/master/examples/ output/n35w120nedWGS84_200x200dir.ht

[Qgis-user] hillshade render style

2017-04-08 Thread Andreas Plesch
I could not find documentation on the hillshade render type style. While it is rather self-explanatory, the multidirectional option could benefit from explanation. I am looking at the source here: http://qgis.org/api/2.18/qgshillshaderenderer_8cpp_source.html and it points to http://pubs.usgs.go

[Qgis-user] [processing]: input selection type in modeler ?

2017-04-03 Thread Andreas Plesch
Processing python scripts can have a variety of parameter types including selection: http://docs.qgis.org/2.18/en/docs/user_manual/processing/scripts.html - selection. A dropdown menu that allows the user to select from a pre-populated list. For example units=selection sq_km;sq_miles;sq_de

Re: [Qgis-user] Qgis-user Digest, Vol 133, Issue 60

2017-03-27 Thread Andreas Plesch
Hi Martin, thanks for sharing. As it happens I submitted a (modest) grant proposal for X3D Processing based development. I think the approaches are very complementary and should not distract from each other. Perhaps there are still opportunities to combine efforts in some way ? Andreas Date:

Re: [Qgis-user] QGIS X3D processing

2017-03-26 Thread Andreas Plesch
Hi Paolo, > Date: Sun, 26 Mar 2017 20:22:06 +0200 > From: Paolo Cavallini > > Il 26/03/2017 00:27, Andreas Plesch ha scritto: > > I would like to share a project for 3d visualization of Qgis content by > ... > > This effort is similar to QGIS2Threejs but is just st

[Qgis-user] QGIS X3D processing

2017-03-25 Thread Andreas Plesch
I would like to share a project for 3d visualization of Qgis content by utilizing a not very well known ISO standard, the X3D geospatial component as openly available in the x3dom implementation (http://x3dom.org). As a first tangible result of this effort, it becomes possible to generate an intera

[Qgis-user] Color picker in Processing scripts

2017-03-19 Thread Andreas Plesch
I started an experiment to use Processing for exporting to 3d web pages using x3dom (https://github.com/andreasplesch/QGIS-X3D-Processing) and was wondering if there is some way to use a color button ( https://qgis.org/api/classQgsColorButton.html ) in a script. I know that processing script algori

[Qgis-user] create script collection plugin -> broken, invalid plugin

2017-03-14 Thread Andreas Plesch
Using qgis 218.4, I am trying to use the processing script tool 'create script collection plugin'. After putting the created plugin folder into the user plugins/ folder, the created plugin shows up in the plugin manager. However, it is listed in the Invalid category and the the plugin description

Re: [Qgis-user] processing script vs. processing plugin (Ari Jolma)

2017-03-13 Thread Andreas Plesch
decoupled from qgis but still curated depending on how responsively QGIS-Processing is managed, eg. how PRs are accepted. -Andreas On Mar 13, 2017 8:38 AM, "Ari Jolma" wrote: > 13.03.2017, 13:24, Andreas Plesch kirjoitti: > > Hi Ari, > > thanks for your providin

[Qgis-user] processing script vs. processing plugin

2017-03-12 Thread Andreas Plesch
What are differences between processing algorithms provided as a processing script or as processing algorithm provider plugin ? A plugin can presumably have its own custom GUI but are there are other differences in available capabilities ? Andreas ___ Q

[Qgis-user] Launching simpleHTTPServer from processing script or plugin

2017-03-12 Thread Andreas Plesch
I am starting to work on a processing script which has a html file as output. The html file has js scripts which require it to be served from a web server (httpd). The regular webkit viewer is not quite capable enough but I can launch the system web browser using the webbrowser python package from