title: How to create a shape-file with M-values
body: <p>Using the Java classes from com.vividsolutions.jts.geom I create shape-files for points (x,y coordinate), but is there a way to create shape-files with M-values, which are called "PointZ" in other environments?</p>
  
  <p>The code for creating shape features for x/y is something like:</p>
  
  <pre><code>import com.vividsolutions.jts.geom.Coordinate;
  import com.vividsolutions.jts.geom.Point;
  import com.vividsolutions.jts.geom.LineString;
  import com.vividsolutions.jts.geom.MultiLineString;
  ...
  
  // for point shape
  Point point = geometryFactory.createPoint(new Coordinate(x,y,z));
  featureBuilder.add(point); // here x,y,z is stored
  
  // for multi-line shape
  Coordinate cl[]=... some array of (x/y/z)
  CoordinateArraySequence cas=new CoordinateArraySequence(cl);
  LineString linestr[]=new LineString[1];
  linestr[0]=new LineString(cas,geometryFactory);
  MultiLineString mls = geometryFactory.createMultiLineString(linestr);
  featureBuilder.add(mls);
  </code></pre>
  
  <p>So this code-snippet works good for (x/y); but how could I add M-values? There is no method like Coordinate(x,y,z,m).</p>
  
  <p>Thank you for any ideas!</p>