<html>
<body>
<br>
<br>
Sent from my Verizon Wireless 4GLTE smartphone.
<br>
<p> </p><hr></hr><div><blockquote dir=ltr style=MARGIN-RIGHT: 0px><font size=3>From : Frank Warmerdam<warmerdam@pobox.com></font><br><font size=3>Subject : Re: [gdal-dev] converting lines to linestrings</font><br> <div>On <a href='tel:11-08-27 02'>11-08-27 02</a>:10 AM, Zoltan Szecsei wrote:<br>> Hi,<br>> I'm not sure if this is the correct list to address this on, but ....<br>><br>> I have lots of files, each with a bunch of lines that start & stop on each<br>> others ends and I need to convert them into line strings, file by file.<br>><br>> Is there a command-line (batch) way I can do this?<br>><br>> They are currently in DGN (v8) format but I can convert them to SHP, MID/MIF or<br>> whatever.<br>><br>> What I'm looking to do is to create a batch pipeline that, file by file, will<br>> take each line, and if either of its ends are within 0.5m of another line-end,<br>> then join them together to form one line string, then output that "snapped up"<br>> data to disk. (any format)<br><br>Zoltan,<br><br>I do not believe you can accomplish this with ogr2ogr. But it is certainly<br>possible to write a script, for instance in python, that would accomplish<br>this in combination with the OGR API. That is the approach I would take.<br><br>Best regards,<br>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href='mailto:warmerdam@pobox.com'>warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush | Geospatial Programmer for Rent<br><br>_______________________________________________<br>gdal-dev mailing list<br><a href='mailto:gdal-dev@lists.osgeo.org'>gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div></blockquote></div></body>
</html>