Well,
Thing is that there might not be a one to one mapping between geometry and your domain node. It might just be the entry point to a whole polygon or a traversal. That is why you get back the geometry node, and the decoder can then resolve it to original underlying domain subgraphs (in the easiest case only one node)
Makes sense?
Hi,
I'm struggling with getting the indexed node from a LayerNodeIndex.
Let's say adding a node (id 1) to the layer index:
layerIndex.add(node, "", "");
In LayerNodeIndex, the id is saved as id property on the SpatialDatabaseRecord object.
layer.add(
decodeGeometry, new String[] { "id" },
new Object[] { geometry.getId() } );
private Node addGeomNode(Geometry geom, String[] fieldsName, Object[] fields) {
Node geomNode = getDatabase().createNode();
[...]
protected Node fetchNextOrNull()
{
int i = index++;
return i < size() ? hits.get( i ).getGeomNode() : null;
}
No, I don't. Thisight actually be a bug. Axel, if you change it and send a PR ad I am not on my machine, I'd that OK?
You rock.
-- Axel Morgner Morgner UG Hanauer Landstr. 291a 60314 Frankfurt Germany Phone +49 151 40522060 Skype axel.morgner E-mail ax...@morgner.de Web http://www.morgner.de Twitter @amorgner