output all attributes
This commit is contained in:
parent
55f5fed310
commit
96d4958170
1 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,12 @@ int main (int argc, char ** argv )
|
|||
std::cerr << ds->envelope() << std::endl;
|
||||
|
||||
mapnik::query q(ds->envelope());
|
||||
mapnik::layer_descriptor layer_desc = ds->get_descriptor();
|
||||
BOOST_FOREACH ( mapnik::attribute_descriptor const& attr_desc, layer_desc.get_descriptors())
|
||||
{
|
||||
q.add_property_name(attr_desc.get_name());
|
||||
}
|
||||
|
||||
mapnik::featureset_ptr fs = ds->features(q);
|
||||
mapnik::feature_ptr f = fs->next();
|
||||
|
||||
|
|
Loading…
Reference in a new issue