Dane Springmeyer
5a6ea9ee6f
finish to rename of mapnik::Feature -> mapnik::feature_impl
2013-05-16 11:55:58 -07:00
Dane Springmeyer
ce4d0fcd9e
expose contains method (fixes infinite recursion in py3k)
2013-01-10 23:11:45 -08:00
Dane Springmeyer
66a5c26fdc
leverage mapnik::value_integer for feature.id() and grid rendering buffer - refs #1662
2012-12-19 19:24:52 -08:00
artemp
0eefd304bf
cMerge branch 'master' into bigint
...
Conflicts:
bindings/python/mapnik_feature.cpp
2012-12-19 09:39:51 +00:00
Dane Springmeyer
4c64fb4b0d
fix #1659 but re-break bool->int auto-conversion, which is less of a problem
2012-12-18 20:22:02 -08:00
artemp
f5dd9e53c4
+ calc int_parser/generator type from mapnik::value_integer
2012-12-18 18:05:45 +00:00
artemp
a38b252ccd
Merge branch 'master' into bigint
...
Conflicts:
plugins/input/geojson/geojson_datasource.cpp
plugins/input/postgis/postgis_featureset.cpp
2012-12-18 13:57:39 +00:00
Dane Springmeyer
16aae90bfc
iwyu
2012-12-16 12:50:36 -08:00
artemp
3ab9f273d8
+ use mapnik values in python converters
2012-12-14 10:24:50 +00:00
Dane Springmeyer
9abcda54c7
ensure boolean types are converted first - refs #1642
2012-12-11 19:38:27 -08:00
Dane Springmeyer
2353deced4
enable conversion from Py_None to mapnik::value_null - refs #1642,#794
2012-12-11 18:13:33 -08:00
kunitoki
1f351e0e09
implement new debug system
2012-04-08 02:20:56 +02:00
Artem Pavlenko
f20007a965
+ add to_geojson() method to mapnik.Path
2012-02-20 12:05:11 +00:00
Artem Pavlenko
68df26baba
+ add to_geojson method to mapnik.Feature
2012-02-20 10:55:25 +00:00
Dane Springmeyer
81230b2b30
remove uneeded include
2012-02-14 16:05:25 -08:00
Dane Springmeyer
f310148337
whitespace fixes (using format_source_files.sh)
2012-02-01 17:30:26 -08:00
Artem Pavlenko
39bafa0cf1
add push_new member function which allows modifying
...
current features context (useful when datasource schema
is unknown, so we update context as we go along).
2012-01-30 14:05:41 +00:00
Artem Pavlenko
c88d7e723d
+ access feature_kv_iterator directly on mapnik::Feature::begin()/end()
...
+ avoid using 'feature' as variable name as mapnik::Feature will be renamed to mapnik::feature
+ revert 'describe' to 'attributes' (original name fits better in this context I think)
+ make attributes a Puython property
2012-01-24 14:48:30 +00:00
Dane Springmeyer
803a705774
add a method to get simple dictionary of feature attributes, remove old/deprecated feature access
2012-01-24 00:27:27 -08:00
Artem Pavlenko
663b4adfa2
feature_impl : add get paths by const reference method
...
python : fix helper functions declarations
2012-01-23 14:22:14 +00:00
Artem Pavlenko
7601095e24
move context's typedef inside to avoid poluting global namespace
2012-01-19 17:36:27 -05:00
Artem Pavlenko
3e016f52e7
add __getitem__(self, index)
2012-01-19 16:57:46 -05:00
Artem Pavlenko
554341bee1
+ cleanup
...
+ add __getitem__ back
2012-01-18 14:34:22 -05:00
Artem Pavlenko
97e090b150
feature_kv_iterator::value_type to python converter
2012-01-17 17:33:43 -05:00
Artem Pavlenko
7944d31c2e
use key_value (typedef to std::string)
...
throw std::out_of_range if key doesn't exist
add has_key(key_value const&) method
2012-01-17 11:23:32 -05:00
Artem Pavlenko
a3c338c835
cleanup
2012-01-13 16:31:13 +00:00
Artem Pavlenko
8de670ecb9
+ add mapnik.Context
...
+ implement __setitem__
+ fix mapnik.Feature ctor - now requires Context obj
2012-01-13 12:03:26 +00:00
Artem Pavlenko
0eb8e2d246
temp fix to compile FIXME
2012-01-12 10:04:49 +00:00
Artem Pavlenko
cc60b74921
Simplify geometry model to support: Point/LineString/Polygon
...
Multi geometries are collections of single geometries
Remove multiple_geometries parameter
2011-12-06 12:53:16 +00:00
Dane Springmeyer
86459388c1
python: make feature attribute access more pythonic
2011-12-02 15:08:56 -08:00
Dane Springmeyer
8a4ba70c48
python: remove unneeded header for mapnik_feature.cpp
2011-12-02 13:38:10 -08:00
Dane Springmeyer
4654312d00
code formatting
2011-11-13 19:54:32 -08:00
Artem Pavlenko
1fa78f32e0
+ add unified interface to mapnik2.Feature:
...
add_geometries_from_wkt
add_geometries_from_wkb
and mapnik2.Path :
from_wkt
from_wkb
TODO: integrate mapnik2.Path with mapnik2.Feature (mapnik 2.1)
2011-09-13 11:54:12 +00:00
Alberto Valverde
9579409940
resurrect add_geometry_from_wkb functionallity in Feature's python binding
2011-09-12 14:43:45 +00:00
Dane Springmeyer
46af5ff222
python: shuffle mapnik::value -> python object convertor, and utilize for conversion to correct type in expression evalution
2011-07-27 02:36:59 +00:00
Dane Springmeyer
6d7ca1ac6f
move mapnik::value -> python value conversion to separate header fro reuse
2011-04-26 17:39:21 +00:00
Dane Springmeyer
62e62ebe76
avoid unused parameter warnings
2011-04-04 14:45:00 +00:00
Dane Springmeyer
0a4b5591a1
comment unused function
2011-03-01 16:37:53 +00:00
Artem Pavlenko
e54eb342e2
+ from_wkt factory method
...
+ expose mapnik::eGeomType enum
2011-02-28 12:40:59 +00:00
Artem Pavlenko
ab101401cd
+ simplify geometry implementation
...
+ removed multiple geometry typedefs
+ use geometry_type
+ revert to storing vertices in vector_vertex
(previous implementation using std::vector was
fragmenting heap causing performance issues with large geometries)
+ FIXME: hit_test is broken!
2010-11-03 13:19:15 +00:00
Dane Springmeyer
18dd9ff40e
python3 support - patch thanks to Haoyu Bai - closes #334
2010-09-26 12:15:16 +00:00
Artem Pavlenko
246731874b
+ apply 'mapnik-format' to *.cpp *.hpp
2010-06-02 11:03:30 +00:00
Artem Pavlenko
07488ff436
+ more tidy
2010-04-09 18:45:53 +00:00
Artem Pavlenko
f6852e2401
+ tidy
2010-04-09 18:45:45 +00:00
Alberto Valverde
17b61d16c4
More progress on #528 : Made setting Feature properties with values of type unicode or str possible. I've modified the UnicodeString_from_python_str from_python_converter so it can also convert python unicode objects (not just encocded strs). It was originally commented out so but it seems to work fine on my tests. Is there anything I0ve overlooked? (Artem?)
2010-03-19 13:42:58 +00:00
Alberto Valverde
a4d742283b
Implementead Feature instantiation from Python and an add_geometry method which accepst a wkb string
2010-03-19 13:42:25 +00:00
Dane Springmeyer
c7947b37c3
comment out new unicode stuff in mapnik_feature due to #505
2010-01-30 00:53:29 +00:00
Artem Pavlenko
47dc1e197b
+ merge mapnik2 to trunk
2009-12-16 20:02:06 +00:00
Artem Pavlenko
c83000eb60
+ use UnicodeString->utf8->PyUnicode conversion
2009-07-13 22:20:25 +00:00
Artem Pavlenko
9872a3be7c
+ fixed UnicodeString to Py_Unicode conversion (needs testing)
2009-07-13 21:39:39 +00:00