Bart van den Eijnden
0e1a30b3cd
PointPlacement and LinePlacement are choices, so don't output both
2012-02-29 14:42:11 +01:00
Bart van den Eijnden
6258c89d8c
Merge pull request #242 from bartvde/sld2
...
Add support for LabelPlacement of sld:TextSymbolizer (r=@ahocevar)
2012-02-28 00:00:01 -08:00
Bart van den Eijnden
12d8220992
add a testcase for the labelAlign to AnchorPoint translation
2012-02-24 18:35:20 +01:00
Bart van den Eijnden
f05564cdb3
add support for LinePlacement
2012-02-24 15:42:49 +01:00
Bart van den Eijnden
6411a6c0ef
implement TextSymbolizer->PointPlacement
2012-02-24 14:58:36 +01:00
Bart van den Eijnden
2e69d68102
map fill-opacity in TextSymbolizer to fontOpacity
2012-02-23 15:55:40 +01:00
Bart van den Eijnden
d4e0947f1a
even though the parsing and writing is the same for all VendorOption tags, add a more complete list in the test SLD
2012-02-22 12:18:56 +01:00
Bart van den Eijnden
f0cb98a9bf
a bit of restructuring, also making sure that a Graphic in a TextSymbolizer can be read and written (this is a GeoServer extension to produce e.g. highway shields)
2012-02-22 11:57:42 +01:00
Bart van den Eijnden
b2f95bd537
TextSymbolizer->Fill->CssParameter['fill'] should map to fontColor instead
2012-02-22 11:03:48 +01:00
Bart van den Eijnden
050f72b443
start on a GeoServer profile for SLD
2012-02-22 09:55:45 +01:00
ahocevar
754312b20b
Support for basic literal/propertyname combinations in SLD. r=elemoine (closes http://trac.osgeo.org/openlayers/ticket/3506 )
2011-11-13 22:04:07 +01:00
bartvde
5490d6781d
fix up SLD tests which broke after r12129, change is similar to that done by ahocevar in tests/Protocol/WFS.html
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-30 07:17:29 +00:00
pgiraud
f84f696e31
Adds the possibility to use a built version of OpenLayers for the tests, users simply have to add '?mode=build' in the run-tests.html url
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 10:10:25 +00:00
Tim Schaub
6c0952934f
Adding point, line, polygon, text, and raster symbolizer constructors. This paves the way for rendering multiple symbolizers per rule. The SLD parser now successfully round-trips documents with multiple symbolizers and multiple FeatureTypeStyle elements (through the symbolizer zIndex property). The Style2 (yes, ack) constructor is used to represent a collection of rules with multiple symbolizers. Style2 objects are currently only used by the SLD parser if the multipleSymbolizer property is set to true. Future enhancements to the renderers can be made to account for multiple symbolizers. r=ahocevar ( closes #2760 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10560 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-02 19:49:52 +00:00
ahocevar
d57b603d07
Added parseFloat for quantity and opacity on read, as suggested in bartvde's review. With additional tests to show that everything works as suggested now. See #2642 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 21:57:13 +00:00
ahocevar
f52cd8972a
added partial support for RasterSymbolizer to Format.SLD. r=bartvde ( closes #2642 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10344 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 08:42:55 +00:00
Tim Schaub
7e821da0b5
Write out stroke dash style and linecap in SLD. r=ahocevar ( closes #2270 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:34:16 +00:00
ahocevar
f59eceef71
create UserStyle in a way that propertyNames cache will be generated.
...
Thanks sonicx for catching this. r=tschaub (closes #2000 )
r=tschaub
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 23:08:08 +00:00
ahocevar
44ab482e89
addad namedLayersAsArray option to Format.SLD.v1. Patch by tschaub and
...
me, r=tschaub,me (closes #2005 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 08:39:15 +00:00
Tim Schaub
a9e087b5b9
Writing sld:Mark fill and stroke in cases where graphicName is not provided. r=ahocevar ( closes #2008 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:02:58 +00:00
Tim Schaub
84fa9dd1ae
Adding gml namespace to SLD format for writing spatial filters. r=ahocevar ( closes #2006 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:00:15 +00:00
Tim Schaub
7af042ac7f
Adding more support for sld:TextSymbolizer parsing. Reading TextSymbolizer, Label, Font, Halo, and Radius. Writing symbolizer fontWeight and fontStyle as sld:CssParameters. Writing sld:Halo and sld:Radius. r=ahocevar ( closes #1984 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 00:14:26 +00:00
ahocevar
a80e1e52c2
Cast values containing numbers into Number objects in Filter and SLD
...
format to ensure correct comparison of scale denominators against map
scale and filters against features. Introduces a new
OpenLayers.String.numericIf function. r=fredj,tschaub (closes #1874 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 22:19:17 +00:00
Tim Schaub
7582cc076e
Refactor SLD format a bit to use methods from XML format. The SLD format (v1.0) now inherits from the filter format (v1.0.0). r=ahocevar ( closes #1843 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 00:53:58 +00:00
Tim Schaub
dfe1282442
Allowing zero fill opacity to be written in SLD docs. The SLD format deserves a bit more of an overhaul (given changes to OL.Format.XML), and we've got decent changes sitting around in various sandboxes, but this is a simple fix for a small problem. r=ahocevar ( closes #1884 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-24 00:10:16 +00:00
Tim Schaub
de6ce111c9
Adding support for TextSymbolizer writing in the SLD format. Thanks to Bart for the original patch. This provides basic expression handling for text labels. Read support later. r=ahocevar ( closes #1542 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 17:18:35 +00:00
Tim Schaub
1091e34c0b
With dramatic flourish, I'm modifying 21 files with 1033 insertions and 815 deletions between release candidates. This moves all rule subclasses to a more natural home as filter subclasses. Also adds tests for SLD write and corrects a handful of issues there. Apologies to all who lose sleep over this sort of thing. r=ahocevar,crschmidt ( closes #1492 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 00:13:45 +00:00