Ticket #153 (feature request)

Opened 1 year ago

Last modified 1 year ago

Coordinate sequences should implement numpy array protocol

Status: closed (fixed)

Reported by: seang Assigned to: seang
Priority: major Milestone:
Component: Shapely Version: 1.0
Keywords: coordinate sequence numpy Cc:

Allowing this

>>> import numpy
>>> a = numpy.asarray(geom.coords)

Change History

02/07/08 23:24:45: Modified by seang

  • status changed from new to closed.
  • resolution set to fixed.

Done. One quirk is that

asarray(point) != asarray(point.coords)

but

asarray(line) == asarray(line.coords)