Ticket #69 (closed enhancement: fixed)

Opened 10 months ago

Last modified 10 months ago

Manually set extents on layers

Reported by: randomjunk Owned by: artem
Priority: Milestone: 0.5.0
Component: Core Library Version: SVN Trunk
Severity: Normal Keywords: estimate_extent
Cc: Patch Needs Improvement:
Needs Docmentation: Has Patch?:
Design Decision Needed:

Description

Add an option to manually set the extent on a layer instead of requiring the datasource to find it.

For example: postgis inputs have a very unreliable estimate_extent option -- if you have to turn this off then postgis does a table scan to discover the extent, which can be very inefficient, especially if you know the datasource entirely covers the area you are rendering. It would be better to specify the extent manually in this case.

Change History

Changed 10 months ago by artem

  • keywords estimate_extent added
  • status changed from new to assigned
  • version set to SVN Trunk
  • milestone set to 0.5.0

Changed 10 months ago by artem

  • status changed from assigned to closed
  • resolution set to fixed

use 'extent' parameter to specify user defined extent for a layer (XML) :

<Parameter name="extent">-20037508.3428,-19929239.1134,20037508.3428,19929239.1134</Parameter>

or in Python

ds = PostGIS(........, extent="-180,-90, 180 ,90")
Note: See TracTickets for help on using tickets.