I ran into this same problem in ows4 in jdbc land. The jdbc datastore
always creates features with the isNillable flag set to true. I tried to
set it properly and suffice it to say things blew up.

-Justin

Jesse Eichar wrote:
> To be clear the FeatureType has Nillable set or not set.  In the case  
> where the AttributeType is set as Not Nillable the createDefault  
> Value must return a Non-null value.  However there is no way to know  
> what a good value is from the describeFeatureType request.  So what  
> is done now is the WFS has an AttributeType that is Not-Nillable but  
> the createDefaultValue returns null so it is impossible to create a  
> feature.
> 
> Jesse
> 
> 
> 
> On 16-Jan-07, at 10:58 AM, Andrea Aime wrote:
> 
>> 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
> 
> !DSPAM:1004,45ad2779301931365099012!
> 


-- 
Justin Deoliveira
[EMAIL PROTECTED]
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
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