-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What conditions would cause there to be no layer names returned by
spatialService.getLayerNames(), and null for all calls to
spatialService.getLayer(...)?

I tweaked my test script slightly such that it dumps me into a console
so I can see how well I've ported my data model. Only, try though I
might, I can't seem to load any layers. I'm pretty sure that my code is
correct. Here's what I have:

class Neo4JDataSet(val database:GraphDatabaseService) extends DataSet {

  val spatialService = new SpatialDatabaseService(database)
  println("Layers")
  spatialService.getLayerNames.foreach(println)
  println("Done")
...
}

The foreach line should print a list of the layers, one per line. The
database is being initialized, as I occasionally get unclean shutdown
errors if I don't shutdown() before killing the Scala REPL. I've even
tried the foreach in a transaction, but can't get a list of layers. If I
poke the database in the shell, I do see a node called "map", which
happens to be the layer name I chose.

What am I missing, or what additional information can I provide? It's
hard to know exactly, since I have a couple layers of indirection at
work here. But if I access the database directly and create a
SpatialDatabaseService from the REPL, I still get 0 layers, so I must be
missing a step somewhere.

Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1iydgACgkQIaMjFWMehWI8RwCeJMFBBk+bgNNQCyAbIOjijN0M
qukAn1FA8aGrU+scGJ2Bb2e10rOuwe37
=MION
-----END PGP SIGNATURE-----
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to