Opened 15 years ago

Closed 14 years ago

Last modified 12 years ago

#10923 closed (fixed)

Use thread-safe GEOS API if available

Reported by: andrew_pendleton Owned by: jbronn
Component: GIS Version: dev
Severity: Keywords: geos thread safe safety
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The number of configurations under which GeoDjango can be used is limited by its relative lack of thread-safety as compared to the rest of the framework, mainly due to the lack of thread-safety of underlying libraries like GEOS. The latest release of GEOS adds a thread-safe C API (proposed in http://trac.osgeo.org/geos/wiki/RFC3, tracked in http://trac.osgeo.org/geos/ticket/210, and committed prior to the release of GEOS 3.1.0), so GeoDjango should use it if it's available.

Attachments (3)

geos_threadsafe_v1.diff (36.2 KB ) - added by jbronn 14 years ago.
geos_threadsafe_v2.diff (40.0 KB ) - added by jbronn 14 years ago.
threading.local subclasses and I/O function accessors are actually necessary
geos_threadsafe_v3.diff (41.0 KB ) - added by jbronn 14 years ago.
Improved comments, and a few imports over last patch.

Download all attachments as: .zip

Change History (8)

comment:1 by jbronn, 15 years ago

Keywords: geos thread safe safety added
milestone: 1.2
Owner: changed from nobody to jbronn

comment:2 by jbronn, 15 years ago

See also the GeoDjango mercurial branch for a thread-safe GEOS interface. Thanks to a dev known as tazle, we have a beginning implementation, however, it's a non-trivial addition that can benefit from additional testing.

comment:3 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

by jbronn, 14 years ago

Attachment: geos_threadsafe_v1.diff added

by jbronn, 14 years ago

Attachment: geos_threadsafe_v2.diff added

threading.local subclasses and I/O function accessors are actually necessary

by jbronn, 14 years ago

Attachment: geos_threadsafe_v3.diff added

Improved comments, and a few imports over last patch.

comment:4 by jbronn, 14 years ago

Resolution: fixed
Status: newclosed

(In [12214]) Fixed #10923 -- The GEOS bindings now use the thread-safe API, when applicable. Thanks, Tuure Laurinolli, for assistance in developing this patch.

comment:5 by Jacob, 12 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top