Re: [Qgis-developer] Offset curve tool

2012-03-01 Thread Sandro Santilli
On Thu, Mar 01, 2012 at 08:09:37AM +0100, Denis Rouzaud wrote: > Hi Sandro, > > Every day, I'll bring you a new ticket ;) Consider bringing a beer or a cake sometime :) > and I don't know why my data sucks! Because it contains small gaps between lines and points so that you can't get there with

Re: [Qgis-developer] Offset curve tool

2012-03-01 Thread Marco Hugentobler
Hi Jürgen And that it didn't exists in GEOS<3.2 Oh, true. So I'm going to use GEOSOffsetCurve and disable the tool if compiled against geos <3.3 (3.2. does not throw an exception in case of numerical problems). Regards, Marco On 01.03.2012 08:48, Jürgen E. Fischer wrote: Hi, On Wed, 29

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Jürgen E . Fischer
Hi, On Wed, 29. Feb 2012 at 11:34:06 +0100, Sandro Santilli wrote: > Note that GEOSSingleSidedBuffer was deprecated in 3.3.0 in favor > of the GEOSOffsetCurve function. And that it didn't exists in GEOS <3.2 (hence the Lucid build broke last night). Jürgen -- Jürgen E. Fischer norBIT

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Denis Rouzaud
Hi Sandro, Every day, I'll bring you a new ticket ;) and I don't know why my data sucks! http://trac.osgeo.org/geos/ticket/514 On 02/29/2012 05:32 PM, Sandro Santilli wrote: If you feel you could also file a ticket on trac.osgeo.org/geos with a description of the issue and a link to the video.

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Sandro Santilli
On Wed, Feb 29, 2012 at 02:45:20PM +0100, Marco Hugentobler wrote: > Hi Denis > > In certain cases, geos trunk throws an exception (version 3.2 crashes): > > ERROR 1: IllegalArgumentException: RobustDeterminant encountered > non-finite numbers > > I noticed it happens often with lines with dense

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Denis Rouzaud
Hi again, As there are three settings for this tool in the digitizing tab, I suggest to have a distinct category: just write Curve offset as a title and indent the 3 settings, as this is for the rest of the tab. What do you think? There is a small typo: Mitre in the combobox and Miter in the

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Denis Rouzaud
Seems possible, as the bug appears when one segment of the line is getting very very small. On 02/29/2012 02:45 PM, Marco Hugentobler wrote: Hi Denis In certain cases, geos trunk throws an exception (version 3.2 crashes): ERROR 1: IllegalArgumentException: RobustDeterminant encountered non-f

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Marco Hugentobler
Hi Denis In certain cases, geos trunk throws an exception (version 3.2 crashes): ERROR 1: IllegalArgumentException: RobustDeterminant encountered non-finite numbers I noticed it happens often with lines with dense vertex distributions (e.g. segmented curves). Maybe Sandro (strk) knows more a

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Denis Rouzaud
Hi Marco, I noticed a bug and Qgis crashes. Here is a video http://youtu.be/DBbMg5rO8fU The geometry of the line I played with is: LINESTRING(554235.01669295 145547.73137862,554242.99020772 145548.76938867,554245.33776182 145545.30016923,554245.49416371 145544.76210759) Greetings, Denis

Re: [Qgis-developer] Offset curve tool

2012-02-29 Thread Sandro Santilli
On Wed, Feb 29, 2012 at 11:11:43AM +0100, Marco Hugentobler wrote: > The offset curve tool creates parallel shifts of linestrings and > polygon rings ( single sided buffers with the geos function > GEOSSingleSidedBuffer ). Note that GEOSSingleSidedBuffer was deprecated in 3.3.0 in favor of the GE

[Qgis-developer] Offset curve tool

2012-02-29 Thread Marco Hugentobler
Hi all There is a new editing tool in the master branch. The offset curve tool creates parallel shifts of linestrings and polygon rings ( single sided buffers with the geos function GEOSSingleSidedBuffer ). The tool can be applied to the edited layer (the geometries are modified) or also to ba