<div dir="ltr">Hello!<div><br></div><div>Thank you for your answer! </div><div><br></div><div>Please find below more information:</div><div><br></div><div>The type of data which I will insert is an 1D array of values between 0 and 255. </div><div>This array should be mapped to different dimensions: </div><div>1D - grey string</div><div>2D - grey image</div><div>3d - grey cube</div><div><br></div><div>There will be a lot of reads from the arrays and only one write at insert. The size of the array will be kept constant and will be given by the file size.</div><div><br></div><div>Is there a way to import directly the 1D binary file into arrays of higher dimensions or do I need to convert it first and then import it?</div><div><br></div><div>Best,</div><div>George <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 5:56 PM, 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>Hey,<br>you don't even need postgis for this, you could store a cube per line,<br></div><div>with a x,y,z number, indexes on it,then querry like<br>SELECT *<br>FROM my_cube_table<br></div><div>WHERE x BETWEEN 100 AND 200<br></div><div>AND y BETWEEN 23 AND 45<br></div><div>AND z BETWEEN 45 AND 67<br></div><div>You could alos use postgres range type.<br></div><div>Of course you could store cube as meshes, and use pure 3D function (postgis so )<br></div><div>etc etc<br><br></div>It is very hard to answer you if you don't explain what you want to do with this cubes , how many you will have, ifyou read it more or write it more, what kind of data it contains, if the size of each cube may change, if you want to convert this to geo types ...<br><br>Cheers,<br></div></div>Rémi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2014-11-25 17:32 GMT+01:00 George Merticariu <span dir="ltr"><<a href="mailto:merticariug@gmail.com" target="_blank">merticariug@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">Hello!<div><br></div><div>I want to use PostGIS for handling 3D cubes but I couldn't figure out how to do it from the manual. </div><div><br></div><div>The main tasks I want to accomplish are:</div><div><br></div><div>1. Import a 1D char array file (grey cube) into a 3D cube.</div><div>2. Retrieve sections from the cube, where a section is defined by a domain.</div><div><br></div><div>Example:</div><div><br></div><div>Given a file of 1024*1024*1024 bytes, I want to import it into a cube with the domain [0:1023, 0:1023, 0:1023]. Then, select the sub-domains (examples):</div><div><ul><li style="margin-left:15px"> [100:200, 100:200, 0:100]</li><li style="margin-left:15px"> [0:1, 0:1023, 0:1023] <br></li></ul></div><div><br></div><div>Is this possible using PostiGIS? If yes, are there any detailed tutorials which explain how to do that?</div><div><br></div><div>Thank you!</div><div><br></div><div>Best regards,</div><div>George Merticariu</div><div><br></div></div><div><div dir="ltr"></div></div>
</div>
<br></div></div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">George Merticariu<div><br></div><div>Jacobs University Bremen</div><div>B.Sc. Computer Science </div><div>Class of 2014</div><div><br></div><div><a href="mailto:g.merticariu@jacobs-university.de" target="_blank">g.merticariu@jacobs-university.de</a></div><div><a href="mailto:merticariug@gmail.com" target="_blank">merticariug@gmail.com</a></div></div></div>
</div>