Hot answers tagged buffer
I guess you have a feature with empty geometry in the input shapefile. This answer provides a way to get rid of them.
As long as you want to buffer points or extents, the function you mentioned should be enough. But If you want to buffer polygons or linestring JSTS topology suite would give you the solution. Now back to your question. Do something like the following: //create the point feature you want to buffer var pointFeature = new ol.Feature( new ol.geom.Point([0,0]) ...
You can try use GEOGRAPHY data type instead of GEOMETRY data type when creating buffer. If you want to show it in QGIS, you can cast it back to GEOMETRY. Try rewrite your command like that: CREATE VIEW point_buffer AS SELECT gid, st_buffer(the_geom::geography, buf_radius)::geometry AS GEOM FROM points_layer Check PostGIS Geography Type documentation. ...
Only top voted, non community-wiki answers of a minimum length are eligible