Hi!
I am trying to add data for some natural areas, like Narural Reserves,
Natura 2000 areas etc. to my OsmAnd phone. I followed this process:
1. I downloaded shapefiles for these areas from a Swedish government agency.
2. I converted them from .shp to .osm using ogr2osm. I did some
translations in this peocess.
3. I use OsmANdMapCreator to convert them form .osm to .obf.
In step 3, I get one SEVERE error message, and no output file is generated.
I attache the error message below.
*I would like som hints as to where the problem lies. A bug in the
OsmAndMapCreator? Error in the .osm file?*
Most surprising is that the error message speaks about "poi", however the
infile is completely devoid of POI information.
regards,
Thorn
----
SEVERE: Log exception
java.sql.SQLException: UNIQUE constraint failed: poi.id, poi.type,
poi.subtype
at org.sqlite.core.DB.throwex(DB.java:859)
at org.sqlite.core.DB.executeBatch(DB.java:760)
at
org.sqlite.core.CorePreparedStatement.executeBatch(CorePreparedStatement.java:77)
at
net.osmand.data.preparation.AbstractIndexPartCreator.addBatch(AbstractIndexPartCreator.java:75)
at
net.osmand.data.preparation.AbstractIndexPartCreator.addBatch(AbstractIndexPartCreator.java:65)
at
net.osmand.data.preparation.IndexPoiCreator.insertAmenityIntoPoi(IndexPoiCreator.java:190)
at
net.osmand.data.preparation.IndexPoiCreator.iterateEntity(IndexPoiCreator.java:139)
at
net.osmand.data.preparation.IndexCreator.iterateMainEntity(IndexCreator.java:272)
at
net.osmand.data.preparation.IndexCreator.access$200(IndexCreator.java:55)
at
net.osmand.data.preparation.IndexCreator$7.iterateEntity(IndexCreator.java:823)
at
net.osmand.data.preparation.OsmDbAccessor.iterateOverEntities(OsmDbAccessor.java:253)
at
net.osmand.data.preparation.OsmDbAccessor.iterateOverEntities(OsmDbAccessor.java:207)
at
net.osmand.data.preparation.IndexCreator.iterateMainEntities(IndexCreator.java:820)
at
net.osmand.data.preparation.IndexCreator.generateIndexes(IndexCreator.java:670)
at
net.osmand.data.preparation.IndexCreator.generateIndexes(IndexCreator.java:590)
at
net.osmand.data.index.IndexBatchCreator.generateIndex(IndexBatchCreator.java:563)
at
net.osmand.data.index.IndexBatchCreator.generatedIndexes(IndexBatchCreator.java:472)
at
net.osmand.data.index.IndexBatchCreator.runBatch(IndexBatchCreator.java:315)
at
net.osmand.data.index.IndexBatchCreator.main(IndexBatchCreator.java:167)
--
You received this message because you are subscribed to the Google Groups
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.