1) I am wondering how do you create a layer! I want to know what classes I need!In MapImport I found that the layer is added to the map(ApplicationGis.addLayerToMap), but the preceding steps which are they? How do I view the table chosen by the customer Udig?What is the process in this framework that shows the table choice? So I want to know all the classes that I need for to do this!2) FeatureSource <SimpleFeatureType, SimpleFeature> parent.getDS fs = (). GetFeatureSource ( typename).Here uses a datastore, I want to try to assign geometric information, such as a polygon! How do I?thank you!
----Messaggio originale---- Da: [email protected] Data: 9-mag-2012 12.53 A: <[email protected]>, "User-friendly Desktop Internet GIS"<[email protected]> Ogg: Re: [udig-devel] R: Re: Piece of code and classes of render 1) when user highlighted your table on view , connect your database (mysql postgis etc ) read features , 2) create an temp datasource ( in memory , or shape file , or collection ) 3) add features to temp datasource that you ve created at 1st step . 4) create a layer at map ( or select existing) using temp datasource; 5) add the layer you ve created to map. On May 9, 2012, at 1:47 PM, <[email protected]> wrote: > > if you read carefully, I wrote that I do not need connection, so I do not > have to connect to the database, but I simply have a catalog as mySql catalog > from the point of view of the code! Client-side I want that when the client > adds a plan showing the My tool over at MySQL, Teradata PostGIS etc. and when > the client click on my tool shows a wizard that contains workflow and various > tables and when the client select the table of my tools (which contains > several fields including a geometrical field) I want the customer sees on the > uDig! So I want to know what classes I need, and pieces of code that make me > render my tables of udig! > I hope I was clear! > Thank you! > ----Messaggio originale---- > Da: [email protected] > Data: 9-mag-2012 12.29 > A: "User-friendly Desktop Internet GIS"<[email protected]> > Ogg: Re: [udig-devel] Piece of code and classes of render > > You did not told us what do you mean by 'table' > It is not clear if you have to access a database or a file. Since I > presume you are not connecting to database, the question is: what is > the file format of your data? > On this depends a lot of subsequent design of your code. > > Marco > > 2012/5/9 <[email protected]>: > > Hi! > > I must render on Udig the table of my tool as the table of mySql, but i > > haven't need of connection!one of your co-worker told me that the class > > MapView has a render manager, but I looked at the code and it is commented > > in a tutorial plugin! So choosing one of the mysql tables as it does to > > render on uDig? what is the piece of code that render the table of mySql? > > and what classes I need?I did a catalog as of the catalog of mySql but i > > want render on udig the table of my tool! > > Thank you! > > > > _______________________________________________ > > 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 > > > _______________________________________________ > 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
