Dane Springmeyer
02cd44a142
remove old metawriter testing code
2013-06-13 13:34:12 -07:00
Dane Springmeyer
01a6eb5633
remove uneeded test file
2013-06-13 13:32:20 -07:00
Dane Springmeyer
78dc1a4199
cleanup TODO usage in python tests
2013-06-03 15:02:43 -07:00
Dane Springmeyer
28bdb881f0
remove non-useful test as paths-from-xml will soon be removed - refs #1893
2013-06-03 14:58:56 -07:00
Dane Springmeyer
b0f15bf5de
avoid muffling proj_init at render time and instead catch at load_map - closes #646
2013-05-29 15:16:44 -07:00
Dane Springmeyer
97fe52ac04
use a truly invalid expression for the broken text symbolizer test
2013-05-29 15:09:55 -07:00
Dane Springmeyer
fa362113b3
remove uneeded datasource template usage
2013-05-29 14:11:03 -07:00
Dane Springmeyer
b86303202e
remove a few seemingly valid pngs that no longer fail with libpng > 1.6 - closes #1854
2013-05-24 16:47:18 -07:00
Dane Springmeyer
8634a04938
add support for drawing all geometry verticies with debug symbolizer mode=vertex and expose in python - closes #1848
2013-05-21 19:21:35 -07:00
Dane Springmeyer
c84ddc825e
convert old tests into proper python tests - closes #1460
2013-05-16 12:23:19 -07:00
Dane Springmeyer
72a453efc0
add missing test file
2013-04-09 19:12:27 -07:00
Dane Springmeyer
f905632b92
visual testcase for #1744
2013-03-11 15:09:04 -07:00
Dane Springmeyer
00a2f54346
further refine the mapnik::request object which can be passed to custom agg_renderer
2013-02-25 19:33:08 -05:00
Dane Springmeyer
34708c4df0
throw if scale_factor == 0 instead of hanging and add rendering tests - closes #1100
2013-02-20 18:55:03 -08:00
Dane Springmeyer
be3cfd5159
fix more mercator proj4 strings
2013-01-28 14:03:32 -05:00
Dane Springmeyer
47ab9913ee
make consistent the proj4 string used for spherical mercator across tests and docs
2013-01-28 13:48:13 -05:00
Dane Springmeyer
714ecf803d
tests: more fixes to make epsg:4326 proj4 string consistent
2013-01-25 01:04:51 -08:00
Dane Springmeyer
ae5f4d26d1
tests: make consistent the proj4 string for epsg:4326
2013-01-25 00:49:55 -08:00
Dane Springmeyer
18e23be9c0
merge work from mappy/abonnasseau allowing buffer-size to be overiddend by layer - closes #1566
2013-01-15 18:53:34 -08:00
Dane Springmeyer
1641519adc
tests for 64bit id handling in osm.input
2013-01-02 17:39:12 -08:00
Dane Springmeyer
aee275a08c
fix number handling in csv plugin and add tests for 64bit integer support in sqlite and postgis datasources - refs #1669
2012-12-21 19:53:33 -08:00
Dane Springmeyer
7c58bf9fcb
replace boost::trim with faster custom trim - closes #1633
2012-12-07 14:06:13 -08:00
Dane Springmeyer
e62aa47f44
Add more shapefile point type tests - one should be failing due to #1193
2012-12-05 18:40:18 -08:00
Dane Springmeyer
e9ca5b47e2
finish support for dbf logical type, strip handling of memo, and add tests for all basic types - refs #1614
2012-12-02 21:37:39 -08:00
Dane Springmeyer
be05aa5b60
add palette.to_string() method and add python tests of fixed palette functionality
2012-11-30 12:31:58 -08:00
Alexandre Bonnasseau
efff5f0ef0
Issue #1545 - override buffer-size parameter at layer level - revised
2012-11-08 15:51:22 +01:00
Dane Springmeyer
888e6ec941
more image encoding tests - also output length of image for rough size comparision
2012-10-25 13:15:33 -07:00
Dane Springmeyer
f7333542f2
add test for #1542 - currently hangs mapnik
2012-10-20 20:07:12 -07:00
Dane Springmeyer
9de2dcb5b6
remove invalid datasource base
2012-10-20 16:55:00 -07:00
Mickey Rose
187ce93a60
tests: add style_level_image_filter test
2012-10-16 18:40:24 +02:00
Mickey Rose
2ee6c1e0e0
tests: add style_level_comp_op test
2012-10-16 18:40:24 +02:00
Mickey Rose
ccbfec8686
tests: add New Zealand shapefiles from Natural Earth
2012-10-16 18:40:24 +02:00
Dane Springmeyer
17e97c595a
add a passing test that works around #1537 by manually setting key_field to string field
2012-10-15 17:06:43 -07:00
Dane Springmeyer
6947d17b44
add line offset example
2012-10-10 14:35:46 -07:00
Dane Springmeyer
df501a2fa3
update tests after #1515 - many are not ideal due to #1519
2012-10-04 16:39:00 -07:00
Dane Springmeyer
00517a507f
add more river images to test up for better testcases
2012-10-01 12:14:09 -07:00
Dane Springmeyer
2714bdcef3
more test fixes to set up to enforce desired behavior around tiff and premultiplied alpha in source files - refs #1508 and #1511
2012-09-28 15:07:33 -07:00
Dane Springmeyer
446ef47242
Add test file
2012-09-27 19:24:02 -07:00
Dane Springmeyer
8b77547251
Add csv test files
2012-09-26 12:51:42 -07:00
Dane Springmeyer
794f5e369a
start moving raster visual tests into place (add new,currently failing tests for raster.input)
2012-09-26 12:01:28 -07:00
Dane Springmeyer
231bf3c197
add source tif for #1471 testcase
2012-09-11 19:30:19 -07:00
Dane Springmeyer
12f26614e5
add failing testcase for #1471 (expected image generated with patch from #1471 that disables premultiplication of data raster before blending)
2012-09-11 19:29:45 -07:00
Dane Springmeyer
6450d33462
update tests images after change made to agg src_over in #1452 , refs #1369
2012-08-31 18:16:49 -07:00
Dane Springmeyer
affecb0f32
csv plugin: support single row data and fix warning when no data can be parsed
2012-08-31 12:07:35 -07:00
Dane Springmeyer
6806ca1509
load in load_map if image/svg files are not available when not using stock markers or dynamic expressions - closes #1439
2012-08-23 14:31:50 -07:00
Dane Springmeyer
b1e9c738ee
Merge pull request #1415 from rjw57/rjw57-issue-1407
...
Move python test maps from 'good_maps' directory
2012-08-20 14:25:13 -07:00
Dane Springmeyer
9f7e033dbc
csv plugin: be more permissive when headers length > column length but more strict when the opposite is true - closes #1417
2012-08-20 14:06:07 -07:00
Rich Wareham
b085b401db
Move python test maps from 'good_maps' directory
...
If the CirclesDatasource class was not available from the python_plugin_tests module then the 'load_good_maps' test
would fail. The class would not be available if, for example, the python plugin had not been built or if shapely was not
available on the test system. (Pull request #1414 removes the dependency on Shapely.)
The error reporting should be tidied up for this case but for the moment, move the Python plugin's test maps into their
own directory since they're not guaranteed to be 'good maps' in all cases at the moment.
Hopefully addresses issue #1407
2012-08-18 17:38:37 +01:00
Dane Springmeyer
f42805a532
CSV plugin: support reading geojson encoded geometries in various flavors of quoting fun - closes #1392
2012-08-17 13:46:32 -07:00
Dane Springmeyer
97e907d95f
fix test
2012-08-16 19:29:07 -07:00
Dane Springmeyer
ad2250a4b5
back compatibility for raster-mode values using _ and shield-no-text
2012-08-16 19:20:29 -07:00
Dane Springmeyer
4cd54f4e0b
fix test
2012-08-16 14:05:39 -07:00
Dane Springmeyer
a3e27ed726
Merge branch 'master' of github.com:mapnik/mapnik
2012-08-16 12:29:27 -07:00
Dane Springmeyer
d850ee8b76
correct various old trac links to point to github - closes #1396
2012-08-16 12:27:58 -07:00
Dane Springmeyer
a2d6c55478
tests: assume script running "paths_relative_to_script" is in the root mapnik dir not the tests dir
2012-08-16 10:26:39 -07:00
Dane Springmeyer
0a5daee2a8
add agg-stack-blur example
2012-08-15 19:01:21 -07:00
Dane Springmeyer
4cf1484b53
disable colorize-alpha comp-op as per #1371
2012-08-15 14:46:58 -07:00
Artem Pavlenko
189322ef9f
Merge pull request #1337 from rjw57/rjw57-python-plugin
...
Request for comments: python: a new plugin to use arbitrary Python as a data source
2012-08-06 05:09:29 -07:00
Dane Springmeyer
b7aafe51bc
update markers line placement tests
2012-07-31 17:53:20 -07:00
Dane Springmeyer
4d2eb73e3b
add tests for complex marker rendering functionality
2012-07-31 16:04:42 -07:00
Dane Springmeyer
6c984b4f13
add testcase for #1365
2012-07-31 16:03:51 -07:00
Rich Wareham
156a7590f4
python: a new plugin to use arbitrary Python as a data source
...
This plugin allows you to write data sources in the Python programming language.
This is useful if you want to rapidly prototype a plugin, perform some custom
manipulation on data or if you want to bind mapnik to a datasource which is most
conveniently accessed through Python.
The plugin may be used from the existing mapnik Python bindings or it can embed
the Python interpreter directly allowing it to be used from C++, XML or even
JavaScript.
Mapnik already has excellent Python bindings but they only directly support
calling *into* mapnik *from* Python. This forces mapnik and its input plugins to
be the lowest layer of the stack. The role of this plugin is to allow mapnik to
call *into* Python itself. This allows mapnik to sit as rendering middleware
between a custom Python frontend and a custom Python datasource. This increases
the utility of mapnik as a component in a larger system.
There already exists MemoryDatasource which can be used to dynamically create
geometry in Python. It suffers from the problem that it does not allow
generating only the geometry which is seen by a particular query. Similarly the
entire geometry must exist in memory before rendering can progress. By using a
custom iterator object or by using generator expressions this plugin allows
geometry to be created on demand and to be destroyed after use. This can have a
great impact on memory efficiency. Since geometry is generated on-demand as
rendering progresses there can be arbitrarily complex 'cleverness' optimising
the geometry generated for a particular query. Obvious examples of this would
be generating only geometry within the query bounding box and generating
geometry with an appropriate level of detail for the output resolution.
2012-07-31 17:05:27 +01:00
Dane Springmeyer
0d97b851fa
markers: support opacity on bitmaps, and move to supporting both opacity and fill-opacity
2012-07-30 18:31:21 -07:00
Dane Springmeyer
1a6cbfb568
fix xml comment
2012-07-30 15:54:08 -07:00
Dane Springmeyer
ce7b6a93fb
Add test case for #1354
2012-07-30 14:48:32 -07:00
Dane Springmeyer
827b015d15
add a geometry collection to csv wkt test
2012-07-25 16:57:47 -07:00
Dane Springmeyer
3da72ff8cb
unmask failing test - refs #1345
2012-07-25 16:37:05 -07:00
Dane Springmeyer
27e9068ccf
add test map for colorize-alpha comp-op
2012-07-25 15:04:07 -07:00
Dane Springmeyer
b298e21f8e
add test for #997- closes #997
2012-07-25 13:16:46 -07:00
Dane Springmeyer
ad7a02695e
fix test markers xml, accidentally changed in 9888ff0d50
2012-07-09 13:38:49 -07:00
Dane Springmeyer
7d9b4ce0da
settle upon 'geometry-transform' naming - refs #1276
2012-07-03 18:34:11 -07:00
Dane Springmeyer
9888ff0d50
remove geometry type tests for postgis that are not longer valid with postgis 2.0
2012-06-29 16:52:54 -07:00
Dane Springmeyer
7b3e86b59f
add test csv file
2012-06-25 14:58:38 -07:00
Carl Simonson
cd7ad3e15e
Catch and throw PNG exceptions - fixes #1213
...
The png library uses setjmp/longjmp to throw exceptions when reading. If this
is not set up, the png library calls abort(). This change handles the errors
and throws a C++ exception instead.
This issue was found by testing images from pngsuite at
http://www.schaik.com/pngsuite/ . These images are included and a unit test was
added to test both images that should be successful and images that should
throw an exception.
2012-06-06 17:52:41 -05:00
Dane Springmeyer
43d6de7fa6
add partial test files for second case of #997
2012-05-24 16:57:17 -07:00
Dane Springmeyer
e1fa732f90
add test for alpha blending during bilinear scaling - refs #997
2012-05-24 16:39:24 -07:00
Dane Springmeyer
bd7b07d3f9
add missing test files
2012-04-04 14:37:27 -07:00
Dane Springmeyer
46b16c917e
support nodata for paletted images and allow user to set nodata on-the-fly - closes #1160 and #1161 - refs #688 and refs #730 and refs #50 and refs #1018
2012-04-03 16:06:36 -07:00
Dane Springmeyer
9d1afbbfc6
Merge branch 'master' of https://github.com/mapnik/mapnik
2012-03-27 18:56:52 -04:00
Dane Springmeyer
dbd4258079
more markers_symbolizer test maps
2012-03-27 18:54:59 -04:00
Dane Springmeyer
ea5a46f230
remove the storage and serialization of 'font-directory' and 'minimum-version' since there is no strong need to have them accessible after initial parsing
2012-03-23 18:14:14 -07:00
Dane Springmeyer
3b498efbd9
fixup font registration code ensuring invalid fonts will warn but not throw and register_fonts will only return success if > one font is registered and none have failed
2012-03-23 15:07:28 -07:00
Ramunas
1ac4c0ca53
remove notices due to inkscape metadata
2012-02-18 10:45:58 +02:00
Hermann Kraus
212171b9ee
Add visual test for ShieldSymbolizer.
2012-02-18 01:17:29 +01:00
Hermann Kraus
822786e41c
Remove no-text attribute. One can simply leave the text empty if one wants this.
2012-01-29 13:10:14 +01:00
Hermann Kraus
51d8718701
Move tests to new location.
2012-01-25 23:31:07 +01:00
Hermann Kraus
cd5c1c6ab4
Add reference image for formating test.
2012-01-25 23:26:39 +01:00
Hermann Kraus
26c13d4df4
Add tests for text formating.
2012-01-25 18:46:27 +01:00
Hermann Kraus
047cda5d1b
Fix some tests.
2012-01-20 00:45:15 +01:00
Hermann Kraus
a1c80d1a4c
Add full set of tests for text placement.
2012-01-20 00:18:37 +01:00
Hermann Kraus
537231f60e
Remove glyph symbolizer.
2012-01-19 20:34:09 +01:00
Dane Springmeyer
63891cec15
finish refactor, moving to separate method off datasources to get_geometry_type and using enums all around
2012-01-17 01:09:46 -05:00
Hermann Kraus
cbcb545b65
Fix the problem reported in #1003 (NE, NW, SE not working for text-placement=simple).
...
Add test cases for this problem.
Conflicts:
src/text_placements.cpp
tests/data/placement/clean.sh
tests/data/placement/test.py
2012-01-09 23:30:22 +01:00
Dane Springmeyer
e72330e38c
fixup fontset tests
2011-12-22 12:48:11 -08:00
Dane Springmeyer
323c36db61
Merge branch 'geometry_cleanup'
2011-12-22 12:42:05 -08:00
Dane Springmeyer
7b7fc5eb94
add test comparing geometry handling between ogr and shape plugin - currently fails
2011-12-21 12:26:03 -08:00
Dane Springmeyer
c551626916
finish geometry cleanup work by ensuring proper behavior in the ogr plugin with multigeometries
2011-12-21 12:22:05 -08:00
Dane Springmeyer
2d59f401b5
tests for fontsets
2011-12-20 12:46:20 -08:00
Dane Springmeyer
90b5cf69cc
update tests as per #992
2011-12-16 07:22:52 -08:00
Dane Springmeyer
754581f278
tests: no need to test sqlite through ogr anymore - native impl is robust and has its own tests now
2011-12-13 13:52:11 -08:00