Parent Directory
|
Revision Log
Sticky Revision: |
made a copy
* Thuban/Model/proj.py(_do_we_have_to_work_around_broken_proj): Making the test more robust for observed python 2.3 problems with setlocale().
Improved documentation.
Fixed behaviour with the proj bug and python >=2.4 when decimal_point != '.'. So de_DE locales will work fine again.
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse version of ForwardBBox (Projection._transform_bbox): New. common implementation of ForwardBBox and InverseBBox (Projection.ForwardBBox): Use _transform_bbox. * test/test_proj.py (TestProjection.test): Add test for InverseBBox
(Projection.GetProjectedUnits): Added 'longlat' as alias for 'latlong'.
(ProjFile): Derive from Publisher so we can easily send messages when the projections change (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages when the change was successful
(Projection.__init__): New parameter and instance variable epsg. Update doc-string (Projection.EPSGCode, Projection.Label): New methods to provide access to EPSG code and a label for use in dialogs
(ProjFile.Add): Do not check whether the projection is already in the list. This is *a lot* faster when loading files with hundreds of projections since it saves a linear search. OTOH this will allow adding the same projection to the user.proj file multiple times in the projection dialog but we'll deal with that later
(Projection.GetParameter): Handle parameters that do not contain a "=". Update the doc-string
(Projection.GetProjectedUnits): New. Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES depending on the units this projection *forwards* into.
(Projection): Removed Set*() methods to make Projection an immutable item. Fixes RTbug #1825. (Projection.__init__): Initialize instance variables here. (ProjFile.Replace): New. Replace the given projection object with the new projection object. This solves the problem of needing the mutator Projection.SetProjection() in the ProjFrame class and allows a projection to change parameters without changing its location in the file.
(Projection.SetName): Set the name to "Unknown" if name is None. (Projection.SetAllParameters): New. Set the projection's parameter list to the one supplied. (Projection.SetProjection): New. Set the projection's properties to those of the supplied Projection.
(Projection.__init__): Change the default value for 'name' to None and then test if name is equal to None in the body of the constructor. This way the caller doesn't have to know what the default value should be. Namely, useful in load.py where we have to pick a default value if the 'name' parameter doesn't exist in the XML file.
(ProjFile): Document the class. Move back to using a list because the order of the projections in the file is important to maintain. Fixes RTbug #1817.
(Projection.SetName): New. Allows the name of the projection to be changed. (ProjFile): Use a dictionary instead of a list so that removing projections is easier and we are sure about uniqueness. (ProjFile.Remove): Remove the given projection object.
(Projection.GetParameters): Renamed to GetAllParameters. (Projection.GetParameter): Returns the value for the given parameter.
(Projection.__init__): Accepts an optional name. (ProjFile): New. Represents a file that contains projection information.
import all the source files
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |