Ticket #328 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

Vertical Alignment is serialized as integer, load_map() can't parse

Reported by: springmeyer Owned by: artem
Priority: normal Milestone: 0.6.1
Component: XML Version: 0.6.0
Severity: Normal Keywords:
Cc: Patch Needs Improvement: no
Needs Docmentation: no Has Patch?: no
Design Decision Needed: no

Description

serialized output of 'save_map()' gives:

    <Style name="states_shp_labels">
        <Rule>
            <TextSymbolizer name="STATE_ABBR" face_name="DejaVu Sans Book" size="12" fill="rgb(0,0,0)" dx="0" dy="0" placement="point" vertical_alignment="2" halo_radius="0" halo_fill="rgb(255,255,255)" text_ratio="0" wrap_width="0" spacing="0" min_distance="0" allow_overlap="0"></TextSymbolizer>
        </Rule>
    </Style>

results in failure during 'load_map()':

UserWarning: Failed to parse attribute 'vertical_alignment'. Expected one of [top, middle, bottom] but got '2' in TextSymbolizer in style 'states_shp_labels'

Change History

Changed 15 months ago by springmeyer

  • summary changed from Vertical Alignment is serialized a integer, load_map() can't parse to Vertical Alignment is serialized as integer, load_map() can't parse

Changed 15 months ago by kunitoki

  • status changed from new to closed
  • resolution set to fixed

Fixed with r1116

Changed 15 months ago by kunitoki

I'll provide also a test for nose shortly that will check this ticket

Note: See TracTickets for help on using tickets.