Log of /branches/WIP-pyshapelib-bramz/libraries
Directory Listing
Revision
2744 -
Directory Listing
Modified
Thu Mar 15 13:48:58 2007 UTC
(17 years, 11 months ago)
by
bramz
shapelibmodule.c, dbflibmodule.c: added some Unicode support for the filenames (no internal encoding for DBFFile yet). It now should similar Unicode support Python's file() (concerning the filename, that is).
Revision
2743 -
Directory Listing
Modified
Wed Mar 14 20:53:53 2007 UTC
(17 years, 11 months ago)
by
bramz
added support for shapetypes with Z and M values in shapelib
Revision
2742 -
Directory Listing
Modified
Wed Mar 14 16:26:14 2007 UTC
(17 years, 11 months ago)
by
bramz
pyshapelib: rewritten dbflib to use hand-crafted Python bindings instead of SWIG generated ones.
Revision
2741 -
Directory Listing
Modified
Tue Mar 13 23:30:41 2007 UTC
(17 years, 11 months ago)
by
bramz
Added part_types() to SHPObject to return tuple of part types. Added __repr__ operators to return a string that can reconstruct the object using eval()
Revision
2735 -
Directory Listing
Modified
Mon Mar 12 23:24:35 2007 UTC
(17 years, 11 months ago)
by
bramz
rewritten shapelib to use hand-crafted Python bindings instead of SWIG generated ones.
Revision
2734 -
Directory Listing
Modified
Thu Mar 1 12:42:59 2007 UTC
(18 years ago)
by
bramz
made a copy
Revision
2712 -
Directory Listing
Modified
Sun Oct 15 23:27:05 2006 UTC
(18 years, 4 months ago)
by
bernhard
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
2637 -
Directory Listing
Modified
Thu Jun 30 14:20:46 2005 UTC
(19 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
2552 -
Directory Listing
Modified
Fri Jan 28 15:54:00 2005 UTC
(20 years, 1 month ago)
by
jonathan
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
Improved rendering raster layers by changing the return format of
the ProjectRasterFile function.
Revision
2453 -
Directory Listing
Modified
Mon Dec 13 17:57:04 2004 UTC
(20 years, 2 months ago)
by
bh
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
* 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
2222 -
Directory Listing
Modified
Fri May 28 17:28:57 2004 UTC
(20 years, 9 months ago)
by
bh
Original Path:
trunk/thuban/libraries
* setup.py: Determine shp_dir correctly when run with bdist_rpm
(dbf_macros): Remove a debug print
Revision
2212 -
Directory Listing
Modified
Mon May 17 15:47:57 2004 UTC
(20 years, 9 months ago)
by
bh
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
* 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
1917 -
Directory Listing
Modified
Mon Nov 3 17:31:11 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
(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
1761 -
Directory Listing
Modified
Mon Sep 29 10:52:22 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
(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
Original Path:
trunk/thuban/libraries
* 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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
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
Original Path:
trunk/thuban/libraries
These files have been moved here from thuban/extensions/pyprojection/
See there in the Attic for the older history.