[Qgis-developer] show grid on map canvas (similiar to grid used in composer) - strategy?

John Donovan mersey.viking at gmail.com
Thu May 10 05:11:31 PDT 2012


On 10 May 2012 13:03, Etienne Tourigny <etourigny.dev at gmail.com> wrote:
> On Thu, May 10, 2012 at 6:37 AM, John Donovan <mersey.viking at gmail.com> wrote:
>> I'm very interested in user-definable grid functionality, and I was
>> planning on implementing something myself for a plugin I'm writing. My
>> needs are to have the grid set to an arbitrary angle, and ideally to
>> know which grid square the user has clicked in, relative to a
>> user-defined origin.
>
> Can this angle be defined in terms of a projection, or is rather
> arbitrary with an origin and angle, relative to current projection?
> Could your needs be met with a (polygon) vector layer, which allows
> you to select one of the polygons?

My needs are that the origin and angle are independent of the
projection, and I was thinking of just creating a polygon layer
similar to fTools'. It would be nice though to make it smart, so that
the user can easily change the number of cells for instance, also so
that the grid's settings are stored in the project file rather than as
a vector file.

-JD


More information about the Qgis-developer mailing list