[postgis-users] some wrong with geometry_overright()!

David Fan echofxb at sina.com
Mon Mar 8 04:43:48 PST 2004




PG_FUNCTION_INFO_V1(geometry_overright);
Datum geometry_overright(PG_FUNCTION_ARGS)
{
 GEOMETRY     *geom1 = (GEOMETRY *)  PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 GEOMETRY     *geom2 = (GEOMETRY *)  PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
 
 bool result;
//printf("in geometry_overright\n");
 
 if (geom1->SRID != geom2->SRID)
 {
  elog(ERROR,"Operation on two GEOMETRIES with different SRIDs\n");
  PG_RETURN_NULL();
 }
 
  /*
   *I think there is some wrong with the following
   *It should be:
   *result = FPge(geom1->bvol.LLB.x, geom2->bvol.URT.x);
   */
 result = FPge(geom1->bvol.LLB.x, geom2->bvol.LLB.x);


 PG_RETURN_BOOL(result);
}

______________________________________
Äú¿ÉÒÔͨ¹ýÒÔÏ·½Ê½ºÍÎÒÁªÂç
(You can use the followings to contact with me )
-------------------------------------------------------------------------
MSN:echofxb at hotmail.com
QQ:26370116
Mail:echofxb at sina.com
-------------------------------------------------------------------------
×¢²áÐÂÀË9Õ×Ãâ·ÑÓÊÏ䣨 http://mail.sina.com.cn/chooseMode.html £©

===================================================================
´î³Ë»ÝÆÕ"²ÊÉ«ÉÌÎñ"£¬±¼ÏòÑŵäÊ¥»áÓн±Õ÷ÎÄ (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh1.html)



More information about the postgis-users mailing list