{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/223","repository_url":"https://api.github.com/repos/neo4j-contrib/spatial","labels_url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/223/comments","events_url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/223/events","html_url":"https://github.com/neo4j-contrib/spatial/issues/223","id":144565690,"number":223,"title":"OSMImporter: BatchInserter and GraphDatabaseService?","user":{"login":"ehx-v1","id":16056805,"avatar_url":"https://avatars.githubusercontent.com/u/16056805?v=3","gravatar_id":"","url":"https://api.github.com/users/ehx-v1","html_url":"https://github.com/ehx-v1","followers_url":"https://api.github.com/users/ehx-v1/followers","following_url":"https://api.github.com/users/ehx-v1/following{/other_user}","gists_url":"https://api.github.com/users/ehx-v1/gists{/gist_id}","starred_url":"https://api.github.com/users/ehx-v1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehx-v1/subscriptions","organizations_url":"https://api.github.com/users/ehx-v1/orgs","repos_url":"https://api.github.com/users/ehx-v1/repos","events_url":"https://api.github.com/users/ehx-v1/events{/privacy}","received_events_url":"https://api.github.com/users/ehx-v1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-30T11:53:01Z","updated_at":"2016-03-30T12:15:55Z","closed_at":null,"body":"will most probably be labelled \"question\" I think\r\nbut might also be labelled \"invalid\" because I have no idea whether it belongs here or to the Neo4j forum\r\ndoes the OSMImporter need the BatchInserter in a way that closes the graph database direction for all GraphDatabaseServices, or can a GraphDatabaseService be open while calling importFile()?\r\nneed to know because I'm making some kind of utility library based on Neo4j and Neo4j Spatial, and in this library there's also a FileImporter which can handle both shapefiles and OSM but internally it uses the original Spatial importers\r\nwhich means, if there can be no GraphDatabaseService running while OSMImporter.importFile() is called I somehow have to pass a user-defined method that creates a (potentially custom) GraphDatabaseService, and I don't want to do that without need because I'm quite fed up with Reflect API after coding ConsistencyManager, so if it does work please let me know that I don't have to mess around with Method objects again (or Runnables, which is not much more convenient)\r\nattached my FileImporter.java (SnippingTool PNG), so you can better understand why it's a problem\r\n![fileimporter_java](https://cloud.githubusercontent.com/assets/16056805/14141324/afb93780-f67e-11e5-87cc-83d8fdeb9333.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/comments/203403107","html_url":"https://github.com/neo4j-contrib/spatial/issues/223#issuecomment-203403107","issue_url":"https://api.github.com/repos/neo4j-contrib/spatial/issues/223","id":203403107,"user":{"login":"ehx-v1","id":16056805,"avatar_url":"https://avatars.githubusercontent.com/u/16056805?v=3","gravatar_id":"","url":"https://api.github.com/users/ehx-v1","html_url":"https://github.com/ehx-v1","followers_url":"https://api.github.com/users/ehx-v1/followers","following_url":"https://api.github.com/users/ehx-v1/following{/other_user}","gists_url":"https://api.github.com/users/ehx-v1/gists{/gist_id}","starred_url":"https://api.github.com/users/ehx-v1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehx-v1/subscriptions","organizations_url":"https://api.github.com/users/ehx-v1/orgs","repos_url":"https://api.github.com/users/ehx-v1/repos","events_url":"https://api.github.com/users/ehx-v1/events{/privacy}","received_events_url":"https://api.github.com/users/ehx-v1/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T12:15:55Z","updated_at":"2016-03-30T12:15:55Z","body":"the inner interface idea perfectly solved it without a GraphDatabaseService passed in the constructor, sorry for bothering"}}