[OSM-dev] tools to add buffer to poly
Jochen Topf
jochen at remote.org
Tue Nov 27 10:01:06 UTC 2018
On Tue, Nov 27, 2018 at 10:50:13AM +0100, Florian Lohoff wrote:
> On Tue, Nov 27, 2018 at 12:14:16PM +0300, Darafei "Komяpa" Praliaskouski wrote:
> > Hi,
> >
> > if you have a PostGIS at hand:
>
> I have.
>
> > select ST_Buffer('POLYGON(lon lat, lon lat, lon lat....)'::geography, 50);
> >
> > http://www.postgis.net/docs/ST_Buffer.html
>
> I know that - That means i need to rexport the admin boundarys from
> wambacher as shape. Use shp2pgsql to put them into the postgis,
> buffer them and rexport somehow as poly.
>
> I though i would not be the only one having the problem.
>
> I whished osmconvert had a "ready to use" buffer function for
> the -B option ;)
Export from PostGIS as GeoJSON and use "osmium extract" which can read
the GeoJSON. Or see my other mail.
Jochen
--
Jochen Topf jochen at remote.org https://www.jochentopf.com/ +49-351-31778688
More information about the dev
mailing list