Opened 16 years ago

Last modified 14 years ago

#714 new defect

Non-Horizontal Text Labels Poor in GD and Mince in AGG

Reported by: crispinatime Owned by:
Priority: medium Milestone:
Component: Rendering Service Version: 2.0.2
Severity: major Keywords:
Cc: External ID:

Description

Hi,

Please see attached screen grabs for text rendering issues.

Both the AGG and GD images were generated from the same server and data just with a server stop, editing the serverconfig.ini and restarting to ensure a level playing field.

Two main items: GD - Vertical line labelling - the red line is the geometry and the label obviously is falling off the bottom of the line. Possibly one of those unhandled special cases where the delta-X in the line is zero?

AGG - All the words of the text string have been stacked on top of each other!!! The angled line also renders poorly compared to GD.

Attachments (4)

AGG-AngleText.JPG (15.7 KB ) - added by crispinatime 16 years ago.
AGG-VerticalText.JPG (20.2 KB ) - added by crispinatime 16 years ago.
GD-AngleText.JPG (15.9 KB ) - added by crispinatime 16 years ago.
GD-VerticalText.JPG (16.5 KB ) - added by crispinatime 16 years ago.

Download all attachments as: .zip

Change History (9)

by crispinatime, 16 years ago

Attachment: AGG-AngleText.JPG added

by crispinatime, 16 years ago

Attachment: AGG-VerticalText.JPG added

by crispinatime, 16 years ago

Attachment: GD-AngleText.JPG added

by crispinatime, 16 years ago

Attachment: GD-VerticalText.JPG added

comment:1 by waltweltonlair, 16 years ago

Pictures are nice, but can you also attach the layer definition which gives this behavior? That would greatly help us to track down the problem.

Thanks!

comment:2 by crispinatime, 16 years ago

Hi - I understand... please see below...

I have also seen labelling issues on horizontal lines where the first word of a label string appears above the line (correctly) but with a short line the second word in the string is rendered upsidedown and in reverse along the bottom of the line... which I can understand but think it should be rendered in the same direction as the first word.

<?xml version="1.0" encoding="utf-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
  <VectorLayerDefinition>
    <ResourceId>Library://NR/Data/Ora_Hades_NETWORK_RAIL.FeatureSource</ResourceId>
    <FeatureName>KingOra:NETWORK_RAIL~SCHEMATIC_BRIDGE_TEXT~GEOM</FeatureName>
    <FeatureNameType>FeatureClass</FeatureNameType>
    <Filter />
    <Geometry>GEOM</Geometry>
    <Url />
    <ToolTip>TEXT</ToolTip>
    <VectorScaleRange>
      <MaxScale>20000</MaxScale>
      <LineTypeStyle>
        <LineRule>
          <LegendLabel />
          <Label>
            <Unit>Meters</Unit>
            <SizeContext>MappingUnits</SizeContext>
            <SizeX>30</SizeX>
            <SizeY>30</SizeY>
            <Rotation>0</Rotation>
            <MaintainAspect>true</MaintainAspect>
            <Text>TEXT</Text>
            <FontName>Arial</FontName>
            <ForegroundColor>000000</ForegroundColor>
            <BackgroundColor>ffffff</BackgroundColor>
            <BackgroundStyle>Transparent</BackgroundStyle>
            <HorizontalAlignment>'Right'</HorizontalAlignment>
            <VerticalAlignment>'Baseline'</VerticalAlignment>
            <Bold>false</Bold>
            <Italic>false</Italic>
            <Underlined>false</Underlined>
          </Label>
          <LineSymbolization2D>
            <LineStyle>Solid</LineStyle>
            <Thickness>0</Thickness>
            <Color>8b0000</Color>
            <Unit>Points</Unit>
            <SizeContext>MappingUnits</SizeContext>
          </LineSymbolization2D>
        </LineRule>
      </LineTypeStyle>
    </VectorScaleRange>
  </VectorLayerDefinition>
</LayerDefinition>

comment:3 by waltweltonlair, 16 years ago

I tried your style on a simple SDF data set that had some horizontal and vertical lines, and the labels looked ok. This was using the current open source code.

What version(s) of MapGuide are you seeing the problems with?

Since this may be data-dependent, would you be able to create a small package?

comment:4 by crispinatime, 16 years ago

Hi, - I always assume that FDO makes things data independant but I will try and export the source data from Oracle into SDF to recreate as a package. Off this week so there will be a delay - thanks for trying to recreate though...

comment:5 by jbirch, 14 years ago

Please re-test against 2.1 and let us know - and send test case - if this is still an issue, or close if has been fixed. Will close this ticket if no response by next ticket cleanup cycle.

Note: See TracTickets for help on using tickets.