spatial icon indicating copy to clipboard operation
spatial copied to clipboard

Can I add geometry type in existing nodes?

Open dkarakos opened this issue 10 years ago • 0 comments

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:

  1. I created the spatial index
  2. I added to my existing nodes (building) the properties (lon, lat, bbox, gtype)
  3. I added these modified nodes to my spatial index
  4. 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

dkarakos avatar Dec 03 '14 09:12 dkarakos