{
char *ret = NULL;
int type = geom->type;
+
+ /* Empty string for empties */
+ if( lwgeom_is_empty(geom) )
+ {
+ ret = lwalloc(1);
+ ret[0] = '\0';
+ return ret;
+ }
switch (type)
{
insert into spatial_ref_sys (srid, proj4text) values (500002, '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs');
select '#1150', st_astext(st_transform('SRID=500002;POINT(0 0)',500001));
+-- #1038
+select '#1038', ST_AsSVG('POLYGON EMPTY'::geometry);
-- Clean up
DELETE FROM spatial_ref_sys;
#852.2|2|t|t
#1489|MULTIPOINT EMPTY|0|MULTILINESTRING EMPTY|0|MULTIPOLYGON EMPTY|0|GEOMETRYCOLLECTION EMPTY|0
ERROR: AddToPROJ4SRSCache: couldn't parse proj4 string: '': (null)
+#1038|