ogr: also accept 'inline' arg like geojson/topojson/csv plugins

This commit is contained in:
Dane Springmeyer 2014-08-25 11:59:32 -07:00
parent 3bd323ca85
commit 225810e3ee

View file

@ -90,6 +90,7 @@ void ogr_datasource::init(mapnik::parameters const& params)
boost::optional<std::string> file = params.get<std::string>("file");
boost::optional<std::string> string = params.get<std::string>("string");
if (!string) string = params.get<std::string>("inline");
if (! file && ! string)
{
throw datasource_exception("missing <file> or <string> parameter");