[OSM-dev] Osmosis Command Line Improvements
Shaun McDonald
shaun at shaunmcdonald.me.uk
Mon Nov 26 23:22:31 GMT 2007
On 26 Nov 2007, at 22:12, Brett Henderson wrote:
> Frederik Ramm wrote:
>> These make life much easier, thank you! We can soon start deleting
>> all
>> sorts of perl scripts from the repository as they've been obsoleted
>> by
>> osmosis. It seems that polygon extraction outperforms my perl
>> implementation by a factor of 5 to 10 which means that either yours
>> is
>> excellent or mine was crap.
>>
> Cool. After thinking about writing my own polygon algorithm and being
> reminded that people have already solved this problem many times
> before
> I used the inbuilt java libraries. Apparently those guys knew what
> they
> were doing :-) The java.awt.geom.Area class in JDK1.6 is fantastic
> (hence my reluctance to support JDK1.5). You can add/subtract areas
> to/from other areas and using differing precision (either floats or
> doubles) with very minimal code. My polygon file loader just reads
> the
> file from start to finish adding and subtracting polygons as it
> encounters them. The library just works.
Please remember that Apple hasn't released JDK1.6 for Mac OS X 10.5
Leopard yet.
[..]
Shaun
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2433 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20071126/e802cb42/attachment.bin>
More information about the dev
mailing list