I got a version of the new Extract Layers plugin working last night.  I
didn't implement the annotation extraction as this would have required new
code.  I'll check it in as soon as I do some more testing and
internationalize it.

regards,
Larry

On 10/3/07, Larry Becker <[EMAIL PROTECTED]> wrote:
>
> >What are the candidate features for xxx_text layer ?
>
> I'm not sure exactly.  ESRI does it, so it must be smart, right?  :-)
>
> I guess I was mostly thinking of DXF imported layers.  I'm not sure it
> makes as much sense in a stand-alone plugin, but I'll give the use case a
> try:  features that are currently displaying non-null labels.  In other
> words, if labeling is turned on, and the label attribute for the feature is
> not the "" string, then copy the feature to the _text layer and enable the
> label style for the destination.
>
> Larry
>
>
>
> On 10/3/07, Michaël Michaud <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Very good Larry,
> > Just a question about text part :
> > What is the concept behind annotation ?
> > I know that many famous formats as DXF, MIF/MID, GeoConcept... have a
> > text type, but I'm not a big fan of this. IMHO, displaying text is the
> > "style" purpose and not a geometry type problem, but I may have missed
> > some use cases.
> > What are the candidate features for xxx_text layer ?
> >
> > Thanks
> >
> > Michaël
> >
> >
> > Larry Becker a écrit :
> >
> > > Making a generic capability to break out a layer into linestrings,
> > > polygons, points, and annotation is an excellent idea.  If you recall,
> > > I tried to port over the capability to do this with the shapefiles
> > > version of SkyJUMP's enhanced Save Selected Datasets command.  Perhaps
> > > the best way to do this is to refactor this capability out as a
> > > separate class and plugin.
> > >
> > > I'll add this to my to-do list.  Does anyone have specific use cases?
> > > I'm assuming that the command would leave the original layer alone,
> > > and create new layers for each of the geometry types mentioned above.
> > > It would use the original layer name and append _line, _area, _point,
> > > or _text  (internationalized).  Does this sound reasonable?
> > >
> > > The menu might say something like, "Extract geometry types to separate
> > > layers", if that isn't too lengthy.
> > >
> > > regards,
> > > Larry
> > >
> > > On 10/3/07, * Michaël Michaud* <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED] >> wrote:
> > >
> > >     Larry Becker a écrit :
> > >
> > >     > Hi Michaël,
> > >     >
> > >     >   As I might have mentioned before, we use your dxf plugin
> > >     > extensively.  I have been meaning to write that auto-style
> > script
> > >     > too.  Hope you get it done first  :-)  There are some issues
> > with
> > >     > styling text, since you don't usually want the point displayed,
> > and
> > >     > also, by default, the text centers on the point instead of left
> > >     > justifying.  In fact, I added the new label style left
> > >     justification
> > >     > for just this purpose.
> > >
> > >     Hi, it seems that reproducing the exact DXF layout may be more
> > >     difficult
> > >     than what I have thought.
> > >
> > >     >
> > >     >   This introduces an item on my dxf wish list.  ESRI's DXF
> > import
> > >     > automatically places text, points, linestrings, and polygons on
> > >     their
> > >     > own layer.  I don't know of a precedent for this in JUMP, but I
> > >     don't
> > >     > see why it isn't possible, do you?  Clearly it would make
> > automated
> > >     > styling easier.
> > >
> > >     IMHO, OpenJUMP has the great advantage to be able to manage
> > >     heterogeneous layers, and this capability must be used to preserve
> > >     imported file structure as close as possible to the source one
> > (DXF,
> > >     MIF/MID) .
> > >     Dispatching features in different layers according to their
> > >     geometry (or
> > >     to an attribute value) is a generic need which should be
> > >     developped in a
> > >     separate plugin (not included in the driver). A plugin already
> > >     exists to
> > >     select features with a specific geometry type. Developping another
> > one
> > >     to create a layer by geometry type should not be too hard.
> > >
> > >     For DXF layers, I must admit that dispatching features from
> > different
> > >     DXF layers into different OpenJUMP layers should take place in the
> > >     driver. It is just a bit more work to load features from a single
> > file
> > >     into several layers. On the other hand, dispatching loaded
> > features
> > >     using an attribute value is also an easy thing, and I already
> > >     developped
> > >     a plugin to do that (this can also be considered as a generic
> > >     function,
> > >     and can be useful in other situations).
> > >
> > >     Michael
> > >
> > >     >
> > >     > regards,
> > >     >
> > >     > Larry
> > >     >
> > >     > On 10/1/07, *Michaël Michaud* < [EMAIL PROTECTED]
> > >     <mailto:[EMAIL PROTECTED]>
> > >     > <mailto: [EMAIL PROTECTED]
> > >     <mailto:[EMAIL PROTECTED]>>> wrote:
> > >     >
> > >     >     Hi Peppe,
> > >     >
> > >     >     I read your page about CAD. Good documentation !
> > >     >     Here are some propositions to be more precise about what the
> > >     >     driver can
> > >     >     do and what it cannot :
> > >     >     - subset of supported geometries features  (ex. POINT,
> > >     >     POLYLINE..., I'll
> > >     >     check that)
> > >     >     - list of dxf feature attributes imported (COLOR,
> > THICKNESS...,
> > >     >     see the
> > >     >     schema of an imported dxf file)
> > >     >     - more precise description of how polylines are imported :
> > >     the DXF
> > >     >     "closed" field is used to know if geometries have to be
> > >     imported as
> > >     >     polygons or as polylines. This way the parser can make a
> > >     difference
> > >     >     between a closed line (a polyline with identical first and
> > >     last points
> > >     >     but without the closed dxf attribute) and a polygon (a
> > >     closed polyline
> > >     >     with the closed attribute) : to test it, you can draw a
> > >     polygon and a
> > >     >     closed polyline in jump, export it in dxf and import it back
> > >     into
> > >     >     jump.
> > >     >     - we should also write that the plugin is able to "export"
> > >     DXF files
> > >     >     from OpenJUMP, even if this is less useful than importing
> > cad
> > >     >     drawings.
> > >     >     - I did not test all the dxf version you considered (8 to
> > >     >     14/2002). Hope
> > >     >     that works. The driver is based on an old version of DXF
> > >     >     specification
> > >     >     (10 or 12, don't remember exactly). Most of new features are
> > >     simply
> > >     >     ignored. One major limitation is about local coordinates :
> > >     if some
> > >     >     objects in the drawing are described in a local coordinate
> > >     system, the
> > >     >     parser will ignore that and use them as if they were
> > absolute
> > >     >     coordinates.
> > >     >
> > >     >     I read attributes such as color and thickness as normal jump
> >
> > >     >     attributes
> > >     >     because basically, a jump driver read geometries and
> > attributes,
> > >     >     not styles.
> > >     >     But reading your paper, I thought that it should not be too
> > >     >     difficult to
> > >     >     write a script which can apply styles to dxf-layers using
> > their
> > >     >     dxf-attributes (I'll give this a try)
> > >     >
> > >     >     Michaël
> > >     >
> > >     >     Giuseppe Aruta a écrit :
> > >     >
> > >     >     > Hi Michael,
> > >     >     > I wrote a small tutorial about CAD files
> > >     >     > ( http://openjump.org/wiki/show/CAD+Tutorial).
> > >     >     > I did some consideration about your DXF plugin, I would
> > >     >     like  you give
> > >     >     > it  a look (maybe I made some  mistakes about it).
> > >     >     >
> > >     >     > Thanks
> > >     >     >
> > >     >     > peppe
> > >     >     >
> > >     >     > L'email della prossima generazione? Puoi averla con la
> > >     nuova Yahoo!
> > >     >     > Mail
> > >     >     > <
> > >     >
> > >
> > http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/*http://it.docs.yahoo.com/nowyoucan.html
> > >     
> > > <http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/*http://it.docs.yahoo.com/nowyoucan.html
> > >>
> > >     >     >
> > >     >     >
> > >     >
> > >
> > >------------------------------------------------------------------------
> > >     >     >
> > >     >
> > >
> > >-------------------------------------------------------------------------
> > >
> > >     >     >This SF.net email is sponsored by: Microsoft
> > >     >     >Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >     >     > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >     < http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> > >     >     >
> > >     >
> > >
> > >------------------------------------------------------------------------
> > >     >     >
> > >     >     >_______________________________________________
> > >     >     >Jump-pilot-devel mailing list
> > >     >     >Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto:Jump-pilot-devel@lists.sourceforge.net>
> > >     >     <mailto:Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto:Jump-pilot-devel@lists.sourceforge.net>>
> > >     >     >https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >     >     < https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >     >     >
> > >     >     >
> > >     >
> > >     >
> > >     >
> > >
> > -------------------------------------------------------------------------
> > >     >     This SF.net email is sponsored by: Microsoft
> > >     >     Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >     >     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >     <http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> > >     >     _______________________________________________
> > >     >     Jump-pilot-devel mailing list
> > >     >     Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto: Jump-pilot-devel@lists.sourceforge.net>
> > >     >     <mailto:Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto: Jump-pilot-devel@lists.sourceforge.net>>
> > >     >
> > >     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >     <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
> > >     >
> > >     >
> > >     >
> > >     >
> > >     > --
> > >     > http://amusingprogrammer.blogspot.com/
> > >     >
> > >
> > >------------------------------------------------------------------------
> > >
> > >     >
> > >
> > >-------------------------------------------------------------------------
> > >     >This SF.net email is sponsored by: Microsoft
> > >     >Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >     > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >     >
> > >
> > >------------------------------------------------------------------------
> > >     >
> > >     >_______________________________________________
> > >     >Jump-pilot-devel mailing list
> > >     >Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto:Jump-pilot-devel@lists.sourceforge.net>
> > >     >https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >     <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
> > >     >
> > >     >
> > >
> > >
> > >
> > -------------------------------------------------------------------------
> > >     This SF.net email is sponsored by: Microsoft
> > >     Defy all challenges. Microsoft(R) Visual Studio 2005.
> > >     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > >     _______________________________________________
> > >     Jump-pilot-devel mailing list
> > >     Jump-pilot-devel@lists.sourceforge.net
> > >     <mailto:Jump-pilot-devel@lists.sourceforge.net>
> > >     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> > >
> > >
> > > --
> > > http://amusingprogrammer.blogspot.com/
> > >
> > >------------------------------------------------------------------------
> >
> > >
> >
> > >-------------------------------------------------------------------------
> > >This SF.net email is sponsored by: Splunk Inc.
> > >Still grepping through log files to find problems?  Stop.
> > >Now Search log events and configuration files using AJAX and a browser.
> >
> > >Download your FREE copy of Splunk now >> http://get.splunk.com/
> > >
> >
> > >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >Jump-pilot-devel mailing list
> > >Jump-pilot-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
>
>
> --
> http://amusingprogrammer.blogspot.com/




-- 
http://amusingprogrammer.blogspot.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to