[QGIS-trac] Re: [Quantum GIS] #3369: Annotations disappear

Quantum GIS qgis at qgis.org
Mon Feb 7 16:00:22 EST 2011


#3369: Annotations disappear
---------------------------------------------------------+------------------
   Reporter:  pope965176                                 |              Owner:  mhugent      
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.7.0
  Component:  Project Loading / Saving                   |            Version:  1.6.0        
   Keywords:  annotation                                 |   Platform_version:               
   Platform:  Windows                                    |           Must_fix:  No           
Status_info:  1                                          |  
---------------------------------------------------------+------------------

Comment(by mhugent):

 The attached project file indeed does not contain any annotation item.
 Normally, there should be elements <TextAnnotationItem> or
 <FormAnnotationItem> in the project file, like below. Are you sure the
 annotation items have been there (also in the project file) at the
 beginning? And could you describe under what circumstances they appeared
 (e.g. the steps you did in between)?


 sample item xml:

 <TextAnnotationItem document="&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD
 HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-
 html40/strict.dtd&quot;>&#xa;&lt;html>&lt;head>&lt;meta
 name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;style
 type=&quot;text/css&quot;>&#xa;p, li { white-space: pre-wrap;
 }&#xa;&lt;/style>&lt;/head>&lt;body style=&quot; font-family:'Sans Serif';
 font-size:9pt; font-weight:400; font-style:normal;&quot;>&#xa;&lt;p
 style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-
 right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Sample
 text&lt;/p>&lt;/body>&lt;/html>">
         <AnnotationItem frameHeight="100" canvasPosX="404.9999999999723"
 mapPosX="701434.1818181816" canvasPosY="358.0000000000069"
 mapPositionFixed="1" mapPosY="228699.2272727273"
 frameBackgroundColorAlpha="255" frameBorderWidth="1" visible="1"
 offsetX="50" offsetY="-50" frameWidth="200" frameBackgroundColor="#ffffff"
 frameColor="#000000">
             <symbol outputUnit="MM" alpha="1" type="marker" name="marker
 symbol">
                 <layer pass="0" class="SimpleMarker" locked="0">
                     <prop k="angle" v="0"/>
                     <prop k="color" v="255,0,0,255"/>
                     <prop k="color_border" v="0,0,0,255"/>
                     <prop k="name" v="circle"/>
                     <prop k="offset" v="0,0"/>
                     <prop k="size" v="2"/>
                 </layer>
             </symbol>
         </AnnotationItem>
  </TextAnnotationItem>

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3369#comment:5>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list