title: Problems with dealing with Geometry end WKBwriter on JTS
body: <p>I've just started with geometries and I'm getting some really odd errors. I'm trying to create a WKB inside my java code with an specific SRID.</p>
  
  <p>I've done:</p>
  
  <pre><code>GeometryFactory gm = new GeometryFactory(new PrecisionModel,4326)
  WKBWriter w = new WKBWriter(2,ByteOrderValues.LITTLE_ENDIAN)
  
  Geometry geom: Geometry = gm.createPoint(new Coordinate(4,5))
  Array[Byte] the_geom = w.write(geom)
  
  println(geom)
  println(geom.getSRID)
  println(WKBWriter.toHex(the_geom.get))
  </code></pre>
  
  <p>and obtained</p>
  
  <pre><code>POINT (4 5)
  4326
  010100000000000000000010400000000000001440
  </code></pre>
  
  <p>But with postgis in my DB:</p>
  
  <pre><code>GEOMETRYFROMTEXT('Point(4 5)',4326)) 
  </code></pre>
  
  <p>results in </p>
  
  <pre><code>0101000020E610000000000000000010400000000000001440
  </code></pre>
  
  <p>What I'm getting wrong here??</p>