Opened 12 years ago
Closed 12 years ago
#4226 closed defect (invalid)
msAddImageSymbol() error
Reported by: | nahumcastro | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.6.7 release |
Component: | MapServer C Library | Version: | 5.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
I had the next error: [05-Mar-2012 12:40:37] PHP Warning: Error: msLoadMap(): Undefined symbol "dreieck" in class 0, style 0 of layer desarrollo_forestal.
in /var/www/html/app/incphp/globals.php on line 66
[05-Mar-2012 12:40:37] PHP Warning: Error: msAddImageSymbol(): Error opening image file /home/mapas/dreieck.
I don't know why search for an image if the symbol is a vector?
Here is the symbol SYMBOL # Dreieck mit einem STYLE fur Linienmuster
NAME "dreieck" TYPE VECTOR POINTS
0 1 0.5 0 1 1 0 1
END FILLED TRUE STYLE
1 25 1 25
END
END
Used to work with mapserver 5.2.3
MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Oh, and if that doesn't work, please take the issue to the mailing list. Thanks!
Steve
5.2 to 5.6 is a relatively large jump so you're probably victim to syntax changes between versions. You probably should take a peak at the migration guide for 5.4 and for 5.6. My guess the problem is with your symbol definition. The STYLE keyword is not supported inside a SYMBOL. Try:
instead...
Steve