Code

Opened 7 years ago

Closed 7 years ago

#4254 closed (wontfix)

[gis] patch adding method get_%s_convex_hull to class

Reported by: Matt Bartolome <mattxbart@…> Owned by: jbronn
Component: GIS Version: other branch
Severity: Keywords: gis convex_hull
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I added this method for drawing polygons with lots of points on google maps. Also, it can more sense to use this when doing spatial queries where the exact boundary of your polygon doesn't matter too much.

Attachments (1)

geodjango.txt (2.0 KB) - added by Matt Bartolome <mattxbart@…> 7 years ago.
get convex_hull

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Matt Bartolome <mattxbart@…>

get convex_hull

comment:1 Changed 7 years ago by jbronn

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jacob to jbronn
  • Patch needs improvement unset

I'm tempted to wontfix this because the equivalent may be accomplished by doing:

geo_model.get_geom_geos().convex_hell

The get_GEOM_centroid, get_GEOM_wkt, and get_GEOM_area routines are artifacts of the pre-GEOSGeometry revisions. I'm not sure if I want to start polluting the geographic model namespace with every routine available from GEOSGeometry. However, I'm open to a convincing argument =)

comment:2 Changed 7 years ago by jbronn

Umm, I meant:

geo_model.get_geom_geos().convex_hull

comment:3 Changed 7 years ago by jbronn

  • Component changed from Uncategorized to GIS
  • Triage Stage changed from Unreviewed to Design decision needed

See also #4322.

comment:4 Changed 7 years ago by jbronn

  • Resolution set to wontfix
  • Status changed from new to closed

No convincing argument supplied, so I'm going to wontfix this. Further, when I get around to implementing lazy-instantiation is this will no longer be necessary.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.