Commit graph

14003 commits

Author SHA1 Message Date
Jean-Francois Doyon
d0f0f5a564 Changed the layer constructor to use a more pythonic:
Layer(name, type, file)

Please review and comment!
2006-03-01 04:14:41 +00:00
Artem Pavlenko
c3ff3084ca 1.added to_string method to Color
2.added factory methods to python Color

use factory methods
2006-02-27 21:57:08 +00:00
Artem Pavlenko
3818da6bc5 added quad_tree implementaion 2006-02-27 21:25:25 +00:00
Jean-Francois Doyon
efc23b9217 Fixed up some more styling.
color_from_string is now Color
filter is now Filter

and maybe a few more ...
2006-02-26 23:04:47 +00:00
Jean-Francois Doyon
34dc842d2d Reworked all the svn:ignore properties. They are all set explicitely now, and nothing should be left unacounted for.
Changed SConstruct to use freetype-config.  Updated INSTALL to reflect.

Added a RAM requirement for building in the INSTALL doc.

Fixed some python styling and added some basic docstrings.
2006-02-26 21:47:35 +00:00
Artem Pavlenko
9de253198b 1.python bindings updated to reflect symbolizers changes
2.added label collision detector ( TODO - proper impl!)
2006-02-25 11:03:30 +00:00
Artem Pavlenko
1728bdbc7e added:
1. start/end map/layer handlers 
2. some cleanups
2006-02-21 20:17:08 +00:00
Artem Pavlenko
bd173527a0 added font_engine impl - work in progress:) 2006-02-21 19:55:24 +00:00
Jean-Francois Doyon
897341e042 Capitalized class names as per the "Style Guide for Python Code" at:
http://www.python.org/peps/pep-0008.html

Because the bindings are out of synch, this is untested.
2006-02-20 01:34:02 +00:00
Jean-Francois Doyon
d34d818626 Simple fix to how the python version is tested. 2006-02-20 01:17:04 +00:00
Jean-Francois Doyon
b246133a2b Fix a bug that would switch to the wrong BOOST_APPEND if one of the boost libs is missing.
We now make sure the first one, and only the first one, found is the reference for the BOOST_APPEND.
2006-02-14 23:59:53 +00:00
Artem Pavlenko
9f8460fb0b changed headers order to keep boost::serialization (1_33_0) happy! (trunk) 2006-02-13 20:28:21 +00:00
Artem Pavlenko
e3c1365043 some line rendering fixes and optimizations 2006-02-11 00:39:50 +00:00
Artem Pavlenko
aed5516197 1. new feature model - based on boost::property_map concept
f = feature(id);
       f["name"] = "what is my name?";
       boost.put(f,"area",123123.4325);
       
2. simplified and corrected value class and operators
3. updated input plug-ins to work with new features
4. add text_symbolizer (getting there:)
5. template version of agg_renderer 
6. attribute_collector how accepts rules 
	(to collect attribute names for text labels)
2006-02-10 17:13:02 +00:00
Artem Pavlenko
f4a64526c3 updated agg-2.4 2006-02-10 17:07:15 +00:00
Artem Pavlenko
034298f7dd make agg_renderer non-copyable 2006-02-08 10:44:46 +00:00
Artem Pavlenko
a181d78403 Of course,we can use one templated member functions
to handle all symbolizers.
2006-02-07 20:51:08 +00:00
Artem Pavlenko
6a4070a32a added raster_symbolizer 2006-02-07 16:16:54 +00:00
Artem Pavlenko
af2601eea0 1. new style/feature processor abstraction allowing plugable backends.
(to construct custom 'Output' derive from feature_style_processor (CRTP) e.g
	class MyOutput : public feature_style_processor<MyOutput>
     and implement:
	 process(***_symbolizer const&, Feature const&)
     methods
   At the moment only AGG renderer is implemented
2006-02-07 14:41:41 +00:00
Jean-Francois Doyon
9f9e4c1d8e Reworked the way the tail end of the boost libs (i.e. -gcc-mt) is handled.
This will eventually help with mroe platforms, and to link with debug libraries.
2006-02-06 01:08:32 +00:00
Jean-Francois Doyon
1c20f2a02b Modify to match the new SConstruct ... one last time! 2006-02-05 22:36:33 +00:00
Jean-Francois Doyon
8ed259967f Add .sconsign to be ignored, make filter recursive in the source tree. 2006-02-05 22:25:34 +00:00
Jean-Francois Doyon
de613054fe Set svn:ignore to ignore:
*.pyc
*.so
*.os
2006-02-05 22:23:14 +00:00
Jean-Francois Doyon
ecd1f27045 Fixed an (ironic) bug with the debug option :) 2006-02-05 22:19:25 +00:00
Jean-Francois Doyon
0aac110961 Cleaning SConstruct a little bit. No new functionality. 2006-02-05 22:03:43 +00:00
Jean-Francois Doyon
e455c19431 Edit the INSTALL to reflect the changes in the build options. 2006-02-05 21:04:30 +00:00
Jean-Francois Doyon
00f43b348d Use the current python interpreter as default for building python bindings.
Make the DEBUG option work more consistently, like all other build options.
2006-02-05 21:01:54 +00:00
Artem Pavlenko
2d4ea20560 added set_capacity method to geometry classes.
(now we can use std::vector<boost::tuple<value_type,value_type,char> > 
as an alternative vertex storage).
2006-02-05 12:31:24 +00:00
Artem Pavlenko
2a858bcd19 1.removed named_style_cache
2.styles moved to Map object
2006-02-05 09:45:51 +00:00
Artem Pavlenko
95d26be572 updated agg-2.4 2006-02-04 21:30:08 +00:00
Jean-Francois Doyon
6b42c9fa4c dded myself to the AUTHORS list, as a test to see if I can finally commit :) 2006-02-01 15:08:33 +00:00
Artem Pavlenko
ae2e89ef54 removed python dir (now in bindings) 2006-02-01 09:31:03 +00:00
Artem Pavlenko
6ebc93b7a1 new build system 2006-01-31 23:20:23 +00:00
Artem Pavlenko
e7119730a3 new build system 2006-01-31 23:18:24 +00:00
Artem Pavlenko
96981eb3a9 new build system 2006-01-31 23:12:49 +00:00
Artem Pavlenko
d8dc53bcf4 new build system 2006-01-31 23:09:52 +00:00
Artem Pavlenko
c97fb0bf57 added check for num_points in line/polygon symbolizers:
1. don't bother with line_symbolizer unless at least 2 points
2. at least 3 points for polygon_symbolizer
2006-01-31 17:35:18 +00:00
Artem Pavlenko
6b7d874ff3 1.corrected set_rectangle and set_rectangle_alpha to use envelope intersection for proper clipping
2. clean up render.cpp
2006-01-28 16:05:51 +00:00
Artem Pavlenko
27a880fe99 midpoint calc for line strings 2006-01-26 23:52:22 +00:00
Artem Pavlenko
0875208c5b some minor changes (+fast line rendering needs fixing clipping) 2006-01-26 16:46:56 +00:00
Artem Pavlenko
db433452b6 switched on optimization in png writing code 2006-01-26 16:44:46 +00:00
Artem Pavlenko
b89195f9e6 added label_position method for geometry objects (todo line_string) 2006-01-26 16:43:10 +00:00
Artem Pavlenko
4ed7158908 better interface for clip_line 2006-01-26 16:41:15 +00:00
Artem Pavlenko
a6f96ea5c1 changed symbolizer interface to accept 'feature' and CoordTransform, instead of
geometry (feature centric OGC model:).
2006-01-23 22:33:37 +00:00
Artem Pavlenko
245be985e2 1.symbolizers refactored - split into hpp/cpp
(all AGG is private to libmapnik and not exposed to client code) 
2.removed unused files (more todo)
3.added line pattern symbolizer to python bindings
2006-01-23 13:24:41 +00:00
Artem Pavlenko
390b9c4655 1.added line pattern symbolizer
2.added layer envelope check in main rendering loop
2006-01-23 10:33:32 +00:00
Artem Pavlenko
a7c154f223 fixed to_string() method for filter expressions 2006-01-23 10:31:10 +00:00
Artem Pavlenko
150f9dc99a fixed to_string() method for filter expressions 2006-01-23 10:29:28 +00:00
Artem Pavlenko
0ea95e8b11 fixed pattern fill symbolizer 2006-01-23 10:26:43 +00:00
Artem Pavlenko
55ae073ba2 added alternative vertex storage impl 2006-01-23 10:25:38 +00:00