Issue Type: Wish Wish
Affects Versions: 10.2
Assignee: Andrea Aime
Components: render
Created: 13/Dec/13 9:06 PM
Description:

Follow on to GEOT-4641 (which correct the conversion of degree to angle).

There are two ways to think of adjusting fill pattern based on rotation:

  • Square tessellation, maintain size and spacing:preserve requested mark size, drawing the original mark rotated. This is the current approach it results in visual overlap so is probably wrong. It does however preserve the spacing between marks, and for marks that are contained within a unit circle (such as a star) it is an intuitive approach.

Rotating a size 16 square mark, produces a 16x16 pattern (the corners of the square will overlap making little stop signs).
```
------- -------

   
 
 
  ########
 
 
   

------- -------
```

  • Square tessellation, maintain size by adjusting spacing: increase the mark size to adjust for rotation. This is the obvious way to prevent overlap, and is probably wrong.

It would maintain the size of each mark during rotation, but the spacing between the marks would change (as the icon to hold a rotated mark is larger). This would work for all kinds of marks, but would not be intuitive to work with. So to rotate a size 16 square mark we would need an 18x18 pattern generated.
```
----------
-------- | |

   
 
 
 
 
 
   

-------- | |
----------
```
We could also adjust the size of the mark based on angle so the resulting icon still ends up at the requested size. So to rotate a size 16 square we would need to shrink it down to size 12 to end up with a 16x16 pattern.
```
------- -------

     
 
 
 
 
 
     

------- -------
```

  • Angle tessellation, maintain size and spacing. by creating a larger repeating pattern. For a size 16 square we would need to make a larger pattern to produce the correct tessellation.
    ```
    ----------
    -------- |### ###|
       
      1. ## ##
     
    1. #### #
     
     
     
     
    1. #### #
       
      1. ## ##

    -------- |### ###|
    ----------
    ```
    This approach would be annoying to code but would produce a similar result to the current slash icon factory.

Project: GeoTools
Priority: Minor Minor
Reporter: Jody Garnett
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to