Ejemplo n.º 1
0
 def y(self):
     """Return the y location of point geometries in a GeoSeries"""
     if (self.geom_type == "Point").all():
         return _series_unary_op(self, 'y', null_value=np.nan)
     else:
         message = "y attribute access only provided for Point geometries"
         raise ValueError(message)
Ejemplo n.º 2
0
 def y(self):
     """Return the y location of point geometries in a GeoSeries"""
     if (self.geom_type == "Point").all():
         return _series_unary_op(self, 'y', null_value=np.nan)
     else:
         message = "y attribute access only provided for Point geometries"
         raise ValueError(message)