New answers tagged algorithm
For using processing standalone, it must be initiated with an interface. Thus, you can create a dummy iface before calling processing: import qgis app = qgis.core.QgsApplication(, True) import processing class DummyInterface(object): def __init__(self): self.destCrs = None def __getattr__(self, *args, **kwargs): def dummy(*args, ...
In my MPSuperShape product, it is possible to apply a buffer to a convex polygon. This is performed by moving the vertices outwards on the line that bisects the two edges at that vertex. The distance is chosen using trigonometry so that the edges both move out a user-specified distance. This works well but acute vertices can extend disproportionately. Ie. ...
Thank you for the answer, in case that anyone else has the same problem be informed that i solved my problems using the geoPHP library!
To compute the buffer on the client side, you could use JSTS and its buffer function. See the example here. On the server side, it seems MySQL extension for spatial data also has a buffer function. If you need to compute high distance buffers, be aware the projection matters.
You shouldn't need to re-implement the wheel, there are lots of geospatial libraries out there. As you've noticed, PostGIS includes a buffer function, unfortunately MySQL has sub-standard spatial support and therefore doesn't include one. If possible you may wish to consider switching to PostGIS if spatial functionality is important to you. There are ...
It sounds like you want a shortest path algorithm to operate on your PostGIS table of ODs. This is something that pgrouting can do.
Top 50 recent answers are included