Jesse Eichar ha scritto:
> Hi All,
> 
> I'm trying to copy features into Shapefile datastore from a WFS.  The  
> WFS creates a FeatureType based on the describeFeature operation  
> which correctly sets the nillable flag on the AttributeTypes.   
> However it doesn't have a way to find a "default" value so  
> createDefaultValue returns null, which is in direct conflict with the  
> FeatureType.  

I don't follow you... if an attribute is nillable, null should be a good
value for it, no? Why look for a default? In database you specify a 
default for columns that are non nillable, yet you may want to avoid
specify a value.

Isn't the DBF spec that do not allow for a null value? If so, I guess
the shapefile datastore itself should take care of it somehow, maybe
morphing the feature type and adding "reasonable" null equivalent?

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to