Yes, the elusive offset line would be required if that's the technique
used.

One way to do this geometrically would be to construct a series of
perpendicular lines segments with the specified side, length, and spacing.
 Then delete all segments which intersect another one or the original line.
 The result will be a geometry that could be style to appear like hashes.

On Thu, Jul 12, 2012 at 9:19 AM, Andrea Aime
<[email protected]>wrote:

> On Thu, Jul 12, 2012 at 6:00 PM, Martin Davis <[email protected]> wrote:
>
>> Nice!  Can you post the SLD that creates this effect?
>>
>> Buffer does work with lines, but I'm guessing that the generated buffers
>> won't work with your technique, since the buffer is generated on both sides
>> of the line.   JTS does have the capability to generate "single-sided
>> buffers", but this isn't currently exposed in GeoServer.  You'd have to
>> write a new function to do that.
>>
>
> And that would not work properly either. I believe what he did was to
> buffer with a negative size to get a smaller
> polygon whose border was then painted with a graphic stroke.
>
> But to get the same effect with lines, and a proper one, one would need a
> "offset line", which is not a single
> side buffer (as already discussed many times)
>
> Cheers
> Andrea
>
> --
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
> mob:    +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
>


-- 
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to