Hi,
We have issues with importing some WKT-formatted Geodata (RDF-Import) .
The import function of Marmotta accepts POINT, MULTISTRING AND MULTIPOLYGON and 
imports the data in the correct geom type in Postgres.
 All other WKT referenced geo-types like LINESTRING, POLYGON, MULTIPOINT are 
rejected with the error message: "unknown or not implemented".
 Looking at the log entries of Marmotta a/o Postgres we get the following error:
 2019-08-08 08:27:29 GMT ERROR:  parse error - invalid geometry
2019-08-08 08:27:29 GMT HINT:  "" <-- parse error at position 1 within geometry
2019-08-08 08:27:29 GMT STATEMENT:  INSERT INTO nodes 
(id,ntype,svalue,dvalue,ivalue,lang,ltype,createdAt,gvalue) VALUES 
($1,'geom',$2,$3,$4,$5,$6,$7,ST_GeomFromText($8,$9))
 We tested the same geo-data with the Postgres function 'ST_IsValid' (the 
geometry IS valid). :
 marmotta=# SELECT ST_IsValid(ST_GeomFromText('POLYGON ((0 0,4 0,4 4,0 4,0 
0),(1 1, 2 1, 2 2, 1 2,1 1))'));
st_isvalid
------------
t
(1 row)
 Is it possible to import LINESTRING, POLYGON ecc. With Marmotta (with 
Postgres/GIS DB Backend)?
Or, are these types (LINESTRING, POLYGON ) really not implemented?
 Thanks in advance and kind regards,
 Fabio Tosques

Reply via email to