breaklines on valentines

340 views
Skip to first unread message

Martin Isenburg

unread,
Feb 14, 2012, 7:07:57 PM2/14/12
to LAStools - efficient tools for LIDAR processing
Hello,

today's Valentines Day release of LAStools (120214) adds support for
(closed) hydro-breaklines as well as (open or closed) hard-breaklines
to las2dem. The breaklines can be in SHP or in simple ASCII TXT
format. Here an example how to flatten water bodies:

las2dem -i 5126-10-40.laz -lakes hydro_breaklines.shp -step 2 -v

and here an example how to add hard-breaklines to the TIN from which
the DEM is then rastered.

las2dem -i 5126-10-40.laz -creeks hard_breaklines.shp -step 2 -v

you can also combine the two. The hydro / building footprint
breaklines given to '-lakes' need to be closed polygons with
elevations as the Z value (e.g. PolygonZ). All LiDAR points falling
into the polygons are ignored. The polygon area is then rastered using
the elevations of the breaklines. The hard creek / crevice / ridge /
road / ... breaklines given to '-creeks' can be open or closed. No
LiDAR points are removed. These are simply added as hard edges with
elevations to the TIN. No intersections are allowed between
breaklines. All need to have Z values. Lers

Please let me know how this works for you.

Cheers,

Martin @lastools

PS: If you have hydro-breaklines that, for example, follow a river
down-stream (with slowly decreasing elevation) or that delineate the
two edges of a mountain road it would be useful data to have for
adding a '-rivers' breakline option.

Fabienne Dupont

unread,
Feb 16, 2012, 3:05:14 AM2/16/12
to LAStools - efficient tools for LIDAR processing
Hi,

I'm working for OSCARS S.A. We are trying to use breaklines with
las2dem and we have some questions:

- We have breaklines that are roads. Consequently, there are
intersections between breaklines. If it is a problem (as you seem to
mention), how can we use roads as breaklines?

- The area containing breaklines is greater than the area of our .las
file. What happens with breaklines located outside the area of
our .las file?

- When we make las2dem -i file.las -creeks breaklines.shp -step 2 -
v, we receive warning messages saying that some breaklines form a
closed loop. Are these warnings important? Are these breaklines
ignored and breaklines that don't form a closed loop are used?

Thanks a lot,

Best regards,

Fabienne Dupont


On 15 fév, 01:07, Martin Isenburg <martin.isenb...@gmail.com> wrote:
> Hello,
>
> today's Valentines Day release of LAStools (120214) adds support for
> (closed) hydro-breaklinesas well as (open or closed) hard-breaklines
> to las2dem. Thebreaklinescan be in SHP or in simple ASCII TXT
> format. Here an example how to flatten water bodies:
>
> las2dem -i 5126-10-40.laz -lakes hydro_breaklines.shp -step 2 -v
>
> and here an example how to add hard-breaklinesto the TIN from which
> the DEM is then rastered.
>
> las2dem -i 5126-10-40.laz -creeks hard_breaklines.shp -step 2 -v
>
> you can also combine the two. The hydro / building footprintbreaklinesgiven to '-lakes' need to be closed polygons with
> elevations as the Z value (e.g. PolygonZ). All LiDAR points falling
> into the polygons are ignored. The polygon area is then rastered using
> the elevations of thebreaklines. The hard creek / crevice / ridge /
> road / ...breaklinesgiven to '-creeks' can be open or closed. No
> LiDAR points are removed. These are simply added as hard edges with
> elevations to the TIN. No intersections are allowed betweenbreaklines. All need to have Z values. Lers
>
> Please let me know how this works for you.
>
> Cheers,
>
> Martin @lastools
>
> PS: If you have hydro-breaklinesthat, for example, follow a river

Martin Isenburg

unread,
Feb 16, 2012, 5:48:43 AM2/16/12
to last...@googlegroups.com
Hello.

> - We have breaklines that are roads. Consequently, there are
> intersections between breaklines. If it is a problem (as you seem to
> mention), how can we use roads as breaklines?

As long as polygonal line segments go not "cross" you are fine. They
can meet at any vertex but cannot cross. If you have crossing line
segments you need to insert a vertex at the point where they are
crossing.

> - The area containing breaklines is greater than the area of our .las
> file. What happens with breaklines located outside the area of
> our .las file?

Not sure. (-: Can you send me an example? If you have LAS tiles
generated with lastile you can use option '-use_tile_bb' to only
rasters the points and breaklines inside the tile. For the case you
describe I may have to add a '-use_bb' option.

> - When we make     las2dem -i file.las -creeks breaklines.shp -step 2 -
> v, we receive warning messages saying that some breaklines form a
> closed loop. Are these warnings important? Are these breaklines
> ignored and breaklines that don't form a closed loop are used?

All breaklines are used. These are just warnings for control purposes.
The breakline functionality in las2dem is brand new and I want to have
all the information possible if there are issues. These warning will
disappear in a future version.

If you could send me some example data to look at the "breaklines
located outside the LAZ file" scenario that would be great.

Regards,

Martin @lastools

PS: Has anyone else tried using breaklines in las2dem yet? I'd be
curious to hear how the new functionality works for you.

Martin Isenburg

unread,
Feb 17, 2012, 6:03:25 AM2/17/12
to last...@googlegroups.com
I feel free to share this as Mike suggests ...

-----

Hi Martin,

First of all, thank you for adding breakline capability into lastools.
I’m sure many people will find that useful. Since you asked in another
post that you were curious how the breaklines work for others, here’s
my take on it.

Also, feel free to post this message to the lastools user group – I
just didn’t want to put it there because of the attached zip file,
which contains the files I used for my little testing of the
breaklines functionality. I’ll try to explain below what I did with
the files.

I tried las2dem with:

1 no breakline
2 a polygon (lake) breakline
3 polygon (lake) and line (creek) breakline
4 the same as (3) but using a denser (more vertices) creek breakline

The commands I used are as following:

las2dem -i uw.las -o 01_nobreakline.tif -v -step 0.5 -kill 50

las2dem -i uw.las -o 02_lakebreakline.tif -v -lakes water_poly_z.shp
-step 0.5 -kill 50

las2dem -i uw.las -o 03_lake_creek_breakline.tif -v -lakes
water_poly_z.shp -creeks creek_line_z.shp -step 0.5 -kill 50

las2dem -i uw.las -o 04_lake_creekdense_breakline.tif -v -lakes
water_poly_z.shp -creeks creek_line_dense.shp -step 0.5 -kill 50

I found it interesting about the difference in the output tiffs for
the ‘densified’ creek line compared to the original creek line. I
would have assumed that it wouldn’t really matter how many vertices
are used, since the actual line doesn’t change and the z-values for
the additional vertices are linearly interpolated between the original
points, which I would have assumed is handled that way anyways when
using the original breakline to generate a raster that has a pixel
size shorter than the length between two of the original line
vertices. Maybe I’m missing something here or don’t use the breaklines
quite ‘right’. Just curious if you could shed any light on this.

[[ ANSWER: You compute a TIN of all LiDAR returns. For the creek line
no LiDAR points are removed. Hence you merely "cut" a tiny corridor
into the dense vegetation TIN. The more points you put down the more
chances there are during the TIN rasterization to hit one of these
corridor points. You should really re-run the above with the
'-keep_class 2' option and work on the terrain only. ]]

Cheers,

Mike
_______________________________

Mike Lackner, MSc.
Remote Sensing Specialist
Mapping, Analysis & Design
Faculty of Environment
University of Waterloo
mlac...@uwaterloo.ca
Tel: 519-888-4567, ext. 36563
Fax: 519-888-4325

01_no_breakline.PNG
02_lake_breakline.PNG
03_lake_creek_breakline.PNG
04_lake_creek_dense_breakline.PNG

Fabienne Dupont

unread,
Feb 17, 2012, 10:22:09 AM2/17/12
to LAStools - efficient tools for LIDAR processing
Hello,

Thank you for your answers.
I will send you example data in a few weeks, when they will be
correct. However, I have another question: when I launch a las2dem -
creeks with open breakllines touching (eg, a railway line divided into
several track sections), I get a warning saying WARNING: polygon 2
has duplicate point at count 137 (0). Do you know what's the tolerance
between 2 lines so that they are considered as 2 separated lines?

Thank you very much,

Best regards,

Fabienne Dupont



On 16 fév, 11:48, Martin Isenburg <martin.isenb...@gmail.com> wrote:
> Hello.
>
> > - We havebreaklinesthat are roads. Consequently, there are
> > intersections betweenbreaklines. If it is a problem (as you seem to
> > mention), how can we use roads asbreaklines?
>
> As long as polygonal line segments go not "cross" you are fine. They
> can meet at any vertex but cannot cross. If you have crossing line
> segments you need to insert a vertex at the point where they are
> crossing.
>
> > - The area containingbreaklinesis greater than the area of our .las
> > file. What happens withbreaklineslocated outside the area of
> > our .las file?
>
> Not sure. (-: Can you send me an example? If you have LAS tiles
> generated with lastile you can use option '-use_tile_bb' to only
> rasters the points andbreaklinesinside the tile. For the case you
> describe I may have to add a '-use_bb' option.
>
> > - When we make     las2dem -i file.las -creeksbreaklines.shp -step 2 -
> > v, we receive warning messages saying that somebreaklinesform a
> > closed loop. Are these warnings important? Are thesebreaklines
> > ignored andbreaklinesthat don't form a closed loop are used?
>
> Allbreaklinesare used. These are just warnings for control purposes.
> The breakline functionality in las2dem is brand new and I want to have
> all the information possible if there are issues. These warning will
> disappear in a future version.
>
> If you could send me some example data to look at the "breaklines
> located outside the LAZ file" scenario that would be great.
>
> Regards,
>
> Martin @lastools
>
> PS:  Has anyone else tried usingbreaklinesin las2dem yet? I'd be

Martin Isenburg

unread,
Feb 26, 2012, 11:27:29 AM2/26/12
to LAStools - efficient tools for LIDAR processing
Hello Fabienne,

> I will send you example data in a few weeks, when they will be
> correct.

I am looking forward to some example breakline data from you.

> However, I have another question: when I launch a las2dem -
> creeks with open breakllines touching (eg, a railway line divided into
> several track sections), I get a warning saying  WARNING: polygon 2
> has duplicate point at count 137 (0). Do you know what's the tolerance
> between 2 lines so that they are considered as 2 separated lines?

This WARNING means that the breakline has two points with the exact
same x/y coordinate (in a 32 bit floating point representation where
first the bounding box minimum has been subtracted from the original
64 bit floating point coordinates of the SHP file before casting the
numbers to 32 bits).

In general this does not present a problem as long as two line break
line segments only touch in a vertex but are not "crossing" ...

Cheers,

Martin @lastools
Reply all
Reply to author
Forward
0 new messages