initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
}
else
{
- g = (GEOSGeometry *)POSTGIS2GEOS(gser_in);
+ g = POSTGIS2GEOS(gser_in);
/* Uh oh! Exception thrown at construction... */
if ( ! g )
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g3 = (GEOSGeometry *)GEOSBoundary(g1);
+ g3 = GEOSBoundary(g1);
if (!g3)
{
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g3 = (GEOSGeometry *)GEOSConvexHull(g1);
+ g3 = GEOSConvexHull(g1);
GEOSGeom_destroy(g1);
if (!g3) HANDLE_GEOS_ERROR("GEOSConvexHull");
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ g1 = POSTGIS2GEOS(geom);
if (!g1)
{
initGEOS(lwpgnotice, lwgeom_geos_error);
- geosgeom = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ geosgeom = POSTGIS2GEOS(geom);
if (!geosgeom)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ g1 = POSTGIS2GEOS(geom);
if ( g1 )
{
reason_str = GEOSisValidReason(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ g1 = POSTGIS2GEOS(geom);
if ( g1 )
{
if ( geos_location )
{
location = GEOS2LWGEOM(geos_location, GEOSHasZ(geos_location));
- GEOSGeom_destroy((GEOSGeometry *)geos_location);
+ GEOSGeom_destroy(geos_location);
}
if (valid == 2)
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
if ( prep_cache && prep_cache->prepared_geom && prep_cache->argnum == 1 )
{
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g1 = POSTGIS2GEOS(geom2);
if (!g1)
HANDLE_GEOS_ERROR("Geometry could not be converted to GEOS");
}
else
{
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
"GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
HANDLE_GEOS_ERROR(
if ( prep_cache && prep_cache->prepared_geom && prep_cache->argnum == 1 )
{
- GEOSGeometry *g = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ GEOSGeometry *g = POSTGIS2GEOS(geom2);
if (!g)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
GEOSGeometry *g2;
GEOSGeometry *g1;
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
"GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
if ( prep_cache && prep_cache->prepared_geom && prep_cache->argnum == 1 )
{
- GEOSGeometry *g1 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ GEOSGeometry *g1 = POSTGIS2GEOS(geom2);
if (!g1)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
GEOSGeometry *g1;
GEOSGeometry *g2;
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
"GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
{
if ( prep_cache->argnum == 1 )
{
- GEOSGeometry *g = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ GEOSGeometry *g = POSTGIS2GEOS(geom2);
if (!g)
HANDLE_GEOS_ERROR("Geometry could not be converted to GEOS");
result = GEOSPreparedIntersects( prep_cache->prepared_geom, g);
}
else
{
- GEOSGeometry *g = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ GEOSGeometry *g = POSTGIS2GEOS(geom1);
if (!g)
HANDLE_GEOS_ERROR("Geometry could not be converted to GEOS");
result = GEOSPreparedIntersects( prep_cache->prepared_geom, g);
{
GEOSGeometry *g1;
GEOSGeometry *g2;
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR(
"First argument geometry could not be converted to "
"GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1 );
+ g1 = POSTGIS2GEOS(geom1 );
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2 );
+ g2 = POSTGIS2GEOS(geom2 );
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1 );
+ g1 = POSTGIS2GEOS(geom1 );
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2 );
+ g2 = POSTGIS2GEOS(geom2 );
if (!g2)
{
GEOSGeom_destroy(g1);
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom1);
+ g1 = POSTGIS2GEOS(geom1);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
- g2 = (GEOSGeometry *)POSTGIS2GEOS(geom2);
+ g2 = POSTGIS2GEOS(geom2);
if (!g2)
{
initGEOS(lwpgnotice, lwgeom_geos_error);
- g1 = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ g1 = POSTGIS2GEOS(geom);
if (!g1)
HANDLE_GEOS_ERROR("First argument geometry could not be converted to GEOS");
*is3d = *is3d || gserialized_has_z(geom);
- geos_geoms[i] = (GEOSGeometry*) POSTGIS2GEOS(geom);
+ geos_geoms[i] = POSTGIS2GEOS(geom);
if (!geos_geoms[i])
{
uint32_t j;
initGEOS(lwpgnotice, lwgeom_geos_error);
geom = PG_GETARG_GSERIALIZED_P(0);
- geosgeom = (GEOSGeometry *)POSTGIS2GEOS(geom);
+ geosgeom = POSTGIS2GEOS(geom);
if ( ! geosgeom ) PG_RETURN_NULL();
lwgeom_result = GEOS2POSTGIS(geosgeom, gserialized_has_z(geom));
pfree(geos_results);
get_typlenbyvalalign(array->elemtype, &elmlen, &elmbyval, &elmalign);
- result = (ArrayType*) construct_array(result_array_data, nclusters, array->elemtype, elmlen, elmbyval, elmalign);
+ result = construct_array(result_array_data, nclusters, array->elemtype, elmlen, elmbyval, elmalign);
if (!result)
{
pfree(lw_results);
get_typlenbyvalalign(array->elemtype, &elmlen, &elmbyval, &elmalign);
- result = (ArrayType*) construct_array(result_array_data, nclusters, array->elemtype, elmlen, elmbyval, elmalign);
+ result = construct_array(result_array_data, nclusters, array->elemtype, elmlen, elmbyval, elmalign);
if (!result)
{
PG_RETURN_POINTER(result);
#endif
}
+