@operator(value = {"add_z"})
 @doc(
     deprecated = "use set location instead",
     value = "add_z",
     comment =
         "Return a geometry with a z value"
             + "The add_z operator set the z value of the whole shape."
             + "For each point of the cell the same z value is set.",
     examples = {@example("set shape <- shape add_z rnd(100);")},
     see = {"add_z_pt"})
 @Deprecated
 public static IShape add_z(final IShape g, final Double z) {
   GamaPoint p = new GamaPoint(g.getLocation().getX(), g.getLocation().getY(), z);
   g.setLocation(p);
   /*
    * final Coordinate[] coordinates = g.getInnerGeometry().getCoordinates();
    * ((GamaPoint) g.getLocation()).z = z;
    * for ( int i = 0; i < coordinates.length; i++ ) {
    * coordinates[i].z = z;
    * }
    */
   return g;
 }