[postgis-users] Request to develop st_pointonsurface variant to output a random point (not an arbitrary one)

Stephen V. Mather svm at clevelandmetroparks.com
Tue Jan 29 11:17:17 PST 2013


No problem.  And as it is written as a function, it becomes a permanent feature in your database.

Best,
Steve

[http://sig.cmparks.net/cmp-ms-90x122.png] Stephen V. Mather
GIS Manager
(216) 635-3243 (Work)
clevelandmetroparks.com<http://www.clemetparks.com>

________________________________
From: postgis-users-bounces at lists.osgeo.org [postgis-users-bounces at lists.osgeo.org] on behalf of Luis Carrasco [leca00 at gmail.com]
Sent: Tuesday, January 29, 2013 2:16 PM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] Request to develop st_pointonsurface variant to output a random point (not an arbitrary one)

Thanks Steven!

I think that puts me in the right direction.

Best regards,

Luis

On Tue, Jan 29, 2013 at 2:01 PM, Stephen V. Mather <svm at clevelandmetroparks.com<mailto:svm at clevelandmetroparks.com>> wrote:
You might look to this post:

http://sorokine.blogspot.com/2011/05/postgis-function-for-random-point.html

Best,
Steve

Stephen V. Mather
GIS Manager
(216) 635-3243<tel:%28216%29%20635-3243> (Work)
clevelandmetroparks.com<http://www.clemetparks.com>

________________________________
From: postgis-users-bounces at lists.osgeo.org<mailto:postgis-users-bounces at lists.osgeo.org> [postgis-users-bounces at lists.osgeo.org<mailto:postgis-users-bounces at lists.osgeo.org>] on behalf of Luis Carrasco [leca00 at gmail.com<mailto:leca00 at gmail.com>]
Sent: Tuesday, January 29, 2013 1:53 PM
To: postgis-users at lists.osgeo.org<mailto:postgis-users at lists.osgeo.org>
Subject: [postgis-users] Request to develop st_pointonsurface variant to output a random point (not an arbitrary one)

Hello,

This is more of a wishlist item. I've tried using st_pointonsurface as part of a point geomasking routine but all the points I get follow the same pattern of angle and direction. Could a new function be integrated into postgis where the output point has a random location within a surface? I'm solving my problem by using a different approach for my purposes which ends being a little more complicated (therefore, this request), but I think returning a true random point could help other colleagues as well when working with a large dataset.

Thanks,

Luis

--

Luis Eduardo Carrasco, Ph.D.
Spatial Analyst
Health & Spatial Analysis Unit
State Center for Health Statistics &
UNC Lineberger Comprehensive Cancer Center
Department of Health and Human Services


_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org<mailto:postgis-users at lists.osgeo.org>
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users




--
Luis Eduardo Carrasco, Ph.D.
919.757.5574
skype: luis_e_carrasco
leca00 at gmail.com<mailto:leca00 at gmail.com>
http://www.unc.edu/~lecarras/<http://www.unc.edu/%7Elecarras/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130129/fbedabb0/attachment.html>


More information about the postgis-users mailing list