[udig-devel] creating a feature with default values
Jody Garnett
jgarnett at refractions.net
Fri May 2 08:30:56 PDT 2008
andrea antonello wrote:
> Hi, I am trying to create a feature for an empty layer. The feature
> should be created with all default values in it.
>
That is a little bit tough; sometimes a value is required (like say a
geometry) and no sensible default can be provided.
> What I thought I should do, is first to get the featuretype from the
> layer and with that create a new feature, but I seem to be wrong.
> The only way I found in that case is bound to the existence of an
> existing feature.
>
> How can I achieve that?
>
Your approach sounded okay. What exactly about it was wrong?
Jody
More information about the udig-devel
mailing list