Fix centroid field from list
This commit is contained in:
parent
908fb4fa31
commit
1f4afcad4b
|
@ -38,6 +38,7 @@ import org.geojson.Point;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ -216,7 +217,11 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
||||||
if(!foundValues.isEmpty()) {
|
if(!foundValues.isEmpty()) {
|
||||||
// NB CSV for multiple values
|
// NB CSV for multiple values
|
||||||
StringBuilder b=new StringBuilder();
|
StringBuilder b=new StringBuilder();
|
||||||
foundValues.forEach(v->b.append(v+","));
|
foundValues.forEach(o-> {
|
||||||
|
// Parser returns list of list
|
||||||
|
if (o instanceof Collection) ((Collection<?>) o).forEach(v ->b.append(v + ","));
|
||||||
|
else b.append(o+",");
|
||||||
|
});
|
||||||
b.deleteCharAt(b.length()-1);
|
b.deleteCharAt(b.length()-1);
|
||||||
toSetValue = b.toString();
|
toSetValue = b.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue