Commit graph

22 commits

Author SHA1 Message Date
Dane Springmeyer
49fd1f93d1 use boost::make_shared across plugins to avoid explicit new and ensure fast and exception safe allocation 2011-05-16 23:41:34 +00:00
Robert Coup
408de0c223 Add bbox parameter to GDAL Datasource to allow overriding envelope, with Python bindings. Fixes #680 2010-12-09 21:41:25 +00:00
Lucio Asnaghi
013d48f667 + logging cosmetics 2010-11-18 22:17:09 +00:00
Lucio Asnaghi
68cbb51814 + fixed a problem in getting GetColorEntry in RGB datasets
+ cosmetics
2010-11-14 14:54:28 +00:00
Robert Coup
1dce437120 #622 add optional late-binding of datasources 2010-10-24 06:34:18 +00:00
Dane Springmeyer
00f473de63 gdal plugin: calculate constant raster properties used in featureset up front at datasource creation (no real speed boost but less repeated code) 2010-09-18 19:19:27 +00:00
Dane Springmeyer
680760005d + formatting 2010-08-18 20:42:00 +00:00
Dane Springmeyer
4707e1a6f3 +add support for better resampling when using bilinear scaling with gdal plugin (with or without overviews) 2010-06-20 04:06:23 +00:00
Dane Springmeyer
810c63cb51 revert unintended changes from r1804 against gdal and sqlite plugins 2010-05-30 03:23:59 +00:00
Dane Springmeyer
a84b397f48 markers_converter.hpp was moved to markers_placement.hpp 2010-05-30 03:17:59 +00:00
Artem Pavlenko
48d145d98c + TODO: implement colormap 2010-05-27 10:20:33 +00:00
Artem Pavlenko
47dc1e197b + merge mapnik2 to trunk 2009-12-16 20:02:06 +00:00
Dane Springmeyer
6d3dcdeac6 add a bit more debug printing to gdal plugin and make raster width and height class attributes 2009-10-12 04:09:36 +00:00
Dane Springmeyer
c808cf62b9 add support for gdal overviews to the Gdal Plugin (use http://www.gdal.org/gdaladdo.html to build overviews) - modified patch from gdalcolors branch from Alberto Valverde (I removed dependence on color/masking code until that support lands in trunk) - addresses #54 2009-09-27 17:23:09 +00:00
Lucio Asnaghi
3805ee0fab + added a "shared" parameter to select if you want to open the dataset in shared mode (causing problems when multiple accesses to the same file)
+ introduced some more code for supporting overviews (still commented out as default, need revision)
2009-05-15 10:31:49 +00:00
Lucio Asnaghi
1f39b05923 + add GDALDereferenceDataset when used with GDALOpenShared (instead of freeing brutally the dataset) 2009-05-08 21:45:19 +00:00
Lucio Asnaghi
9de066e035 + make use of GDALOpenShared instead of GDALOpen, which could be better performing when using multiple equal datasource reads (no need to open multiple datasources, and yes it is still thread safe) 2009-05-08 21:15:05 +00:00
Dane Springmeyer
e71d90728d + improve error reporting of gdal plugin and avoid boost filesystem check - reverts r1044 and addresses #337 2009-05-08 18:23:58 +00:00
Dane Springmeyer
8f610a71d9 add boost filesystem checks (for filename existance) to gdal and raster plugins 2009-03-30 21:56:03 +00:00
Dane Springmeyer
e7c9d02fd3 add 'base' path option to sql,gdal, and ogr plugins and touchup handling of missing files with boost filesystem - closes #263 2009-03-30 20:19:57 +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
f9d28e56fa Added gdal raster input plug-in 2007-04-25 19:15:38 +00:00