/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/resource.py
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/Thuban/Model/resource.py

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 7449 byte(s)
Diff to previous 1964
made a copy

Revision 1964 - (view) (annotate) - [select for diffs]
Modified Wed Nov 19 19:48:47 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 7449 byte(s)
Diff to previous 1940
* Thuban/Model/resource.py: Rework the way gdal support is
determined so that we can give a reason in the about why gdal is
not supported.
(gdal_support_status): New. Variable holding a string with the
reason for no gdal support

* Thuban/UI/about.py (About.__init__): Add the reason why gdal is
not supported to the message


Revision 1940 - (view) (annotate) - [select for diffs]
Modified Tue Nov 11 18:27:39 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 7148 byte(s)
Diff to previous 1933
(EPSG_DEPRECATED_PROJ_FILE): New.
Constant for the file woth deprecated epsg projections
(get_system_proj_file): Update doc-string


Revision 1933 - (view) (annotate) - [select for diffs]
Modified Tue Nov 11 16:37:53 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 6945 byte(s)
Diff to previous 1830
* Thuban/Model/resource.py (get_system_proj_file): Add a filename
parameter so that this function can be used for all proj files in
Resource/Projections
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
get_system_proj_file

* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
ProjFile self.__sysProjFile use a dictionary of system ProjFile
objects self._sys_proj_files
(ProjFrame.build_dialog): Adapt to the new changes in the
ProjectionList constructor. Add a check button to toggle whether
EPSG projections are shown
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button
events.
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
the busy cursor if the files have not yet been loaded by the
dialog.
(ProjFrame.load_system_proj): Add a parameter for the name of the
proj file. Maintain the dictionary of system projections
self._sys_proj_files

* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
user_projs parameters into one parameter proj_files which is a
list of proj files.
(ProjectionList._subscribe_proj_files)
(ProjectionList._unsubscribe_proj_files): New. Move
subscription/unsubscription of projfile messages to separate
methods
(ProjectionList.Destroy): The unsubscribe is now done in
_unsubscribe_proj_files
(ProjectionList.update_projections): We now have a list of proj
file objects
(ProjectionList.SetProjFiles): New method to set a new list of
proj file objects

* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
Specify explicitly which system proj file to load.


Revision 1830 - (view) (annotate) - [select for diffs]
Modified Thu Oct 16 16:36:00 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 6553 byte(s)
Diff to previous 1816
(projfile_cache): Introduce a cache for
ProjFile objects
(clear_proj_file_cache): New function to clear the cache. Mainly
useful for use by the test suite
(read_proj_file): Use the cache.


Revision 1816 - (view) (annotate) - [select for diffs]
Modified Mon Oct 13 15:53:56 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 5776 byte(s)
Diff to previous 1791
(ProjFileReader.start_projection)
(ProjFileReader.end_projection, ProjFileSaver.write_projfile):
Handle the epsg code attribute when reading or writing proj files


Revision 1791 - (view) (annotate) - [select for diffs]
Modified Wed Oct 8 14:47:53 2003 UTC (21 years, 5 months ago) by jan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 5599 byte(s)
Diff to previous 1786
(get_user_proj_file): small bug-fix: Added missing 'val' parameter.


Revision 1786 - (view) (annotate) - [select for diffs]
Modified Wed Oct 8 10:39:11 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 5594 byte(s)
Diff to previous 1755
* Thuban/Model/resource.py (read_proj_file): Return the warnings
too. Update the doc-string
(get_proj_files): Removed. It wasn't used anywhere
(get_system_proj_files, get_system_proj_file): Rename to
get_system_proj_file and return the ProjFile object and not a list
of ProjFile objects. Update the callers.
(get_user_proj_files, get_user_proj_file): Rename to
get_user_proj_file return the ProjFile object and not a list of
ProjFile objects. Update the callers.
(ProjFileReader.__init__): New instance variable for the warnings.
Rename the __pf ivar to projfile. Update the methods referring to
__pf
(ProjFileReader.end_projection): Catch any errors raised when
instantiating the projection and record that as an error. The
projection will not be in the final ProjFile object.
(ProjFileReader.GetWarnings): New method to return the warnings.

* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
show the warnings from the projfile reader
(ProjFrame._OnImport): Deal with any warnings returned by
read_proj_file
(ProjFrame.__FillAvailList): Deal with any warnings returned by
get_system_proj_file or get_user_proj_file.


Revision 1755 - (view) (annotate) - [select for diffs]
Modified Fri Sep 26 14:03:44 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4841 byte(s)
Diff to previous 1542
(ProjFileSaver.write): Use
'projectionlist' as the name in the document type declaration so
that it matches the element type of the root element.


Revision 1542 - (view) (annotate) - [select for diffs]
Modified Fri Aug 1 16:13:49 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4835 byte(s)
Diff to previous 1230
Insert cvs keywords and doc-strings.


Revision 1230 - (view) (annotate) - [select for diffs]
Modified Wed Jun 18 14:46:43 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4726 byte(s)
Diff to previous 1189
First check if we can import
        the gdalwarp Thuban extension before checking for gdal.
        Also added some comments.


Revision 1189 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 17:01:13 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4473 byte(s)
Diff to previous 1179
(get_user_proj_files): Moved the
        called to get_application_dir here, so that the directory
        will only be called if this method is invoked.


Revision 1179 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 16:12:56 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4469 byte(s)
Diff to previous 1161
Fix missed proj functions that needed to be renamed.


Revision 1161 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:41:01 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4463 byte(s)
Diff to previous 1149
Renamed functions to following the function_names_with_underscores style.
(has_gdal_support): New function that returns true if the gdal
        library is available. Addresses RTbug #1877.


Revision 1149 - (view) (annotate) - [select for diffs]
Modified Wed Jun 11 10:45:34 2003 UTC (21 years, 8 months ago) by frank
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4266 byte(s)
Diff to previous 1132
Use get_application_dir


Revision 1132 - (view) (annotate) - [select for diffs]
Modified Thu Jun 5 13:27:17 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4522 byte(s)
Diff to previous 875
Guess location of .thuban directory from tempdir parent directory.


Revision 875 - (view) (annotate) - [select for diffs]
Modified Fri May 9 16:31:39 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4207 byte(s)
Diff to previous 739
Import _.  (ProjFileSaver.write): write header using projfile.dtd.


Revision 739 - (view) (annotate) - [select for diffs]
Modified Fri Apr 25 09:13:48 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4167 byte(s)
Diff to previous 727
Rename calls to ProjFile.GetFileName to ProjFile.GetFilename.


Revision 727 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 16:06:16 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 4167 byte(s)
Diff to previous 718
(GetSystemProjFiles, GetUserProjFiles): Return a list with only one projection
        file instead of searching for any projection file. This simplifies many
        things if the user can only have one system file and one user file.


Revision 718 - (view) (annotate) - [select for diffs]
Modified Wed Apr 23 10:39:46 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 3472 byte(s)
Diff to previous 709
Fixes RTbug #1813.
(ReadProjFile): Add documentation about which exceptions are raised.
    Always pass the exceptions up to the caller.
(GetProjFiles): If the directory can't be read return an empty list.
    If any of the proj files can't be read skip that file and go
    on to the next one.


Revision 709 - (view) (annotate) - [select for diffs]
Modified Wed Apr 23 08:45:44 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 3166 byte(s)
Diff to previous 696
Use XMLReader and XMLWriter.
(GetProjFiles): Renamed from GetProjections. Now returns a list
        of ProjFile objects.
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
        a list of ProjFile objects whose files are not user defined.
(GetUserProjFiles): Renamed from GetUserProjections. Returns a
        list of ProjFile objects whose files are user defined.
(ProjFileReader): Extend new XMLReader.


Revision 696 - (view) (annotate) - [select for diffs]
Added Wed Apr 16 16:39:49 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/resource.py
File length: 3135 byte(s)
New. Contains general utilities for read and writing projection 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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26