}
/* Prototype */
-static LWGEOM* parse_geojson(json_object *geojson, int *hasz, int root_srid);
+static LWGEOM* parse_geojson(json_object *geojson, int *hasz, int root_srid);
static json_object*
findMemberByName(json_object* poObj, const char* pszName )
}
static LWGEOM*
-parse_geojson_point(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_point(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom;
POINTARRAY *pa;
}
static LWGEOM*
-parse_geojson_linestring(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_linestring(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom;
POINTARRAY *pa;
}
static LWGEOM*
-parse_geojson_polygon(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_polygon(json_object *geojson, int *hasz, int root_srid)
{
POINTARRAY **ppa = NULL;
json_object* rings = NULL;
}
static LWGEOM*
-parse_geojson_multipoint(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_multipoint(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom;
int i = 0;
}
static LWGEOM*
-parse_geojson_multilinestring(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_multilinestring(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom = NULL;
int i, j;
}
static LWGEOM*
-parse_geojson_multipolygon(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_multipolygon(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom = NULL;
int i, j, k;
}
static LWGEOM*
-parse_geojson_geometrycollection(json_object *geojson, int *hasz, int root_srid)
+parse_geojson_geometrycollection(json_object *geojson, int *hasz, int root_srid)
{
LWGEOM *geom = NULL;
int i;
}
static LWGEOM*
-parse_geojson(json_object *geojson, int *hasz, int root_srid)
+parse_geojson(json_object *geojson, int *hasz, int root_srid)
{
json_object* type = NULL;
const char* name;
*srs = NULL;
lwerror("You need JSON-C for lwgeom_from_geojson");
return NULL;
-#else /* HAVE_LIBJSON */
+#else /* HAVE_LIBJSON */
/* size_t geojson_size = strlen(geojson); */
LWDEBUG(2, "geom_from_geojson called.");
}
- return lwgeom;
+ return lwgeom;
#endif /* HAVE_LIBJSON } */
}