Parent Directory
|
Revision Log
Sticky Revision: |
made a copy
* 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
(EPSG_DEPRECATED_PROJ_FILE): New. Constant for the file woth deprecated epsg projections (get_system_proj_file): Update doc-string
* 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.
(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.
(ProjFileReader.start_projection) (ProjFileReader.end_projection, ProjFileSaver.write_projfile): Handle the epsg code attribute when reading or writing proj files
(get_user_proj_file): small bug-fix: Added missing 'val' parameter.
* 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.
(ProjFileSaver.write): Use 'projectionlist' as the name in the document type declaration so that it matches the element type of the root element.
Insert cvs keywords and doc-strings.
First check if we can import the gdalwarp Thuban extension before checking for gdal. Also added some comments.
(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.
Fix missed proj functions that needed to be renamed.
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.
Use get_application_dir
Guess location of .thuban directory from tempdir parent directory.
Import _. (ProjFileSaver.write): write header using projfile.dtd.
Rename calls to ProjFile.GetFileName to ProjFile.GetFilename.
(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.
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.
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.
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.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |