/[thuban]/trunk/thuban/libraries
ViewVC logotype

Log of /trunk/thuban/libraries

View Directory Listing Directory Listing


Sticky Revision:

Revision 2897 - Directory Listing
Modified Fri Jul 15 07:56:25 2011 UTC (13 years, 7 months ago) by bricks
drop pyshapelibg and shapelib from thuban svn
use svn externals to pyshapelib svn instead


Revision 2889 - Directory Listing
Modified Sun Sep 27 20:36:21 2009 UTC (15 years, 5 months ago) by bramz
reintegrating WIP-pyshapelib-Unicode branch (r2888) in trunk

Revision 2881 - Directory Listing
Modified Fri Jul 10 07:14:14 2009 UTC (15 years, 7 months ago) by dpinte
2009-07-09 Didrik Pinte <dpinte@dipole-consulting.com>

  * libraries/thuban/gdalwarp.py : fixing bug loading files with GDAL thanks to
    Evan Rouault
  * test/test_baserenderer.py : added a test replicating the problem loading 
    files with GDAL



Revision 2866 - Directory Listing
Modified Tue Nov 18 09:49:59 2008 UTC (16 years, 3 months ago) by dpinte
2008-11-18 Didrik Pinte <dpinte@dipole-consulting.com>

    * libraries/thuban/gdalwarp.cpp : support the use of GDAL MEM driver for
      GDAL versions >= 1.5



Revision 2840 - Directory Listing
Modified Fri Apr 18 19:58:09 2008 UTC (16 years, 10 months ago) by dpinte
2008-04-18 Didrik Pinte <dpinte@dipole-consulting.com>

    * Thuban/UI/legend.py : changed the use of wx.MemoryDC to 
    wx.ScreenDC in order to allow compilation under Mac and wx 2.8

    * libraries/pyshapelib/shptreemodule.c : bugfix coming from Debian
    see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469007



Revision 2805 - Directory Listing
Modified Wed Jan 9 00:43:45 2008 UTC (17 years, 1 month ago) by bernhard
Making Thuban robust against shapefiles which contain empty shapes.

* libraries/thuban/wxproj.cpp(project_points): setting an exception
now if called with no points at all. This is necessary, because 
the NULL pointer already indicates an error condition, thus it
cannot be used to indicate that there was no point in the result.
(draw_polygon_shape, (point_in_polygon_shape): stop if there 
are no points in the shape.
Propagate an error condition on failure of (project_points()).
(point_in_polygon_shape): shifted some lines around to allow
a cleanup jump point.

* Thuban/Model/layer.py, Thuban/UI/viewport.py: removed unused import
of  point_in_polygon_shape.


Revision 2800 - Directory Listing
Modified Tue Jan 8 15:55:20 2008 UTC (17 years, 1 month ago) by bernhard
* libraries/thuban/wxproj.cpp(project_points): made function robust
against being called with no points. (also fixes main defect related 
to [#571] (MemoryError when adding a particular shp layer))


Revision 2765 - Directory Listing
Modified Wed Apr 25 19:36:27 2007 UTC (17 years, 10 months ago) by bh
* shptreemodule.c: Fix copyright notice.  It should have been
LGPL.


Revision 2716 - Directory Listing
Modified Mon Nov 6 12:00:12 2006 UTC (18 years, 4 months ago) by dpinte
2006-11-06 Didrik Pinte <dpinte@itae.be>

       * libraries/thuban/wxproj.cpp: bugfix - allow compilation with
       msvc++ toolkit 2003



Revision 2712 - Directory Listing
Modified Sun Oct 15 23:27:05 2006 UTC (18 years, 4 months ago) by bernhard
* Thuban/UI/renderer.py: Added module variable verbose and
added verbose output before doing a raster projection.
Minor: Added (c) year 2006.

* test/test_baserenderer.py: Added new function
test_projected_raster_decimalcommalocale()
Added new author Bernhard Reiter and new copyright year 2006.

* libraries/thuban/gdalwarp.cpp(ProjectRasterFile): Adding
switching to LC_NUMERIC "C" and back before calling GDAL functions -
only #if python >=2.4 .


Revision 2706 - Directory Listing
Modified Sun Sep 24 19:25:26 2006 UTC (18 years, 5 months ago) by bernhard
* dbflib_wrap.c, README: Checked for python version >= 2.4.0a0
before using &PyOS_ascii_atof.


Revision 2704 - Directory Listing
Modified Sun Sep 24 18:52:59 2006 UTC (18 years, 5 months ago) by bernhard
Added dirty workaround to make dbflib agnostic 
against decimal_poinst != ".\0".


Revision 2703 - Directory Listing
Modified Sun Sep 24 18:51:39 2006 UTC (18 years, 5 months ago) by bernhard
Introduced a pointer atof_function which is called by DBFReadAttribute() now.
Default value is &atof, but DBFSetatof_function() can now be used
to change this during runtime.


Revision 2676 - Directory Listing
Modified Fri Mar 31 17:18:50 2006 UTC (18 years, 11 months ago) by bernhard
including proj_api.h instead of projects.h now. 
According the Frank Warmerdam and man pj_init
this is the public interface to proj. Thus I have changed PJ to projPJ.
And I could remove the hack to avoid clashes with typedef PVALUE
and #define LP in projects.h clashing with symbols when trying to 
build on windows. The file is cleaner and nicer now.


Revision 2675 - Directory Listing
Modified Wed Mar 29 10:58:44 2006 UTC (18 years, 11 months ago) by bernhard
undef LP to avoid clash when trying to build with mingw.


Revision 2637 - Directory Listing
Modified Thu Jun 30 14:20:46 2005 UTC (19 years, 8 months ago) by bh
* shapelib.i (new_SHPObject): Fix the test for the length of the
part types.  It used the wrong variable.

* shapelib_wrap.c: Regenerated from shapelib.i

* pytest.py (make_shapefile): Add some more comments and add an
example with a polygon with a hole.


Revision 2598 - Directory Listing
Modified Mon Apr 11 18:18:08 2005 UTC (19 years, 10 months ago) by bh
Move the compatibility code that
deals with the wxPython 2.4 version of wxPython.h into the #ifdef
branch that includes wxPython.h because it's only needed when
wxPython.h is used.  Also, it won't compile when
USE_WX_PYTHON_SWIG_HACK is set otherwise.


Revision 2591 - Directory Listing
Modified Tue Apr 5 21:12:24 2005 UTC (19 years, 11 months ago) by bh
Make it work with a wxPython.h from
wxPython 2.4 as well.  Also, remove a now obsolete comment.


Revision 2590 - Directory Listing
Modified Tue Apr 5 17:26:58 2005 UTC (19 years, 11 months ago) by bh
Use wxPython.h by default but provide a workaround when it isn't
available.

* setup.py (wxproj_extension): New variable.  Assign the Extension
instance for Lib.wxproj to this variable instead of putting it
directly into the listso that it can be accessed by other code
later.
(thuban_build_ext.user_options): Added boolean option
--use-wx-python-swig-hack.
(thuban_build_ext.initialize_options): Initialize the new option
to False.
(thuban_build_ext.finalize_options): If the new option was given,
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
(thuban_build_ext): Update the doc-string

* libraries/thuban/wxproj.cpp: Normally we use
wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
defined, use swigPtrConvertHack.h instead.

* libraries/thuban/swigPtrConvertHack.h: Remove the code that was
copied over from wxPython.h.
(decode_pointer_new): New.  Equivalent of decode_pointer for
wxPython 2.5.
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.


Revision 2574 - Directory Listing
Modified Fri Feb 18 21:22:53 2005 UTC (20 years ago) by jonathan
Optimize the loop in gdalwarp which builds a mask. Handle the majority of an
image in a loop, creating 8 bits at a time. Later, handle the edge case where
less than 8 bits are packed.


Revision 2571 - Directory Listing
Modified Fri Feb 18 14:54:17 2005 UTC (20 years ago) by jonathan
Refactored baserenderer.py and renderer.py to remove baserenderer.py's
dependencies on wxPython. Added a new method projected_raster_layer()
that returns a raster layer image in projected space. This must be
implemented in classes derived from BaseRenderer. This also eliminates
the dependency on gdal in baserenderer.py.


Revision 2562 - Directory Listing
Modified Wed Feb 16 21:14:47 2005 UTC (20 years ago) by jonathan
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
so that that wxproj doesn't crash. Added GUI support for selecting
alpha channel (opacity can't be selected yet).


Revision 2558 - Directory Listing
Modified Mon Feb 7 19:51:13 2005 UTC (20 years ago) by jonathan
Removed unnecessary/unused macros.


Revision 2553 - Directory Listing
Modified Fri Jan 28 19:10:07 2005 UTC (20 years, 1 month ago) by jonathan
Recoded how the mask is packed into the bit array.


Revision 2552 - Directory Listing
Modified Fri Jan 28 15:54:00 2005 UTC (20 years, 1 month ago) by jonathan
Make layer's use_mask flag default to true. Support a bit array describing
the mask to use. Improve error handling in ProjectRasterFile (also addresses
RT #2947).


Revision 2550 - Directory Listing
Modified Thu Jan 27 14:17:01 2005 UTC (20 years, 1 month ago) by jonathan
Replace the old gdalwarp.cpp code with the non-simple version supplied with
gdal. This allows added features such as creating an alpha band.


Revision 2537 - Directory Listing
Modified Fri Jan 21 14:01:25 2005 UTC (20 years, 1 month ago) by jonathan
Improved rendering raster layers by changing the return format of
the ProjectRasterFile function.


Revision 2510 - Directory Listing
Modified Mon Dec 27 14:27:53 2004 UTC (20 years, 2 months ago) by bernhard
Refering to the new homepage shapelib.maptools.org now.


Revision 2453 - Directory Listing
Modified Mon Dec 13 17:57:04 2004 UTC (20 years, 2 months ago) by bh
* dbflib.py: Updated from difflib.i with SWIG.

* dbflib.i: Work around a bug in the generated python code which
leads to exception in the __del__ method when the constructor
fails.  See the comments in the code for more details.


Revision 2452 - Directory Listing
Modified Mon Dec 13 17:54:36 2004 UTC (20 years, 2 months ago) by bh
* libraries/pyprojection/Projection.i: Work around a bug in the
generated python code which leads to exception in the __del__
method when the constructor fails.  See the comments in the code
for more details.

* libraries/pyprojection/Projection.py: Updated from Projection.i
with SWIG.


Revision 2240 - Directory Listing
Modified Mon Jun 14 14:49:02 2004 UTC (20 years, 8 months ago) by bernhard
* libraries/thuban/cpl_mfile.h: Added copyright header.
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
	Free Software License so that it is most useful with gdalwarp
	and bmpdataset.


Revision 2227 - Directory Listing
Modified Fri May 28 19:07:27 2004 UTC (20 years, 9 months ago) by bh
update ChangeLog


Revision 2226 - Directory Listing
Modified Fri May 28 19:07:18 2004 UTC (20 years, 9 months ago) by bh
Flesh out the some more.  Correct the shapelib
requirements.


Revision 2225 - Directory Listing
Modified Fri May 28 19:07:06 2004 UTC (20 years, 9 months ago) by bh
Update the date of the actual release of 0.3


Revision 2223 - Directory Listing
Modified Fri May 28 17:29:16 2004 UTC (20 years, 9 months ago) by bh
update ChangeLog


Revision 2222 - Directory Listing
Modified Fri May 28 17:28:57 2004 UTC (20 years, 9 months ago) by bh
* setup.py: Determine shp_dir correctly when run with bdist_rpm
(dbf_macros): Remove a debug print


Revision 2221 - Directory Listing
Modified Fri May 28 17:28:24 2004 UTC (20 years, 9 months ago) by bh
Also mention the new (compared to 0.2) setup.py


Revision 2220 - Directory Listing
Modified Fri May 28 17:28:01 2004 UTC (20 years, 9 months ago) by bh
New. Define which files belong into a source
distribution


Revision 2215 - Directory Listing
Modified Mon May 17 15:51:05 2004 UTC (20 years, 9 months ago) by bh
Update for next release


Revision 2214 - Directory Listing
Modified Mon May 17 15:50:41 2004 UTC (20 years, 9 months ago) by bh
update for the next release


Revision 2213 - Directory Listing
Modified Mon May 17 15:48:53 2004 UTC (20 years, 9 months ago) by bh
update ChangeLogs


Revision 2212 - Directory Listing
Modified Mon May 17 15:47:57 2004 UTC (20 years, 9 months ago) by bh
Update to newest shapelib and get rid of Thuban specific extensions,
i.e. use the new DBFUpdateHeader instead of our DBFCommit kludge

* libraries/shapelib/shpopen.c: Update to version from current
shapelib CVS.

* libraries/shapelib/shapefil.h: Update to version from current
shapelib CVS.

* libraries/shapelib/dbfopen.c: Update to version from current
shapelib CVS.
(DBFCommit): Effectively removed since shapelib itself has
DBFUpdateHeader now which is better for what DBFCommit wanted to
achieve.
We're now using an unmodified version of dbfopen.

* libraries/pyshapelib/dbflib_wrap.c, libraries/pyshapelib/dbflib.py:
Update from dbflib.i

* libraries/pyshapelib/dbflib.i (DBFInfo_commit): New. Implementation of
the commit method.  This new indirection is necessary because we use the
DBFUpdateHeader function now which is not available in shapelib <=
1.2.10
(DBFFile::commit): Use DBFInfo_commit as implementation
(pragma __class__): New. Kludge to remove the commit method when
the DBFUpdateHeader function isn't available
(_have_commit): New. Helper for the pragma kludge.

* libraries/pyshapelib/setup.py (dbf_macros): New. Return the
preprocessor macros needed to compile the dbflib wrapper.  Determine
whether DBFUpdateHeader is available and define the right value of
HAVE_UPDATE_HEADER
(extensions): Use dbf_macros for the dbflibc extension

* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
value '1' to the Lib.dbflibc extension.  This simply reflects the
shapelib and pyshapelib updates


Revision 2088 - Directory Listing
Modified Wed Feb 25 10:33:24 2004 UTC (21 years ago) by bh
* libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
version of wxWindows the module was compiled with so we can check
that against the wxPython version.

* Thuban/version.py (thuban_branch, thuban_release): New variables
controlling which and how Thuban versions are shown.  See the
comments for details.
(verify_versions): Also check that the wx version that wxproj is
compiled against matches that of the wxPython we use at runtime


Revision 1920 - Directory Listing
Modified Mon Nov 3 17:33:45 2003 UTC (21 years, 4 months ago) by bh
update ChangeLog


Revision 1917 - Directory Listing
Modified Mon Nov 3 17:31:11 2003 UTC (21 years, 4 months ago) by bh
* dbflib.i (do_read_attribute): New helper function for reading
one attribute as a python object
(DBFInfo_read_attribute): New. Implement the read_attribute method
(DBFInfo_read_record): Use do_read_attribute to read the
individual values
(struct DBFFile): Add the read_attribute method.

* dbflib_wrap.c, dbflib.py: Update from dbflib.i.


Revision 1863 - Directory Listing
Modified Fri Oct 24 17:25:42 2003 UTC (21 years, 4 months ago) by bh
(draw_polygon_shape)
(point_in_polygon_shape, shape_centroid): Raise an exception if
the shape can't be read. Previously invalid shape ids would lead
to a segfault.


Revision 1769 - Directory Listing
Modified Thu Oct 2 15:15:16 2003 UTC (21 years, 5 months ago) by bh
Update to shapelib 1.2.10


Revision 1763 - Directory Listing
Modified Mon Sep 29 10:52:50 2003 UTC (21 years, 5 months ago) by bh
update ChangeLog


Revision 1762 - Directory Listing
Modified Mon Sep 29 10:52:38 2003 UTC (21 years, 5 months ago) by bh
New. Test cases for the dbflib bindings based on the
unittest module


Revision 1761 - Directory Listing
Modified Mon Sep 29 10:52:22 2003 UTC (21 years, 5 months ago) by bh
* dbflib.i: Add exception typemap for the add_field method. Fixes
Thuban bug RT#1842

* dbflib_wrap.c: Update from dbflib.i


Revision 1738 - Directory Listing
Modified Tue Sep 23 12:25:01 2003 UTC (21 years, 5 months ago) by bh
(project_point): if there's an
inverse but no forward projection, convert to degrees after
applying the inverse projection. Fixes RT#2096


Revision 1686 - Directory Listing
Modified Fri Aug 29 09:49:09 2003 UTC (21 years, 6 months ago) by bh
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
access the pj_errno because directly accessing pj_errno doesn't
work on windows if the proj library is in a DLL

* libraries/pyprojection/Projection_wrap.c: Update from Projection.i


Revision 1613 - Directory Listing
Modified Tue Aug 19 21:32:24 2003 UTC (21 years, 6 months ago) by jan
These files have been moved here from thuban/extensions/thuban/
See there in the Attic for the older history.


Revision 1612 - Directory Listing
Modified Tue Aug 19 21:29:25 2003 UTC (21 years, 6 months ago) by jan
These files have been moved here from thuban/extensions/shapelib/
See there in the Attic for the older history.


Revision 1611 - Directory Listing
Modified Tue Aug 19 21:24:20 2003 UTC (21 years, 6 months ago) by jan
These files have been moved here from thuban/extensions/pyshapelib/
See there in the Attic for the older history.


Revision 1610 - Directory Listing
Added Tue Aug 19 21:19:59 2003 UTC (21 years, 6 months ago) by jan
These files have been moved here from thuban/extensions/pyprojection/
See there in the Attic for the older history.


[email protected]
ViewVC Help
Powered by ViewVC 1.1.26