ogr: also accept 'inline' arg like geojson/topojson/csv plugins
This commit is contained in:
parent
3bd323ca85
commit
225810e3ee
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue