[Chameleon] MapNotes Map Update Problem
William Bronsema
wbronsema at dmsolutions.ca
Wed Aug 10 08:12:47 EDT 2005
Hi Matt,
Unfortunately I don't see anything out of the ordinary either. The only
time I have run into a similar problem was on a Linux box and it was a
permissions issue with the tmp directory. I've never had any permission
problems on Windows. ;)
If this is still a problem, zip your application (template and mapfile) and
send it to me off list and I can take a look.
Regards,
Bill
________________________________________________
William A. Bronsema, C.E.T.
Software & Applications Development,
DM Solutions Group Inc.
> -----Original Message-----
> From: matt.palavido at cleargis.com [mailto:matt.palavido at cleargis.com]
> Sent: Friday, August 05, 2005 3:21 PM
> To: William Bronsema
> Cc: chameleon at lists.maptools.org
> Subject: RE: [Chameleon] MapNotes Map Update Problem
>
> Bill,
>
> Thanks for the information. I did as you suggested and took a look at the
> files in tmp folder. I couldn't see anything out of the ordinary but I
> could be missing something. The only two things I noticed were for the map
> notes layer it had a template "ttt" line and the data path was missing the
> "c:". I tried the same test using the enhanced smaples widget with
> identical results in the temporary map file but the image gets generated
> without any problem. Here is the MapNotesAnnotation syntaxt that was
> generated if that helps at all:
>
> LAYER
> CLASSITEM "id"
> DATA "/ms4w/tmp/sess_42f3b83af1150/b5f102a963b25cdc85e100d99e320801"
> LABELITEM "label"
> METADATA
> "layer_index" "6"
> "LEGEND_ORDER" "6"
> END
> NAME "MapNotesAnnotation"
> SIZEUNITS PIXELS
> STATUS ON
> TEMPLATE "ttt"
> TOLERANCE 5
> TOLERANCEUNITS PIXELS
> TYPE POINT
> UNITS METERS
> CLASS
> EXPRESSION ([id] = 1)
> LABEL
> ANGLE 0.000000
> ANTIALIAS TRUE
> FONT sans
> MAXSIZE 256
> MINSIZE 4
> SIZE 10
> TYPE TRUETYPE
> BACKGROUNDCOLOR 255 255 204
> BACKGROUNDSHADOWCOLOR 0 0 0
> BUFFER 3
> COLOR 0 0 0
> FORCE TRUE
> MINDISTANCE 100
> MINFEATURESIZE -1
> OFFSET 6 0
> OUTLINECOLOR 255 255 255
> PARTIALS TRUE
> POSITION CR
> END
> METADATA
> END
> STYLE
> COLOR 0 0 0
> MAXSIZE 500
> MINSIZE 1
> OUTLINECOLOR 255 255 255
> SIZE 8
> SYMBOL "circle"
> END
> END
> END
>
> Also, I opened up the shapefile using some GIS software and it looked as
> though it was fine. I'm positive this is something really simple I'm just
> not seeing...its like staring at one of those 3d posters where the image
> is uspposed to appear:) Thanks again!
>
> Matt
>
> > Hi Matt,
> >
> > The easiest way to try and debug this is to check the temporary mapfile
> > that
> > has been generated by chameleon.
> >
> > Are you familiar with the temp session files that get created with
> > chameleon? Run the application to the point at which it breaks and then
> > look in you chameleon temp directory (check your config/chameleon.xml
> file
> > to see where the temp directory is) and find the last temp session
> > directory
> > that has been created. The directory will be named sess_xxxxxxxxxxxxx
> > where
> > the 'x' represent a unique session identifier (ie. sess_42dfb73fc846b).
> > In
> > there you will find a temp mapfile. Open the mapfile and look for the
> > MapNotesAnnotation layer. Check to see if its definition contains any
> > anomalies.
> >
> > Also you will find that a temporary shape file has been generated in the
> > same temp directory and should be referenced by the MapNotesAnnotation
> > layer. Check the shape file to see if it is valid.
> >
> > Between the map and shape files, you should be able to track down the
> > problem.
> >
> > Let me know how it goes.
> >
> > Regards,
> > Bill
> >
> >
> >
> > ________________________________________________
> >
> > William A. Bronsema, C.E.T.
> > Software & Applications Development,
> > DM Solutions Group Inc.
> >
> >> -----Original Message-----
> >> From: chameleon-bounces at lists.maptools.org [mailto:chameleon-
> >> bounces at lists.maptools.org] On Behalf Of matt.palavido at cleargis.com
> >> Sent: Friday, August 05, 2005 10:49 AM
> >> To: chameleon at lists.maptools.org
> >> Subject: [Chameleon] MapNotes Map Update Problem
> >>
> >> Hi listers,
> >>
> >> I'm sure I've got something miscoded or misconfigured (I'm pretty good
> >> at
> >> that!), but I can't for the life of me get the MapNotes widget working
> >> for
> >> me on my chameleon app. I have added it with the following parameters
> >> (taken from "sample_enhanced.html"):
> >>
> >> <!-- MAP NOTES -->
> >> <td><cwc2 type="MapNotes"
> >> visible="true"
> >> imagetip="MapNotes"
> >> image="icons/icon_add_mapnote.png"
> >> toolset="Navigation"
> >> styleresource="NavButtons">
> >> <image state="normal"/>
> >> <image state="hover"/>
> >> <image state="selected"/>
> >> </cwc2></td>
> >>
> >> The tool shows up in my app, you can click it and the MapNotes dialogue
> >> come sup just fine. Once you type in your note and click "Add", it
> >> indeed
> >> adds the new "MapNotesAnnotation" layer to the legend, but then a small
> >> red X (missing image indicator) shows up where the map should be and
> the
> >> "Loading Image...Please Wait" gif just sits there and spins and spins
> >> and
> >> spins.
> >>
> >> Any ideas? Thanks in advance for any help and thanks for your patience
> >> with us Rookies!
> >>
> >> Matt
> >>
> >>
> >> _______________________________________________
> >> Chameleon mailing list
> >> Chameleon at lists.maptools.org
> >> http://lists.maptools.org/mailman/listinfo/chameleon
> >
> >
>
More information about the Chameleon
mailing list