Any Good Spatial processing libraries

Any Good Spatial processing libraries?

I’m finding a library that can process spatial data (2d, 3d) that

  • Have custom syntax to query and process data (RTree, RTree with extends and such)
  • Good performance (real-time)
  • Good documentations
    (Commercial or open source is better)

I’ve found so far:
spacebase: Parallel Universe
xxl: GitHub - marburgedu/xxl: Automatically exported from code.google.com/p/xxl

Physics libs can be candidates?