[postgis-tickets] [PostGIS] #2131: Replace regress_lots_of_points.sql data with generated query

PostGIS trac at osgeo.org
Wed Jan 3 20:40:53 PST 2018


#2131: Replace regress_lots_of_points.sql data with generated query
--------------------------+-----------------------------
  Reporter:  strk         |      Owner:  pramsey
      Type:  enhancement  |     Status:  closed
  Priority:  low          |  Milestone:  PostGIS Fund Me
 Component:  postgis      |    Version:  trunk
Resolution:  wontfix      |   Keywords:
--------------------------+-----------------------------

Comment (by Mike Toews):

 New idea: improve an existing function by adding a new (3rd) parameter:

   `ST_GeneratePoints( g geometry , npoints numeric , seed integer DEFAULT
 NULL)`

 where `seed` (if provided) could be used to generate a predictable pseudo-
 random number sequence. I've investigated that the
 [https://en.wikipedia.org/wiki/Mersenne_Twister Mersenne Twister] (e.g.
 MT19937) provides the same pseudo-random sequence on different platforms.
 There are a few small C examples floating around that can be tailored into
 [https://github.com/postgis/postgis/blob/8d538e952743acf3e9311e4f576d2afd00ae1fc1/liblwgeom/lwgeom_geos.c#L1772-L1855
 liblwgeom/lwgeom_geos.c].

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2131#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list