Hi,
the support for randomized fill symbols has landed on geotools, I’ve added some examples
in this mail to geotools-devel in case you’re not subscribed to it already:
http://osgeo-org.1560.x6.nabble.com/Randomized-fill-landed-on-trunk-td5081889.html
Now, I want to add support for this to CSS as well, would like to confirm that the following
straightforward mapping works for everybody? (basically, the usual -gt- prefix on all vendor params)
-gt-random
-gt-random-seed
-gt-random-symbol-count
-gt-random-tile-size
-gt-random-space-around
-gt-random-rotation
-gt-random-grid
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Since this is a design discussion for GeoScript Scala I don’t think the GeoServer development list is the appropriate forum. GeoScript has its own mailing list at https://groups.google.com/forum/#!forum/geoscript .
···
On Fri, Oct 4, 2013 at 1:15 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:
Hi,
the support for randomized fill symbols has landed on geotools, I’ve added some examples
in this mail to geotools-devel in case you’re not subscribed to it already:
http://osgeo-org.1560.x6.nabble.com/Randomized-fill-landed-on-trunk-td5081889.html
Now, I want to add support for this to CSS as well, would like to confirm that the following
straightforward mapping works for everybody? (basically, the usual -gt- prefix on all vendor params)
-gt-random
-gt-random-seed
-gt-random-symbol-count
-gt-random-tile-size
-gt-random-space-around
-gt-random-rotation
-gt-random-grid
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
David Winslow
Boundless - http://boundlessgeo.com/
On Sun, Oct 6, 2013 at 5:00 PM, David Winslow <dwinslow@anonymised.com>wrote:
Since this is a design discussion for GeoScript Scala I don't think the
GeoServer development list is the appropriate forum. GeoScript has its own
mailing list at https://groups.google.com/forum/#!forum/geoscript .
I don't see it appropriate for GeoScript scala either, it's not about the
geoscript API, but about a styling language that
happens to be written in Scala.
But how much of GeoScript Scala does it really use?
I have the impression most of the usage CSS gets is through GeoServer, so
it seems to me more appropriate to discuss
things here. Is any other GeoScript language using CSS too? If so, maybe we
could cross post
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
A poisson disc distribution would probably look nicer than either jittered grid or purely random points. There’s an interesting algorithm for generating poisson disc point sets really fast using Wang Tiles
http://johanneskopf.de/publications/blue_noise/
···
I implemented most of the algorithm using JTS a while back but haven’t had time to turn it into something ‘finished’.
On 6 October 2013 09:12, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Sun, Oct 6, 2013 at 5:00 PM, David Winslow <dwinslow@anonymised.com> wrote:
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Kevin Smith
Junior Software Engineer | Boundless
ksmith@anonymised.com
+1-778-785-7459
@boundlessgeo
Since this is a design discussion for GeoScript Scala I don’t think the GeoServer development list is the appropriate forum. GeoScript has its own mailing list at https://groups.google.com/forum/#!forum/geoscript .
I don’t see it appropriate for GeoScript scala either, it’s not about the geoscript API, but about a styling language that
happens to be written in Scala.
But how much of GeoScript Scala does it really use?
I have the impression most of the usage CSS gets is through GeoServer, so it seems to me more appropriate to discuss
things here. Is any other GeoScript language using CSS too? If so, maybe we could cross post
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Mon, Oct 7, 2013 at 9:23 PM, Kevin Smith <ksmith@anonymised.com> wrote:
A poisson disc distribution would probably look nicer than either jittered
grid or purely random points. There's an interesting algorithm for
generating poisson disc point sets really fast using Wang Tiles
http://johanneskopf.de/publications/blue_noise/
The random position generator is factored out in inteface plus separate
classes, are you interested in trying to implement
a possoid disc based one?
The objective is to generate a random distribution of points inside the
tile that will be then provided to TexturePaint for
filling polygons. The interface to implement is simple:
interface PositionSequence {
Position getNextPosition();
void lastPositionResults(boolean conflict);
}
The first method returns a x,y,rotation, the second one is called back to
notify the generator whether the generated position
was used, or stumbled into another alrady painted symbol.
You can find everything inside the RandomFillBuilder class, in the GeoTools
render module.
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Cool, I’ll give it a shot when I’ve got a bit of free time.
···
On 8 October 2013 00:13, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Mon, Oct 7, 2013 at 9:23 PM, Kevin Smith <ksmith@anonymised.com> wrote:
–
Kevin Smith
Junior Software Engineer | Boundless
ksmith@anonymised.com
+1-778-785-7459
@boundlessgeo
A poisson disc distribution would probably look nicer than either jittered grid or purely random points. There’s an interesting algorithm for generating poisson disc point sets really fast using Wang Tiles
http://johanneskopf.de/publications/blue_noise/
The random position generator is factored out in inteface plus separate classes, are you interested in trying to implement
a possoid disc based one?
The objective is to generate a random distribution of points inside the tile that will be then provided to TexturePaint for
filling polygons. The interface to implement is simple:
interface PositionSequence {
Position getNextPosition();
void lastPositionResults(boolean conflict);
}
The first method returns a x,y,rotation, the second one is called back to notify the generator whether the generated position
was used, or stumbled into another alrady painted symbol.
You can find everything inside the RandomFillBuilder class, in the GeoTools render module.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Tue, Oct 8, 2013 at 7:39 PM, Kevin Smith <ksmith@anonymised.com> wrote:
Cool, I'll give it a shot when I've got a bit of free time.
Great!
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------