<div dir="ltr">Hi Strk,<br><div class="gmail_extra">spgist has a different datastructures for every support function so making it difficult to use a geometry datatype.<br></div><div class="gmail_extra">using geometry as the datatype is also not helping.<br>

</div><div class="gmail_extra">in every case I am getting stuck in the very first line of the the code.<br><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">Mohit<br></div><div class="gmail_extra">

<br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 12, 2014 at 2:00 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On Tue, Aug 12, 2014 at 01:43:39PM +0530, mohit kumar wrote:<br>
> Hi all,<br>
> I am still stuck at the implemantation of sp-gist on geometry in postgis as<br>
> the structures for spgist support functions are not supporting geometry<br>
> datatypes (box2df in my case).<br>
<br>
</div>Spgist support functions are those you register yourself in the OPERATOR<br>
CLASS creation. What does it mean they don't support geometry datatypes ?<br>
And why is it a box2df if we already found out some weeks ago that spgist<br>
does not support an index storage type different from the target type ?<br>
<div class=""><br>
> spgConfigOut is not taking POINTOID or VOIDOID as a valid datatype and<br>
> giving a segmentation fault.<br>
> Also by printing spgConfingOut, it prints integer value of 10 not a memory<br>
> address which a pointer should give.<br>
<br>
</div>If you pass "%d" as the format string, the generated code will print<br>
an integer whatever you pass as an argument. You want to use "%p" to<br>
print a memory address. See `man 3 printf`.<br>
<br>
--strk;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><div>Mohit Kumar<div>+91-970-3840-175<div>Lab For Spatial Informatics<br>International Institute of Information Technology<br>Hyderabad, India</div></div></div></div>


</div></div>