Re: [JPP-Devel] Vertical alignment now works for polygons in Label Style

2010-06-09 Thread Nils Kuhn




Hi Larry,

thanks for your effort, I think this new function would be a nice and
useful option for labeling!

I don't know if I am getting the problem correctly, but couldn't the
entries of the "vertical alignment"-combobox be changed to "above the
feature", "on the feature" and "below the feature"? For existing
polygon-layers the vertical alignment should be set to "on the feature"
automatically if someone activates the "labels"-tab of the
styles-dialog and the style actually is set to "on the feature" (as the
previous default).
I haven't looked into the affected classes and I am not as well
informed about the OJ-code, so maybe my ideas are not realizable...

Regards,
Nils

Michal Michaud schrieb:

  Hi, Larry
  
  
Thanks Stefan.   I would appreciate feedback from others on how 
vertical alignment for polygons affects their work, plugins, or 
tutorials.  If necessary, I can change the default so that it acts 
like it did before the mod (for new layers).  Unfortunately, (for 
existing layers) the default setting for vertical alignment was "Above 
the Line" but the Style was "On the Line", so there could be lots of 
unintended consequences for existing layers.   Does anyone have 
suggestions as to how these could be minimized?

  
  This change will not affect my work as I don't use styles too much. But 
it's always good to have more choice. That's nice to have a new option.
The only way I can think of to solve the confusion between "Above Line" 
and "On the line" is
- to let "Above the line" have its old meaning even for polygons (can 
think "Above the line traversing the polygon horizontaly and passing 
through its middle")
- adding "Above/Below the polygon" or "Above/Below the feature" which 
will act as your new option for polygons and which will act as 
Above/Below line for point/linestring

Just an idea to keep backward compatibility. I do not say it should be 
done that way, as it adds more menu items without adding really new 
capabilities.

Maybe another option could be to create a small beantool to migrate old 
"Above line" styles to new "On" style for a selection of layers.

Michal
 
  
  
regards,
Larry

On Fri, Jun 4, 2010 at 10:30 PM, Stefan Steiniger sst...@geo.uzh.ch 
mailto:sst...@geo.uzh.ch wrote:

is welcome, I would say.
thanks!

Larry Becker schrieb:
 I made an experimental change to LabelStyle to allow vertical
alignment
 to work for polygons and not just points and lines.  For maps with
 polygon layers that are not "space filling" (i.e. buildings), the
 preferred label position is outside of the polygon, and you
would choose
 a vertical alignment of Above or Below.  For the old method of
labels
 guaranteed to be on the polygon, choose On.  Currently the menu text
 also includes "the Line" after Above, On, or Below, but this should
 probably be removed if you like this change.

 regards,
 Larry






--
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo





 ___
 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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
___
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




--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
  

  
  

--
ThinkGeek and WIRED's 

Re: [JPP-Devel] Vertical alignment now works for polygons in Label Style

2010-06-09 Thread Larry Becker
Hi Nils,

   I agree with your analysis except that OJ has no explicit definition of
polygon (or any other geometry type) layers, so setting the default
intelligently does not seem practical. Of course, you could loop though all
of the features for the layer to determine if the layer contained only
polygons, but this could be a performance issue with some database layers.
   I like your on the feature wording though.

Larry

On Wed, Jun 9, 2010 at 11:03 AM, Nils Kuhn nils.k...@bws-gmbh.de wrote:

  Hi Larry,

 thanks for your effort, I think this new function would be a nice and
 useful option for labeling!

 I don't know if I am getting the problem correctly, but couldn't the
 entries of the vertical alignment-combobox be changed to above the
 feature, on the feature and below the feature? For existing
 polygon-layers the vertical alignment should be set to on the feature
 automatically if someone activates the labels-tab of the styles-dialog and
 the style actually is set to on the feature (as the previous default).
 I haven't looked into the affected classes and I am not as well informed
 about the OJ-code, so maybe my ideas are not realizable...

 Regards,
 Nils

 Michaël Michaud schrieb:

 Hi, Larry


  Thanks Stefan.   I would appreciate feedback from others on how
 vertical alignment for polygons affects their work, plugins, or
 tutorials.  If necessary, I can change the default so that it acts
 like it did before the mod (for new layers).  Unfortunately, (for
 existing layers) the default setting for vertical alignment was Above
 the Line but the Style was On the Line, so there could be lots of
 unintended consequences for existing layers.   Does anyone have
 suggestions as to how these could be minimized?


  This change will not affect my work as I don't use styles too much. But
 it's always good to have more choice. That's nice to have a new option.
 The only way I can think of to solve the confusion between Above Line
 and On the line is
 - to let Above the line have its old meaning even for polygons (can
 think Above the line traversing the polygon horizontaly and passing
 through its middle)
 - adding Above/Below the polygon or Above/Below the feature which
 will act as your new option for polygons and which will act as
 Above/Below line for point/linestring

 Just an idea to keep backward compatibility. I do not say it should be
 done that way, as it adds more menu items without adding really new
 capabilities.

 Maybe another option could be to create a small beantool to migrate old
 Above line styles to new On style for a selection of layers.

 Michaël



  regards,
 Larry

 On Fri, Jun 4, 2010 at 10:30 PM, Stefan Steiniger sst...@geo.uzh.ch 
 mailto:sst...@geo.uzh.ch sst...@geo.uzh.ch wrote:

 is welcome, I would say.
 thanks!

 Larry Becker schrieb:
  I made an experimental change to LabelStyle to allow vertical
 alignment
  to work for polygons and not just points and lines.  For maps with
  polygon layers that are not space filling (i.e. buildings), the
  preferred label position is outside of the polygon, and you
 would choose
  a vertical alignment of Above or Below.  For the old method of
 labels
  guaranteed to be on the polygon, choose On.  Currently the menu text
  also includes the Line after Above, On, or Below, but this should
  probably be removed if you like this change.
 
  regards,
  Larry
 
 
 
 
 
 
 
 --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
 
 
 
 
 
  ___
  Jump-pilot-devel mailing list
  Jump-pilot-devel@lists.sourceforge.net
 mailto:Jump-pilot-devel@lists.sourceforge.net 
 Jump-pilot-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 mailto:Jump-pilot-devel@lists.sourceforge.net 
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


 

 

Re: [JPP-Devel] Vertical alignment now works for polygons in Label Style

2010-06-07 Thread Larry Becker
Thanks Stefan.   I would appreciate feedback from others on how vertical
alignment for polygons affects their work, plugins, or tutorials.  If
necessary, I can change the default so that it acts like it did before the
mod (for new layers).  Unfortunately, (for existing layers) the default
setting for vertical alignment was Above the Line but the Style was On
the Line, so there could be lots of unintended consequences for existing
layers.   Does anyone have suggestions as to how these could be minimized?

regards,
Larry

On Fri, Jun 4, 2010 at 10:30 PM, Stefan Steiniger sst...@geo.uzh.ch wrote:

 is welcome, I would say.
 thanks!

 Larry Becker schrieb:
  I made an experimental change to LabelStyle to allow vertical alignment
  to work for polygons and not just points and lines.  For maps with
  polygon layers that are not space filling (i.e. buildings), the
  preferred label position is outside of the polygon, and you would choose
  a vertical alignment of Above or Below.  For the old method of labels
  guaranteed to be on the polygon, choose On.  Currently the menu text
  also includes the Line after Above, On, or Below, but this should
  probably be removed if you like this change.
 
  regards,
  Larry
 
 
  
 
 
 --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
 
 
  
 
  ___
  Jump-pilot-devel mailing list
  Jump-pilot-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Vertical alignment now works for polygons in Label Style

2010-06-07 Thread Michaël Michaud
Hi, Larry
 Thanks Stefan.   I would appreciate feedback from others on how 
 vertical alignment for polygons affects their work, plugins, or 
 tutorials.  If necessary, I can change the default so that it acts 
 like it did before the mod (for new layers).  Unfortunately, (for 
 existing layers) the default setting for vertical alignment was Above 
 the Line but the Style was On the Line, so there could be lots of 
 unintended consequences for existing layers.   Does anyone have 
 suggestions as to how these could be minimized?
This change will not affect my work as I don't use styles too much. But 
it's always good to have more choice. That's nice to have a new option.
The only way I can think of to solve the confusion between Above Line 
and On the line is
- to let Above the line have its old meaning even for polygons (can 
think Above the line traversing the polygon horizontaly and passing 
through its middle)
- adding Above/Below the polygon or Above/Below the feature which 
will act as your new option for polygons and which will act as 
Above/Below line for point/linestring

Just an idea to keep backward compatibility. I do not say it should be 
done that way, as it adds more menu items without adding really new 
capabilities.

Maybe another option could be to create a small beantool to migrate old 
Above line styles to new On style for a selection of layers.

Michaël
 

 regards,
 Larry

 On Fri, Jun 4, 2010 at 10:30 PM, Stefan Steiniger sst...@geo.uzh.ch 
 mailto:sst...@geo.uzh.ch wrote:

 is welcome, I would say.
 thanks!

 Larry Becker schrieb:
  I made an experimental change to LabelStyle to allow vertical
 alignment
  to work for polygons and not just points and lines.  For maps with
  polygon layers that are not space filling (i.e. buildings), the
  preferred label position is outside of the polygon, and you
 would choose
  a vertical alignment of Above or Below.  For the old method of
 labels
  guaranteed to be on the polygon, choose On.  Currently the menu text
  also includes the Line after Above, On, or Below, but this should
  probably be removed if you like this change.
 
  regards,
  Larry
 
 
 
 
 
 
 
 --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
 
 
 
 
 
  ___
  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

 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 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


 

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate 
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
 lucky parental unit.  See the prize list and enter to win: 
 http://p.sf.net/sfu/thinkgeek-promo
 

 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
   


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Vertical alignment now works for polygons in Label Style

2010-06-04 Thread Stefan Steiniger
is welcome, I would say.
thanks!

Larry Becker schrieb:
 I made an experimental change to LabelStyle to allow vertical alignment 
 to work for polygons and not just points and lines.  For maps with 
 polygon layers that are not space filling (i.e. buildings), the 
 preferred label position is outside of the polygon, and you would choose 
 a vertical alignment of Above or Below.  For the old method of labels 
 guaranteed to be on the polygon, choose On.  Currently the menu text 
 also includes the Line after Above, On, or Below, but this should 
 probably be removed if you like this change.
 
 regards,
 Larry
 
 
 
 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate 
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
 lucky parental unit.  See the prize list and enter to win: 
 http://p.sf.net/sfu/thinkgeek-promo
 
 
 
 
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel