Index: trunk/zoo-services/ogr/base-vect-ops/service.c
===================================================================
--- trunk/zoo-services/ogr/base-vect-ops/service.c	(revision 26)
+++ trunk/zoo-services/ogr/base-vect-ops/service.c	(revision 32)
@@ -246,6 +246,12 @@
    OGRGeometryH geometry,res;
    map* tmp=getMapFromMaps(inputs,"InputPolygon","value");
-   if(tmp==NULL)
+   if(tmp==NULL){
+     setMapInMaps(conf,"lenv","message","Unable to fetch input geometry");
      return SERVICE_FAILED;
+   }else
+     if(strlen(tmp->value)<=0){
+       setMapInMaps(conf,"lenv","message","Unable to fetch input geometry");
+       return SERVICE_FAILED;
+     }
    map* tmp1=getMapFromMaps(inputs,"InputPolygon","mimeType");
    if(strncmp(tmp1->value,"application/json",16)==0)
