[udig-devel] Help with simple plugin
Pedro Da Ros
pedro.ros at gmail.com
Tue Jun 5 11:02:54 PDT 2007
Hey Andrea,
thanks for the links, I hadnt checked them yet!
I took a look on the tutorials (I had seen only the one on the site,
the "distancemeasure" one), and they helped me getting started on the
plugin, as I managed to add a button to the toolbar and create a map
and a layer when the user clicks the button :).
But I've been struggling for over 2 hours trying to add features to
the layer but I cant... tried to create a feature schema and set to
the layer but couldnt... nor create individual features (managed to
create a feature collection with empty feature type, but didnt manage
to create the features itself to populate the collection). I could
create "Point"s, but didnt manage to convert them to Features to add
to the layer.
I couldnt find the example that reads from an ASCII file and renders
to a layer, that one should cover my problem, I think.
Any ideas/hints? :P
Thanks again and cya,
-Pedro Da Ros
On 6/5/07, Andrea Antonello <andrea.antonello at gmail.com> wrote:
> Hi Pedro,
> I remember that one of the example codes reads a particular ascii file
> and renders it to a layer. Did you already have a look at the examples?
>
> http://udig.refractions.net/confluence/display/DEV/4+Examples+Guide
>
> For creating a temporary layer with features and do other funny stuff
> you can use this existing code:
>
> http://svn.geotools.org/udig/trunk/tutorials/net.refractions.udig.code.examples
>
> I hope this helps.
>
> All the examples are in plugin form, so you can import them all into
> eclipse and copy their behaviour and see what plugins they depend on.
>
> If you already looked at those resources, please try to define a bit
> better your question, so that we can better help.
>
> Ciao
> Andrea
>
>
>
> Pedro Da Ros probaly wrote:
> > Hey all,
> >
> > I´m a little used to JUMP/OJ, and am trying uDig to see if it fits for
> > a project that is starting, but am kinda lost on this Eclipse plugin
> > architecture of uDig.
> >
> > I created the sample measure tool plugin following the tutorial, but
> > the tutorial is a little too much step only, without explaining the
> > concepts behind each step.
> >
> > I´m trying now to create a plugin that once you press a button it
> > creates (or displays) a layer and adds some features to it, to
> > understand how to use it.
> >
> > So basically my question is, what kind of dependencies and extensions
> > should I select? I couldnt find much info on this, and the "Extension
> > Points" link on the Plugin Dev Documentation page isnt working.
> >
> > Thanks for the help,
> > -Pedro Da Ros
> > _______________________________________________
> > User-friendly Desktop Internet GIS (uDig)
> > http://udig.refractions.net
> > http://lists.refractions.net/mailman/listinfo/udig-devel
> >
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
More information about the udig-devel
mailing list