<div dir="ltr">Hey <span style="font-size:13px">Rémi-C,</span><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Yes, I plan on working further to add new functionality for pgpointcloud in python.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">My current plans are (in order of priority):</span></div><div><span style="font-size:13px"><br></span></div><div>1. PostgreSQL function to convert/transform a patch/point from one schema to another.</div><div>2. A "Map Algebra"-like PostgreSQL function for computing values per point and neighborhood.</div><div><span style="font-size:13px">3. Like you, create a raster from a stored pointcloud</span></div><div><span style="font-size:13px">4. Refactor the patch fitting code.</span></div><div><br></div><div>It sounds like we may be able to collaborate on a few areas.</div><div><br></div><div>-bborie</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 14, 2015 at 4:07 AM, Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello Bborie,<br></div>by pure luck I found your github repo that propose python tools for pgpointcloud.<br></div><div>(<a href="https://github.com/dustymugs/pgpointcloud_utils" target="_blank">here</a>)<br></div><br></div><div>From what I understood it can import an ogr layer (or geojson) into postgres as a pgpointcloud patch, creating schema and format for this type of points.<br></div><div>(with some limitations, maybe scale and offset?)<br></div><div><br><br></div><div>I am also in need of a python way to use pgpointcloud, in the inverse direction that you<br></div><div>(you did OGR <b>-></b> pgpointcloud, I'm doing pgpointcloud <b><-></b>numpy <b>-></b>(gdal, ...) )<br></div><br>First I tried a swig python interface to pgpointcloud C lib, <br>but I couldn't use it correctly because I don't know how to fabricate C pointer in python. (I can provide the few changes to get the automatic SWIG API if somebody is interested)<br><br></div><div>I wrote <a href="https://github.com/Remi-C/PPPP_utilities/blob/master/pointcloud/pg_pointcloud_classes.py" target="_blank">classes</a> to represent pc_schema, and tools to parse a xml pcschema and convert it to the python class.<br></div><div>Then I wrote tools to convert pgpatch to/from strongly typed numpy array.<br></div><div><br>Those numpy array seems to be good candidates as a python common type, because many python lib understand numpy (including gdal, and all the scientific lib I use, like python-pcl, scikit-learn, etc ).<br><br></div><div>My <a href="https://github.com/Remi-C/PPPP_utilities/blob/master/pointcloud/patch_to_raster.py" target="_blank">next step</a> is to convert those numpy array into gdal rasters.<br></div><div><br><br></div><div>Obviously we already did some work twice (reading/writting wkb points for instance, which was difficult for my python skill level).<br><br></div><div>Do you plan (or somebody else) to work further on pgpointcloud python interface?<br><br></div><div>Cheers,<br>Rémi-C<br></div><div><div><br></div></div></div>
</blockquote></div><br></div>