{"comment":{"created_at":"2011-10-11T15:52:44Z","body":"[artem] I added two to_python converters:\r\n   1. std::pair<std::string,mapnik::value> to boost::python::tuple\r\n   2. mapnik::value to native Python types e.g int,float and unicode str.\r\n\r\nand modified map_indexing_suite2.\r\n\r\n'''Example'''\r\n{{{\r\nfrom mapnik import *\r\n\r\nds = Datasource(type='postgis',host='localhost',user='artem', dbname='planet_osm', table='planet_osm_polygon')\r\n\r\npt = Coord(-35555.19,6662160.5)\r\n\r\nprint \"querying at point \" + str(pt)\r\nfor f in ds.features_at_point(pt):\r\n    for k,v in f.properties:\r\n        print \" %s = %s \" % ( k,v ) \r\n\r\n\r\n}}}","updated_at":"2011-10-11T15:52:44Z","url":"https://api.github.com/repos/artemp/mapnik/issues/comments/2365040","id":2365040,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"}},"action":"created","issue":{"number":28,"created_at":"2011-10-11T15:52:43Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"for f in ds.features_at_point(merc):\r\n\tprint f\r\n\r\n<mapnik._mapnik.Feature object at 0xb7f163ac>\r\n\r\non that, I'd expect to be able to call:\r\n\tfor (k,v) in f.properties:\r\n\r\nbut I can't. Also, if I do:\r\n\tf.properties['type']\r\nI get back a mapnik._mapnik.Value object, and not a native python object as I'd expect\r\n\r\nAlso, if I do\r\n\tfor prop in f.properties:\r\nyou have to call key() and value(), it'd be good if there were python attributes for them\r\n\r\nNick","comments":1,"title":"Implement expected interface for Feature.properties","updated_at":"2011-10-11T15:52:44Z","url":"https://api.github.com/repos/artemp/mapnik/issues/28","id":1876947,"assignee":null,"milestone":{"number":4,"created_at":"2011-10-11T15:50:20Z","due_on":null,"title":"0.5.0","creator":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"url":"https://api.github.com/repos/artemp/mapnik/milestones/4","open_issues":1,"closed_issues":7,"description":"","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/artemp/mapnik/issues/28","labels":[{"name":"Boost_Python_Binding","url":"https://api.github.com/repos/artemp/mapnik/labels/Boost_Python_Binding","color":"FFFFFF"}],"state":"open"},"legacy":{"issue_id":1876947,"comment_id":2365040}}