[Community] Error loading fonts
Betsy.Gardner
Betsy.Gardner at noaa.gov
Fri Apr 7 19:04:03 EEST 2006
I am seeking help on trying to get the PrimaGIS demo running on my
system. I'm using PrimaGIS 0.5.0, ZCO 0.7.0, and Python 2.3.5. I can
get the demo folder into my plone site but the map display is empty.
Looking into the plone logs I see the following errors:
2006-04-07T10:38:34 ERROR(200) SiteError
http://localhost:85/demo/primagis/view
Traceback (most recent call last):
File "C:\GISMapping\Plone 2\Zope\lib\python\ZPublisher\Publish.py",
line 101, in publish
request, bind=1)
File "C:\GISMapping\Plone 2\Zope\lib\python\ZPublisher\mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File "C:\GISMapping\Plone 2\Zope\lib\python\ZPublisher\Publish.py",
line 39, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "C:\GISMapping\Plone 2\Data\Products\PrimaGIS\PrimaGISMap.py",
line 230, in view
transparent = not(self.getBackgroundColor()))
File "C:\GISMapping\Plone 2\Data\Products\ZCO\MapRenderer.py", line
193, in render
image = r.render(layering, view, format, size, bgcolor, transparent)
File
"C:\Python23\Lib\site-packages\cartography\engine\mapserver\rendering.py",
line 116, in render
mo = _init_map(self, size, view, format, bgcolor, transparent)
File
"C:\Python23\Lib\site-packages\cartography\engine\mapserver\rendering.py",
line 747, in _init_map
mo.setFontSet(renderer.fontset)
File "C:\gismapping\FWTools1.0.0a7\pymod\mapscript.py", line 938, in
setFontSet
def setFontSet(*args): return _mapscript.mapObj_setFontSet(*args)
IOError: msLoadFontset(): Unable to access file. Error opening fontset
c:\GISMapping\GIS_Dataontset.txt.
For some reason, the f in fontset.txt comes in as some funky character
instead of as an f.
The settings in my createPrimaGISDemo.py file are as follows:
## User configurable section ##
# Content type for GeoArchetypesProxies' subjects. Any AT based type
will do.
PROXY_SUBJECT_TYPE='Document'
# Directory used by PCL for storing temporary data (such as WMS images).
# TEMP_DIR = '/tmp'
TEMP_DIR = 'c:\temp'
# Location of the world_borders shapefile on the filesystem
# WORLD_BORDERS_OVF = '/usr/local/mapdata/world/world_borders.ovf'
WORLD_BORDERS_OVF = 'c:\GISMapping\GIS_Data\world_borders.ovf'
# Location of the fontset file
# FONTSET_FILE = '/usr/local/mapdata/fontset.txt'
FONTSET_FILE = 'c:\GISMapping\GIS_Data\fontset.txt'
## End of user configurable section ##
My fontset.txt file has the following lines:
arial C:\WINDOWS\Fonts\ARIAL.TTF
arial_bold C:\WINDOWS\Fonts\ARIALBD.TTF
arial_italic C:\WINDOWS\Fonts\ARIALI.TTF
arial_bold_italic C:\WINDOWS\Fonts\ARIALBI.TTF
times_new_roman C:\WINDOWS\Fonts\TIMES.TTF
times_new_roman_bold C:\WINDOWS\Fonts\TIMESBD.TTF
times_new_roman_italic C:\WINDOWS\Fonts\TIMESI.TTF
times_new_roman_bold_italic C:\WINDOWS\Fonts\TIMESBI.TTF
trebuchet_ms C:\WINDOWS\Fonts\trebuc.ttf
trebuchet_ms_bold C:\WINDOWS\Fonts\trebucb.ttf
trebuchet_ms_italic C:\WINDOWS\Fonts\trebuci.ttf
trebuchet_ms_bold_italic C:\WINDOWS\Fonts\trebucbi.ttf
If someone could just point me in the right direction, I would greatly
appreciate it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Betsy.Gardner.vcf
Type: text/x-vcard
Size: 232 bytes
Desc: not available
URL: <http://lists.gispython.org/pipermail/community/attachments/20060407/695bfddc/attachment.vcf>
More information about the Community
mailing list