Re: [OSM-dev] osm2spatialite!

2011-02-17 Thread Daniel Sabo
>> I do ignore the roles after the rings are built, so if there's an >> outer immediately inside another outer it will just consider the 2nd >> one an inner. > > Makes sense. Do you do anything about touching inner rings? No, and I haven't thought of a good way to handle it. If you have an algori

Re: [OSM-dev] osm2spatialite!

2011-02-17 Thread Frederik Ramm
Hi, On 02/17/11 10:23, Daniel Sabo wrote: Can you elaborate on how having "inner" and "outer" roles helps one in building a valid geometry? So, this does assume that it started as a valid OSM multipolygon, if it fails that requirement I think we're better of fixing it in OSM than coding around

Re: [OSM-dev] osm2spatialite!

2011-02-17 Thread Daniel Sabo
On Feb 16, 2011, at 11:58 PM, Frederik Ramm wrote: > Daniel, > > On 02/17/11 02:57, Daniel Sabo wrote: >> I did find a version of spatialite that supported build area after I >> had written the multipolygon code, but I've decided to keep the code >> in osm2spatialite because it does a much bette

Re: [OSM-dev] osm2spatialite!

2011-02-16 Thread Frederik Ramm
Daniel, On 02/17/11 02:57, Daniel Sabo wrote: I did find a version of spatialite that supported build area after I had written the multipolygon code, but I've decided to keep the code in osm2spatialite because it does a much better job of generating valid multipolygons that BuildArea can (becaus

Re: [OSM-dev] osm2spatialite!

2011-02-16 Thread Daniel Sabo
There has actually been a python script to generate a simple sqlite database form osm xml for years, but transforming the data into lines and polygons really is the hard part. I did find a version of spatialite that supported build area after I had written the multipolygon code, but I've decide

Re: [OSM-dev] osm2spatialite!

2011-02-16 Thread Axel Kollmorgen
On 2011-01-14 13:33, Daniel Sabo wrote: I have a beta version of an osm2spatialite script written in python. [...] Neither the GOES C api and SpatialLite have a version of BuildArea so most of the code is devoted to assembling multipolygons, so that's the area it's most likely to produce differe

[OSM-dev] osm2spatialite!

2011-01-13 Thread Daniel Sabo
I know this has been discussed here before, so it's seemed like the right place to share. I have a beta version of an osm2spatialite script written in python. Right now it's only handles osm xml files, but there should be a pbf version in the future. Ram is an issue so I'm not sure python is th