Hemant. Interesting problem. I think you are on the right track looking into ogr and/or PostGIS. I would try this first in PostGIS using a few SQL scripts.
In general I would try unioning your whole dataset and then re- splitting the linework at the desired interval. I did something similar (though a bit more involved) with the help of PostGIS users a while back: http://www.mail-archive.com/[email protected]/msg04582.html Dane --- \o/ --- Sent from my phone On Dec 24, 2009, at 10:33 PM, Hemant Bist <[email protected]> wrote: > This is not necessarily a Mapnik question. I am hoping someone can > point me to the right tools. > I have got a polyline shapefile where each segment is roughly 1 > meter, and each polyline has roughly 200 segments. > I want to "resample" to convert the polyline to have a segment of > roughly 10 meter and only 20 segments. > > Are there any tools that can help do that, or I have to write my own > heuristic by reading shapfile and writing back. > I have looked at ogr2ogr and postgis briefly, but I didn't find > anything relevant there. > > Happy holidays, > HB > > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

