spatial
spatial copied to clipboard
Can I add geometry type in existing nodes?
Hi, I have some nodes without a geometry. I want to know if it is possible to add to the properties of these nodes geometry. For example I have a node which is a building with the properties name and number of floors. I want to add to this node a geometry: point with lat and lon coordinates. And relate the node with the spatial index that I have created. What I have tried is this:
- I created the spatial index
- I added to my existing nodes (building) the properties (lon, lat, bbox, gtype)
- I added these modified nodes to my spatial index
- I tried to run a query to find points within a distance. It didn't work. I guess this is because I have also to build further relationships.
So, my question is how can add geometry properties to existing nodes automatically (without having to build all the relationships). How can I transform a simple node to a spatial node? Is this possible?
Thanks Dimitris