Skip to content

Commit a235111

Browse files
committed
Set type to 'geometry' for gml-to-ewkb columns
1 parent 988d285 commit a235111

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ fn add_table<'a>(name: &str, rowpath: &str, outfile: Option<&str>, settings: &Se
392392
if val == "gml-to-ewkb" && !settings.hush_notice {
393393
eprintln!("Notice: gml-to-ewkb conversion is experimental and in no way complete or standards compliant; use at your own risk");
394394
}
395+
if col["type"].is_badvalue() { // Set datatype unless overridden
396+
if val == "gml-to-ewkb" { datatype = String::from("geometry"); }
397+
}
395398
}
396399
if let Some(val) = aggr {
397400
if !vec!("first", "last", "append").contains(&val) {

0 commit comments

Comments
 (0)