Commit graph

2825 commits

Author SHA1 Message Date
Artem Pavlenko
a53fbf2ca3 applied patch that makes sure names of vertical roads are
rendered in a consistent direction (from Cameron Patrick)
2007-08-01 10:57:27 +00:00
Artem Pavlenko
d959701d5a 1. added boost::optional<T> to/form Python converter
2. make background color optional (Map object)
3. exposed 'blend' method for Image object
2007-08-01 09:59:23 +00:00
Artem Pavlenko
d78ccbaed0 small fix 2007-08-01 08:52:18 +00:00
Artem Pavlenko
8eac22911a applied mapnik_line_displacement patch from Cameron Patrick 2007-07-26 21:09:40 +00:00
Artem Pavlenko
7c8a9f3075 added support for min_distance in shield/text symbolizer 2007-07-25 14:36:08 +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
vspader
9fe4a94c98 Added minimum_distance property to text symbolizers. This prevents the same label from appearing within N pixels (across features).
Shield symbolizer is now a subclass of text symbolizer.
Some small improvements to text rendering.
Fixed up placement finder for horizontal placement.
Cleaned up placement finder.
2007-07-02 13:39:08 +00:00
vspader
560de0b9b1 Fix so labels stay within the road. 2007-06-21 15:29:47 +00:00
Artem Pavlenko
f3ae318ca3 1. added 'allow_overlap' in load_map from xml
2. added overlap_ field to TextSymbolizer (ignored by renderer at the moment)
2007-06-20 21:08:23 +00:00
Artem Pavlenko
cc3b5bece1 applied patch from jonb - glob for all *.ttf 2007-06-20 20:20:16 +00:00
Artem Pavlenko
ab149257ad added save_to_file method that works with Image object. 2007-06-12 19:30:58 +00:00
Artem Pavlenko
8010d5433f 1. Removed srid from geometry class
2. Pass resolution to bbox query
3. Use variant<int,double,string> as parameter value e.g in Python:
	ds = Raster(file="/path/to/file",lox = 12312.4,.....)
   Added extractor facility to work with mapnik::parameter (C++):
	
	mapnik::parameters params;
	params["parameter0"] = 123.456;
	params["parameter1"] = "123.456"; // initialize with string extract double later
	
	boost::optional<double> val0 = params.get<double>("parameter0");
	if (val0) 
	{
	   std::cout << *val0;
        }
	
	
	// with default value. NOTE: there is no 'parameter2' in params
	boost::optional<double> val2 = params.get<double>("parameter2",654.321);
	std::cout << * val2;
        
	// 
4. Added Gdal factory method in __init__.py

        ds =  Gdal(file="/tmp/file.tiff")
2007-06-12 08:59:54 +00:00
Artem Pavlenko
e8d5172a64 added convertions :
std::pair<std::string,mapnik::value>  to Python tuple
mapnik::value -> PyObject
2007-06-05 09:12:30 +00:00
Artem Pavlenko
15e73b98f4 small formatting 2007-06-05 09:10:40 +00:00
Artem Pavlenko
8880e5ff5f Restored collecting attributes descriptors 2007-06-05 09:09:04 +00:00
Artem Pavlenko
c44cbddea7 applied mapnik-gdal-libs.patch from jonb 2007-05-20 20:19:04 +00:00
Artem Pavlenko
ef42640476 applied patch from jonb to use calloc instead of malloc (allocating fribidi buffer) 2007-05-15 22:20:18 +00:00
Artem Pavlenko
235244a1c0 added max_depth_ parameter (default to 8) to handle empty envelopes. 2007-05-12 12:01:43 +00:00
Artem Pavlenko
d3d40234c9 share collision detector between labels and text. 2007-05-12 11:34:55 +00:00
Artem Pavlenko
a6a31f42f6 implelmented optional 'clear' text labels cache at the layer level 2007-05-01 07:53:20 +00:00
Artem Pavlenko
46902bf488 increment feature id 2007-04-30 20:08:49 +00:00
Artem Pavlenko
7e38fc3d67 added support for building gdal plug-in 2007-04-25 19:18:44 +00:00
Artem Pavlenko
f9d28e56fa Added gdal raster input plug-in 2007-04-25 19:15:38 +00:00
Artem Pavlenko
5b91f9a9c5 small correction 2007-04-25 11:26:48 +00:00
Artem Pavlenko
cacea81bce 1. check if plug-ins path is a directory
2. wrap dynamic loading into try/catch to play nicer on win32
2007-04-25 08:59:57 +00:00
Artem Pavlenko
28ee22ac95 fixed mistype 2007-04-25 08:21:54 +00:00
Artem Pavlenko
6dc3015ea5 Allow omitting username and dbname in connection string. 2007-04-01 08:29:14 +00:00
Artem Pavlenko
5daa49ff41 forward declare ltdl stuff 2007-03-22 10:55:43 +00:00
Artem Pavlenko
8b74a301fb Be explicit about threading model
Added THREADING enum options (defaults to 'multi')
2007-03-22 10:54:44 +00:00
Artem Pavlenko
67c09a815b corrected boost toolkit/append logic 2007-03-16 12:09:58 +00:00
Artem Pavlenko
d163c8d59f explicit cast to FT_Pos added 2007-03-16 12:08:50 +00:00
Artem Pavlenko
528002dc82 added missing -pthread for linux platforms 2007-03-16 10:20:52 +00:00
Artem Pavlenko
e0d243dcec 1.Added support for building on Darwin (Xcode 2.4.1, gcc4.0.1).
Mainly taming gcc4.0.1 (anonymous enum bug)

2.Input plug-ins now have .input extension on all platforms
2007-03-16 10:11:37 +00:00
Artem Pavlenko
0b11a73df4 keep gcc4.0.1 on darwin happy 2007-03-13 22:46:01 +00:00
Jean-Francois Doyon
2bc9ef83cc - Improve exception handling and error displaying in the ogc server. 2007-03-13 01:17:03 +00:00
Artem Pavlenko
6ed05bcf42 and another one :) 2007-03-08 18:19:42 +00:00
Artem Pavlenko
d10a7eeb24 reverting change #457 : we still must read four bytes ! 2007-03-08 17:35:01 +00:00
Artem Pavlenko
7a7e2101f9 rewind path in envelope() method 2007-03-08 10:38:09 +00:00
Jean-Francois Doyon
737fcdd516 - Add WSGI handler
- Add a performance improvement that should make maps a little faster
2007-03-05 03:20:35 +00:00
Jean-Francois Doyon
76a820beeb - Move a variable declaration used only for debugging, to avoid compiler warning. 2007-03-05 01:28:49 +00:00
Artem Pavlenko
871fa5c8ef correct font name type (patch from jonb) 2007-02-27 21:00:41 +00:00
Artem Pavlenko
13dd535d6c check strings size before applying bidi. 2007-02-26 12:42:10 +00:00
Artem Pavlenko
215ceccb73 added specialization for double values in to_unicode() 2007-02-25 12:59:23 +00:00
Artem Pavlenko
4cc771546d small cleanup 2007-02-25 10:54:36 +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
0196cb3334 corrected members init order 2007-02-15 17:25:37 +00:00
Artem Pavlenko
73bd1ab83e fixed missing 'encoding' parameter:
>>> from mapnik import *
>>> ds = Shapefile(file='./demo/data/boundaries',encoding='latin1')
>>> pt = ds.envelope().center()
>>> print ds.describe()
>>> for f in ds.features_at_point(pt):
>>>     print f.properties['NOM_FR'].unicode()
>>>     print f.properties['NOM_FR'].__str__()
2007-02-14 21:55:04 +00:00
Artem Pavlenko
eda5386b3f added missing mapnik::value to std::wstring conversions 2007-02-14 20:25:24 +00:00
Artem Pavlenko
2d256166b4 Store text attributes as USC-2 encoded std::wstring 2007-02-14 19:54:39 +00:00
Artem Pavlenko
bf2859cee2 replaced Bistream Vera with DejaVu 2007-02-12 15:25:59 +00:00