Nazzareno Sileno created GEOT-4113:
--------------------------------------

             Summary: Shp publish into postgis datastore with MULTIPOLYGON 
EMPTY value violates check constraint.
                 Key: GEOT-4113
                 URL: https://jira.codehaus.org/browse/GEOT-4113
             Project: GeoTools
          Issue Type: Bug
            Reporter: Nazzareno Sileno
         Attachments: archive test.zip, postgis.patch

I have a problem when i try to publish a shp into a postgis store. 
The generated table is empty but GS does not shows errors.

Checking the Postgres logging I found the following ERROR: new row for relation 
"admin_shp_test" violates check constraint "enforce_geotype_the_geom".

These seems to be due to a specific call: INSERT INTO "public"."admin_shp_test" 
( "the_geom","ID","AREA","PERIMETER","protezione" ) VALUES 
(GeomFromText('MULTIPOLYGON EMPTY',32633),0,0.0,0.0,'');

The MULTIPOLYGON EMPTY value produce this error.

Attached the test shape file and the path file to resolve this issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to