Commit graph

141 commits

Author SHA1 Message Date
Dave
3592872d4b Add a new test demo for regression testing label placement.
If someone creates tests for other areas of mapnik they can be added in too.
2008-01-15 20:57:59 +00:00
Artem Pavlenko
7b73a701b2 1. define BOOST_SPIRIT_THREADSAFE (should be defined in config.hpp??)
to be compatible with the core library.
2. use mapnik install_dir as input argument. 
3. Generate three images as in rundemo.py
2008-01-09 11:48:39 +00:00
David
4e14658fe4 - added exception handling 2008-01-08 21:09:16 +00:00
David
4091f526d5 - fixed conflict
- removed instance() call: the fontengine is not a singleton any more
2008-01-07 06:32:15 +00:00
Artem Pavlenko
747ef8cccf added a bit of colour to SCons 2008-01-03 11:41:39 +00:00
Artem Pavlenko
3a9a77d95f render map once and output three images 2008-01-03 11:39:10 +00:00
Artem Pavlenko
2058f966b2 applied patch from Jochen :
1. The README talks about "scons.py", but it is just called "scons".

2. In demo/c++ there is a Makefile, but the readme.txt gives a command
   line to compile. Both don't work for me. One error can at least be
   fixed by adding -I../../agg/include to the command line.

3. When compiling Mapnik an error is thrown because of a redefined type.
   This was on an Intel 64Bit machine. Fixed by "typedef char byte" to
   "typedef uint8_t byte" in include/mapnik/global.hpp. I am not sure
   whether thats the right fix, though, I just guessed. :-)

4. include/mapnik/image_data.hpp needs
   #include <mapnik/octree.hpp>
   to compile
2007-12-16 12:33:28 +00:00
Artem Pavlenko
58f4431df1 support for palette based PNGs, user 'png256' as a format parameter (see updated rundemo.py) 2007-12-10 19:59:17 +00:00
Artem Pavlenko
d1a345a3d2 1.don't share FT_Library object between threads (TODO : implement freetype_engine pool)
2. merged changes with latest load_map
2007-10-05 11:27:00 +00:00
Artem Pavlenko
8e071f84c7 1. Changed internal geometry representation (explicit support for multi geometries)
(FIXME : label_spacing is still, too slow!!) 
2. Re-use some agg objects.
3. placement_finder cleanups! 
4. Added support for 'building_symbolizer' - extruded polygons
2007-09-16 11:23:51 +00:00
Andreas Volz
d38dedad68 + added GNU autotools build environment
+ raster and gdal input isn't tested. Not working currently...
+ *-input.so plugins created. Change loader in source or link plugin to correct place
+ use pkg-config uninstalled feature
  -> define project root to PKG_CONFIG_PATH to use mapnik without installation
+ added various library checks
+ don't install fonts
+ don't use included AGG
  -> check for a installed libagg
+ Added Makefile for c++ demo
+ don't build any python wrapper stuff
  -> this follows if all other building works
+ added Anjuta file
  -> not needed to build anything, but helps much if you use Anjuta
2007-09-14 23:07:16 +00:00
Artem Pavlenko
2ad4634034 added encoding='latin1' parameter to display text correctly 2007-08-29 15:23:39 +00:00
Artem Pavlenko
76572994b5 Applied mapnik-r511.patch from David Siegel:
plugins/input/postgis/SConscript:
- added boost_thread-mt to darwin builds

demo/c++/rundemo.cpp:
- setBackground() is now set_background()

bindings/python/SConscript:
- added boost_thread-mt to darwin builds
- changed builder to LoadableModule which builds a so called "bundle"
   on darwin and a shared library on all other systems.
- LDMODULEPREFIX = '' 

SConstruct:
- freetype-config is now searched in the path.
2007-08-28 10:12:38 +00:00
Artem Pavlenko
b36a802107 added layer_info dialog
improved style_model
2007-08-13 09:13:58 +00:00
Artem Pavlenko
c3dc93ed14 added symbilizer node to the Layer TreeView 2007-08-09 14:14:51 +00:00
Artem Pavlenko
8887b9eb99 Mapnik Viewer - initial import 2007-08-07 15:09:41 +00:00
Artem Pavlenko
738941cae5 removed *.xml (esri??) files, fixed COPYRIGHT.txt to use unix style line endings 2007-07-25 09:23:47 +00:00
Artem Pavlenko
0b11a73df4 keep gcc4.0.1 on darwin happy 2007-03-13 22:46:01 +00:00
Artem Pavlenko
871fa5c8ef correct font name type (patch from jonb) 2007-02-27 21:00:41 +00:00
Jean-Francois Doyon
2513da8f79 - Add first draft of getfeatureinfo support with text/plain and text/xml support.
- ignore a SCons file
- Add 'encoding' statement to the demo.
2007-02-20 00:22:04 +00:00
Artem Pavlenko
bf2859cee2 replaced Bistream Vera with DejaVu 2007-02-12 15:25:59 +00:00
Artem Pavlenko
e016bd61f8 Added transcoder based on iconv. Internally we use UCS-2 at the moment.
* Postgis plug-in determines encoding by querying 'client_encoding' parameter (libpq). 
 * Shapfiles (dbf!) don't store character encoding information. Users can apply 'encoding' parameter at datasource creation stage (defaults to Latin1 (ISO-8859-1))
 * Raster plug-in utf-8
2007-02-06 14:27:21 +00:00
Jean-Francois Doyon
cf1542da7e Update the link to the data license. 2006-12-16 17:49:30 +00:00
Artem Pavlenko
447b63b1c1 updated to latest mapnik 2006-12-07 23:43:31 +00:00
Artem Pavlenko
6ebe6dab07 added ellipsoid parameters to proj4 init string. 2006-11-25 11:06:56 +00:00
Artem Pavlenko
70adefc9ec updated to latest mapnik 2006-11-15 21:22:54 +00:00
Artem Pavlenko
bf297ec3ca 1.upgrade to latest agg2.4
2.added default PointSymbolizer in load_map.cpp
2006-11-09 23:44:34 +00:00
Artem Pavlenko
889ac41694 Patch from Toby: adds a maximum angle delta for text placement (if the
angle changes too much between characters it finds an alternate
placement), this is specified in the max_char_angle_delta property in
radians (feel free to change it to degrees).

It also improves the text placement around corners trying to minimise
the distance between the center of the character and the line on each
side. This is the major portion of the patch.
2006-11-04 10:38:24 +00:00
Artem Pavlenko
e924b597f4 1. patch from Toby that allows repeated labels to be placed on a line
geometry (such as roads)
2. restored text labels for point geometry.
3. process 'spacing' attribute in load_map.cpp
2006-11-01 23:17:05 +00:00
Artem Pavlenko
9570a819df 1. added convinience factory methods
ds = Shapefile(file='/../../')
    ds = PostGIS(host='localhost',..)
    ds = Raster(....)

2. Modified rundemo.py accordingly
2006-10-16 22:25:11 +00:00
Artem Pavlenko
bb235fa316 1.added projection transformation support based on proj4 (new dependency!!!)
Map and Layer objects both have a new parameter 'srs', initialized to "+proj=latlong +datum=WGS84" by default. 
    
  Basic usage (Python):
    p = Projection("+proj=merc +datum=WGS84")
    point = p.forward(Coord(-2,51))
    ...        
2.reflected arithmetic operators for Envelope/Coord into Python
3.altered return policies for python objects
4.modified build system to require proj4 lib and headers
2006-10-16 13:44:52 +00:00
Artem Pavlenko
992af4747d 1. move include to mapnik/include
2. update demos,bibdibgs etc.
2006-10-04 11:22:18 +00:00
Artem Pavlenko
6a6c794c22 added copyleft header 2006-10-03 10:06:38 +00:00
Artem Pavlenko
8328424af5 1. datasource is now a property of Layer object.
2. modified python/c++ demos to reflect the above.
3. removed large 'blobby' mapnik.hpp (compilation times!!!)
2006-10-03 08:44:04 +00:00
Artem Pavlenko
c0fa1a6004 * create_filter moved to core lib
* modified demo/c++/rundemo.cpp to reflect the above
2006-09-17 19:45:01 +00:00
Artem Pavlenko
dad97c6476 added readme.txt with build instructions 2006-05-08 20:34:30 +00:00
Artem Pavlenko
3c200bd00e added c++ demo 2006-05-08 20:29:13 +00:00
Jean-Francois Doyon
c533d0ecd7 The data has been transformed to a slightly different projection (EPSG:42304). Also full files are included for ESRI tools, in case someone wants to manipulate it further. 2006-04-06 23:18:44 +00:00
Jean-Francois Doyon
6914187e0b - Remove the python interpreter from the script, have the user supply it instead
- Add a little README.txt
2006-03-22 02:41:13 +00:00
Jean-Francois Doyon
8678bc54c4 Here is a first implementation of a working python demo!!
TODO:
  - Better/smarter labelling with forced positionning
  - Point symbology
2006-03-22 02:32:38 +00:00
Jean-Francois Doyon
dc2e7d9def Initial load of the data that can be used for the demo. 2006-03-22 01:03:22 +00:00