Changes between Version 1 and Version 2 of Ticket #4127, comment 4


Ignore:
Timestamp:
08/09/18 14:00:12 (6 years ago)
Author:
esparano

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4127, comment 4

    v1 v2  
    1 I think there may have been some misunderstanding and I'd like to get an idea of what the actual intended behavior of the code is. The dimension of a Point is 0 because it is, mathematically, a 0-dimensional object. The docs also say that the dimensionality of an array of geometries is the highest dimensionality of any of the subgeometries. So are you saying that, if there aren't any subgeometries in the first place, its dimensionality is actually 0? I was thinking it makes more sense to return -1, like the function returns for NULL.
     1I think there may have been a misunderstanding and I'd like understand the intended behavior of the code. The dimension of a Point is 0 because, mathematically, it is a 0-dimensional object. The docs also say that the dimensionality of an array of geometries is the highest dimensionality of any of the subgeometries. So are you saying that, if there aren't any subgeometries in the first place, its dimensionality is actually 0? I was thinking it makes more sense to return -1, like the function returns for NULL.