Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] singlesided buffer issue

As Michael points out, the problem lies more in how to define a single-sided buffer and a flat buffer.  (And given a definition, there might well be difficulties in computing it accurately!).  

Single-sided buffer also has well-known and obvious issues with lines that curve back on themselves.  This has the same problem - what should be a useful and computable definition?

Failing this, I'd settle for a ability to detect when a buffer curve fails to be "reasonable" - but at the moment that seems to be just as difficult.

Does anyone have experience with other systems that offer flat and single-sided buffering, to describe how they react? 

On Sat, Aug 5, 2017 at 12:18 AM, Michaël Michaud <m.michael.michaud@xxxxxxxxx> wrote:

Hi Andrea,

I get the same result and can get similar result with the following simpler line :

LINESTRING (-580 -420, -520 -340,  -520 -320, 300 780)

Try to make a flat buffer of 1000.

I think the problem with flat buffer is that it is difficult to define a clear semantic.
Round buffer is easier to define : set of points at a distance less than the buffer size
from original geometry.
But what would be the exact definition of a flat buffer ?

One can give a clear definition of flat buffer for a single segment, but it seems
much more difficult for a complex linestring (at least for me).

To understand what happens I suggest that you take the line hereabove.
Simplify it (create a segment from the first point to the last one).
Create a flat buffer of 1000 : this is what you intuitivelly want to get from your orginal line.

Now extract segments from the line and create the flat buffer from each segment :
some parts of these buffers are out of the global buffer. This is where problems start.

Michaël



But if you make the flat buffer of each segment of your line (or from the line hereabove),
you will start to see the problem.
Now you can do the flat buffer of the global line (simplified see that
some of these partial buffers are out of the flat buffer of the seg

If you offset the each segments of the line This later is generally build from the segments


Le 05/08/2017 à 08:31, Jody Garnett a écrit :
I just did the default - guess that is 10.
On Fri, Aug 4, 2017 at 10:53 PM andrea antonello <andrea.antonello@xxxxxxxxx> wrote:
Hi Jody, 
did you try to put a large buffer offset? Mine is -399. Yours seems much less. 

Thanks, 
Andrea 

On Aug 4, 2017 11:49 PM, "Jody Garnett" <jody.garnett@xxxxxxxxx> wrote:
I do not get the same result as you, using jts test builder 1.13.0.Inline images 2

Inline images 1

--
Jody Garnett

On 4 August 2017 at 01:37, andrea antonello <andrea.antonello@xxxxxxxxx> wrote:
Good morning,
I have a question about a buffer operation that took me by surprise.

When I try to singleside buffer the line pasted at the end of this email, I get the result in the image, which is not what I expected.

Inline image 1

I get the same strange effect if I try to do a flat "normal" buffer.

Also, if I try a buffercurve, I get the following:

Inline image 2

I am a bit puzzeled and hoping I am doing something wrong, but I can't see what. The other option is that it is right and I don't understand why.

Anyone able to shed a light?

Thanks,
Andrea




LINESTRING (0 0, -3.341025831596678 -9.511699104828482, -3.9173267613437486 -11.152389381205225, -4.655290460460725 -12.683277915214926, -5.277642344985547 -14.085978808571006, -5.8450433376336015 -15.55942962324408, -6.46790054334144 -17.104569134193817, -7.008530035310871 -18.554185870267396, -7.531869034054747 -20.04583560738692, -8.120789737822639 -21.551352935864642, -8.698730904143416 -23.044452484758644, -9.268085866264162 -24.56608615772882, -9.875280866517437 -26.023198736147304, -10.423107185458273 -27.59712683530244, -11.091249542383409 -29.21520237034225, -11.765651441379433 -30.745407227864206, -12.353220070771464 -32.24550017104774, -12.920986021518083 -33.8089472507946, -13.572871235594448 -35.40204450728231, -14.23106678217177 -36.92228474880561, -14.843044935425397 -38.4962039290467, -15.527325632514195 -40.07888460293741, -16.229679813779143 -41.66258135886821, -16.889453392999442 -43.24045246184633, -17.530737555000783 -44.82578344826224, -18.19367888131939 -46.430875386976226, -18.852821837540937 -47.98895638433618, -19.48209681524054 -49.544288209641536, -20.122954395364594 -51.10534369861354, -20.78041545065036 -52.680318712493076, -21.448417128589558 -54.22427532590544, -22.056262051593116 -55.78776912304601, -22.649504461742318 -57.36224417492353, -23.244812579225503 -58.90530255205503, -23.81554839018751 -60.457601843882244, -24.415263353382688 -62.00294899001487, -24.97616011282585 -63.49095070030995, -25.528530553849336 -64.92284081853725, -26.12470135752587 -66.49691253268317, -26.610363712695747 -67.964788586262, -27.163678941736737 -69.4630169492878, -27.72600153260169 -71.00992812463899, -28.283975527479953 -72.53606345230622, -28.83970121637123 -74.07732461287242, -29.38047290759914 -75.60776804795432, -29.92857536130531 -77.14736046330118, -30.44978115238645 -78.6767158803177, -30.98615014810916 -80.24376966316085, -31.55003751775271 -81.81829652196424, -32.1195367813246 -83.38387540441342, -32.70118442346179 -84.921569196854, -33.25307937652635 -86.46082333296587, -33.80128118189855 -88.01548003243441, -34.359347175484494 -89.59239856101446, -34.931585887583495 -91.16468430141205, -35.507923425525085 -92.70940641862217, -36.060530247647684 -94.25788972520708, -36.63180010511791 -95.79989584096876, -37.1865878967181 -97.35805946695388, -37.76485590431576 -98.89302866603396, -38.304726999694104 -100.45338167849872, -38.89819309695601 -102.02403266330043, -39.462313599502494 -103.57468425829677, -40.03670955498692 -105.12208925336029, -40.59831646131777 -106.66440070448868, -41.154589297750825 -108.23337246985412, -41.74292363960703 -109.79135641176492, -42.340017778239364 -111.32904057493863, -42.90610161887133 -112.86930223091034, -43.478079468084225 -114.43902409816238, -44.070368317435374 -115.99466731693838, -44.644515441842906 -117.52412005454948, -45.21307229027844 -119.07041346439559, -45.781946778160545 -120.62582982989798, -46.343055373714364 -122.17942444506102, -46.93457072702333 -123.7413851417754, -47.530993053316806 -125.26865330691325, -48.11681324322824 -126.81301802445955, -48.7262563048831 -128.3577559058674, -49.31185336824426 -129.88718710979433, -49.89676618109884 -131.41165300414127, -50.46343152206286 -132.92230766931738, -51.051395876513574 -134.45951542784846, -51.62988165864199 -135.97607001674015, -52.18939621304749 -137.52541963918657, -52.787574102660315 -139.05382401240917, -53.35730274672072 -140.55886078126278, -53.90376048124539 -142.07242207364328, -54.45295256394067 -143.59306194641414, -55.01296551223099 -145.14263154805235, -55.58048685038621 -146.67943218235797, -56.15248119401396 -148.21481027995242, -56.711600567152175 -149.7483204530591, -57.267112930037484 -151.28557675233998, -57.84659211551771 -152.82614444935433, -58.43990028710155 -154.34391106561003, -59.02593237267139 -155.87453863708143, -59.61141369750608 -157.34113563116335, -60.128768587880955 -158.82894212381922, -60.63745963448437 -160.23832863220906, -61.13168093967531 -161.679305617206, -61.67544337416925 -163.13645618398152, -62.19006981654802 -164.60334235019565, -62.724674321544434 -166.13479536493838, -63.25895575754636 -167.67291573518347, -63.82166264819405 -169.21554486506372, -64.38262625055505 -170.7432962040192, -64.9821809395586 -172.26218064896085, -65.54843750399058 -173.78508387172485, -66.12001392867516 -175.30650460825578, -66.67371181614563 -176.81667085753054, -67.2030491815527 -178.3484299947915, -67.74596669919939 -179.89175770256483, -68.29113431996751 -181.40467154755174, -68.81339755919582 -182.94572901281276, -69.38801614994578 -184.50259183091129, -69.97434592571221 -186.04131211015897, -70.56469255579071 -187.53399985807303, -71.1208260349648 -189.0627090177381, -71.71158689852464 -190.58461667716148, -72.27485541189722 -192.0807196863047, -72.8521403964862 -193.61407240254252, -73.43319125849486 -195.13220539684156, -74.02393627332486 -196.66536611144545, -74.62738246237524 -198.20451576782995, -75.22828780611748 -199.69955654164312, -75.8070816604235 -201.2092577332412, -76.38727669884521 -202.72335470421336, -76.94755169464904 -204.24371224606608, -77.4959472054924 -205.77256234842167, -78.07592133625943 -207.28846364148592, -78.64341781102445 -208.81580317237348, -79.20823115519482 -210.3252603601851, -79.79189735317301 -211.87979207135174, -80.4277412042542 -213.4202762599624, -81.0010339007588 -214.8890467135967, -81.54632750769386 -216.39433543176935, -82.11647284253951 -217.91303939663896, -82.64749871304028 -219.41994323991298, -83.2021675526882 -220.95676378387634, -83.76027578639423 -222.4548248046765, -84.25865934629228 -223.97963509029654, -84.80330522475724 -225.52296345994728, -85.3564568861952 -227.02126849580299, -85.96735546755002 -228.6040790275727, -86.59156968954319 -230.05705372258723, -87.18636578418803 -231.49323558053507, -87.73542469048917 -232.81898064575353)

_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev



_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev

_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev
--
--
Jody Garnett


_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev


_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev



Back to the top