cyoubo / spatialite-android

Automatically exported from code.google.com/p/spatialite-android
0 stars 0 forks source link

GeomFromKml SIGSEGV #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  Database db = new Database();
  db.open(DB_FILE.getAbsolutePath(), 
          Constants.SQLITE_OPEN_READWRITE | Constants.SQLITE_OPEN_CREATE);
  Stmt stmt = db.prepare("SELECT GeomFromKml(\"<LineString><tessellate>1</tesselate><coordinates> 1,1,1 2,2,2 3,3,3 </coordinates></LineString>\");");
  stmt.step();
  System.out.println(stmt.column_string(0));

What is the expected output? What do you see instead?
  Expected output is:
    I/System.out(393): LINESTRING Z(1 1 1, 2 2 2, 3 3 3)

  Actual behavior:
    SIGSEGV in gaiaParseKml()

What version of the product are you using? On what operating system?
  Version 3.0.1 downloaded from the following URL:
    http://www.gaia-gis.it/gaia-sins/spatialite-android/spatialite-for-android-3.0.1.zip

Please provide any additional information below.
  Removing "<tessellate>1</tessellate>" from the KML string results in
  the expected behavior.

Original issue reported on code.google.com by rada...@gmail.com on 13 Dec 2012 at 5:18

GoogleCodeExporter commented 9 years ago
try

Stmt stmt = db.prepare("SELECT 
GeomFromKml('<LineString><tessellate>1</tesselate><coordinates> 1,1,1 2,2,2 
3,3,3 </coordinates></LineString>');");

Original comment by andrelui...@gmail.com on 13 Jun 2013 at 5:06