[JPP-Devel] add new Layer

2008-05-15 Thread entera
Hi all, I want to add a new layer with some attributes on buttonclick. The BeanTools -> NewLayer.bsh makes the same in principle. When I click the button, the new layer is added with the desired attributes. But when I edit the layer, e.g. draw a line, I got this error: -1 (Array Index Out Of Bou

Re: [JPP-Devel] add new Layer

2008-05-15 Thread Larry Becker
Hi Carl, Don't forget the geometry. You need to add something like: fs.addAttribute("GEOMETRY", AttributeType.GEOMETRY); regards, Larry Becker On Thu, May 15, 2008 at 3:59 AM, Carl Grönniger (entera) < [EMAIL PROTECTED]> wrote: > Hi all, > > I want to add a new layer with some attributes o

Re: [JPP-Devel] add new Layer

2008-05-15 Thread entera
Hi Larry, thank you! It works... perhaps I should make a pause... ;-) regards, Carl - Original Message - From: Larry Becker To: OpenJump develop and use Sent: Thursday, May 15, 2008 3:10 PM Subject: Re: [JPP-Devel] add new Layer Hi Carl, Don't forget the geometry. Y

Re: [JPP-Devel] add new Layer

2008-05-15 Thread Nacho Uve
Hi: I think you must add the Geometry Attribute in the FeatureSchema fs. :) 2008/5/15 Carl Grönniger (entera) <[EMAIL PROTECTED]>: > Hi all, > > I want to add a new layer with some attributes on buttonclick. > The BeanTools -> NewLayer.bsh makes the same in principle. > When I click the butt