[mapserver-users] how to show chinese character?
I am new to study mapserver. I use ms4w. When I test hello world sample, I found this sample can't show chinese character. In IE browser, it shows blank. I need some help, thanks. This is my mapfile: #This is our Hello World mapfile NAME Hello World SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 FONTSET ../fontset.txt WEB TEMPLATE c:/ms4w/apache/htdocs/website1/hello.html IMAGEPATH c:/ms4w/apache/htdocs/website1/temp/ IMAGEURL /website1/temp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT 中国 # TEXT HELLO WORLD END CLASS STYLE COLOR 255 0 0 END LABEL ENCODING utf-8 TYPE truetype SIZE 36 FONT SIMHEI COLOR 0 0 0 END END END END ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver-Homepage and Search-Functionality
Hello List, can someone tell me if the search-functionality of the new UMN-Mapserver Homepage (www.mapserver.org) will be updated in the next time? It looks great but unfortunately I find it hard to get the articles that i am looking for (e.g. searching for WMS or wfs does not bring any results). Especially I am searching for the changelog of the older Mapserver 4 Versions (search for changelog does not yield any results). Thank you very much in advance Leo -- Leonhard Dietze D - 79111 Freiburg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to show chinese character?
Hi, Do you use Chinese fonts? I don't think ms4w doesn't include any. Probably you need to make changes in FONTSET ../fontset.txt Daniel ling xiao schrieb: I am new to study mapserver. I use ms4w. When I test hello world sample, I found this sample can't show chinese character. In IE browser, it shows blank. I need some help, thanks. This is my mapfile: #This is our Hello World mapfile NAME Hello World SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 FONTSET ../fontset.txt WEB TEMPLATE c:/ms4w/apache/htdocs/website1/hello.html IMAGEPATH c:/ms4w/apache/htdocs/website1/temp/ IMAGEURL /website1/temp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT 中国 # TEXT HELLO WORLD END CLASS STYLE COLOR 255 0 0 END LABEL ENCODING utf-8 TYPE truetype SIZE 36 FONT SIMHEI COLOR 0 0 0 END END END END 好玩贺卡等你发,邮箱贺卡全新上线! http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to show chinese character?
* what renderer are you using (GD or AGG)? the AGG freetype backend doesn't support bitmap planes embedded in some fonts. you could try changing your label size as ususally not all sizes are prerendered inside the font file. * look in your apache logs if there are any messages concering the caracters not showing up * is your mapfile encoded in utf8 (it should be if you are using the encoding utf8 keyword with inline text) regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver error
Hi Iratxe, Unfortunately I know very little about CentOS. Just a windows guy me :-) But let me try: Is it possible that you have multiple Oracle Homes setup? And sqlplus is using the home where oracle server is installed whereas mapserver is using another (oracle client?) home which does not have the tnsnames setup correctly? In a windows setup i would first check the PATH environment variable. If the oracle client install is the first on the list then this is what mapserver would use. You mention a path /usr/lib/oracle/10.2.0.3/client- does this folder also contains a network\admin\tnsnames.ora file? Maybe this is the one you need to change (again maybe talking complete rubish here as on idea abt this OS) Finally- another idea just to make sure its not a WFS problem. Are you able to get an image by simply using cgi-bin e.g. http://localhost/cgi-bin/mapserve?map=...,mode=map etc?? Pano Iratxe Lejarreta wrote: On Wednesday 22 April 2009 08:54:57 Pano wrote: Hi Iratxe, Looks like mapserver doesnt know the TNS name 'orcl' that you have defined. I assume that the machine where mapserver runs has an oracle client installed? Can you log into sql plus i..e sqlplus mddata/passwd@orcl from a command prompt on this box? I assume you will get the same TNS error. Which will mean that your tnsnames.ora file is not set correctly. The file should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There should be an entry in there like: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = server_name_or_IP) (PORT = usually_1521) ) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = oracle_service_name) ) ) Hope this helps, Pano Iratxe Lejarreta wrote: Hi, I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I run the WFS service... http://localhost/cgi- bin/mywfs?SERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTYPENAME=cities ...the result is: − ServiceExceptionReport version=1.2.0 xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd; − ServiceException code=NoApplicableCode locator=mapserv msWFSGetFeature(): WFS server error. ms_error-code not found msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . /ServiceException /ServiceExceptionReport Mapfile: MAP NAME WFS_TEST STATUS ON SIZE 400 300 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 WEB METADATA wfs_title WFS TEST wfs_onlineresourcehttp://localhost/cgi-bin/mywfs?; wfs_srs EPSG:4326 END END PROJECTION init=epsg:4326 END LAYER NAME cities TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION MDDATA/**...@orcl DATA GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g METADATA wfs_title cities gml_featureid FID gml_include_items all END STATUS ON DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END END # Cities END # Map File Somebody can help me? Thanks in advance. -- Iratxe Lejarreta www.axios.es ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi Pano, Firstly, thanks for your answer! I have checked all configuration but I continue with the same error: 1.- I haven't got any error in logs. 2.- I installed Oracle Instat Client: # rpm -Uvh oracle-instantclient-basic-10.2.0.4-1.i386.rpm I have set the library loading path: # export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib 3.- I can access with sqlplus and sqldeveloper without any problem: [oracle]$ sqlplus mddata/passwd@orcl 4.- $ORACLE_HOME\network\admin\tnsnames.ora file: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.215) (PORT = 1521) ) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) 5.- I try to access with the following URL: http://192.168.2.215/cgi- bin/mywfs?SERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTYPENAME=cities 6.- ...but the result it's the same: ServiceExceptionReport version=1.2.0 xsi:schemaLocation=http://www.opengis.net/ogc
Re: [mapserver-users] GetFeatureINFO errors in Mapserver notoccurringin Geoserver.
Could be a config error in the mapfile. What version of MapServer are you using? What does the layer def look like? Geoserver and MapServer are completely different code bases so they definitely approach SDE differently. Steve On 4/23/2009 at 6:45 PM, in message 1240530355847-2688375.p...@n2.nabble.com, Michelle Douvil mrdouvi...@shaw.ca wrote: Hi Steve, Thanks for the suggestion.. I attempted this URL http://server/mapserver/air-climate?mapsize=1024+370layers=AEI_AIR_QUALITY_AO I_Omapxy=-126.94250575451+54.5026638549918mode=query and it returned: Content-type: text/html msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) Looks like WMS and mapserver queries have problems at the same point in the code - msSDElayerGetShape().. I find it odd that Geoserver WMS seems to have no problem with the same sde layer data. Which makes me believe that the underlying SDE data may be OK, but Geoserver and Mapserver somehow do the queries to SDE differently.. many thanks, Michelle Steve Lime wrote: Sounds like more of an SDE problem than WMS. Can you query the SDE layer outside of WMS just using MapServer queries? Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer with RHEL5
On Mon, 20 Apr 2009, Russell McOrmond wrote: The problem appears to be that this return code is not checked, and in many cases the value is assumed to be a pointer to a string. If that NULL is then used in a manipulation (say, a strdup()) then the program will core dump. We never get to see the error string as the core dump happens before the error string is written to the error log. In case anyone else wants to track or help with this, I've filed this bug: http://trac.osgeo.org/mapserver/ticket/2988 It will be interesting to find out if any of the other problems people are experiencing with expressions turn out to be a problem with not checking error returns from string manipulation functions. -- Russell McOrmond, Internet Consultant: http://www.flora.ca/ Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Grid Layer : different intervals from X and Y axis
Hi, I´m currently using grid object for composing grid layers but I´d like to draw X and Y axis using different interval values. Example: 1 deg for Y and 1.5 deg for X. Is there any trick to do that using grid layer? best MY MAPFILE: LAYER NAMElin_grid TYPELINE CLASS NAMEGrid LABEL COLOR 64 64 128 OUTLINECOLOR 192 224 255 TYPETRUETYPE FONT vera ANTIALIAS TRUE MINDISTANCE 16 OFFSET 7 0 SIZE 7 POSITION CC PARTIALS FALSE END STYLE COLOR 0 172 241 ANTIALIAS TRUE WIDTH 1 END END GRID LABELFORMAT '%g°' MININTERVAL 6 END STATUS OFF OPACITY 50 END -- Eduardo Patto Kanegae http://anthologis.com http://blogdopatto.webmapit.com.br ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver returns part of an image and then crashes
Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver returns part of an image and then crashes
Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia nelson...@hotmail.com Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: * Problem signature: * Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson -- Get news, entertainment and everything you care about at Live.com. Check it out! http://www.live.com/getstarted.aspx ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver returns part of an image and then crashes
Hi, I am using ms4w 2.3.1. Unfortunately it is a large data set and a huge map file, that I am not able to send, sorry. Thanks, Nelson Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: Re: [mapserver-users] Mapserver returns part of an image and then crashes From: szeker...@gmail.com To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia nelson...@hotmail.com Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Grid Layer : different intervals from X and Y axis
Hi Eduardo, Not currently from what I can see. The interval values given in the map file applies for both axis. Could you open an enhancement bug on it, and I will look into adding that. bes Regards, Eduardo Kanegae wrote: Hi, I´m currently using grid object for composing grid layers but I´d like to draw X and Y axis using different interval values. Example: 1 deg for Y and 1.5 deg for X. Is there any trick to do that using grid layer? best -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureINFO errors in Mapserver notoccurringin Geoserver.
Steve here is the debug.. when GetFeatureINFO is requested.. [Fri Apr 24 10:37:59 2009].667000 msConnPoolRequest(AEI_AIR_QUALITY_AOI_O,server,port:5152,sde,username,password) - got 01A63FE8 [Fri Apr 24 10:37:59 2009].667000 msSDELayerOpen(): Layer AEI_AIR_QUALITY_AOI_O did not have a specified version. [Fri Apr 24 10:37:59 2009].667000 msSDEGetLayerInfo(): Looking for layer by WHSE_ENVIRONMENTAL_MONITORING.AEI_AIR_QUALITY_AOI_SVW, GEOMETRY, server,port:5152,sde,username,password [Fri Apr 24 10:37:59 2009].667000 msSDEGetLayerId(): Matched layer to id 1826. [Fri Apr 24 10:37:59 2009].667000 Getting all column information in msSDELayerInitItemInfo [Fri Apr 24 10:37:59 2009].667000 msSDELayerGetRowIDColumn(): Column was manually set to OBJECTID [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for geometry [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for objectid [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for air_quality_aoi_id [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for aoi_name [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for status [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for feature_code [Fri Apr 24 10:37:59 2009].667000 msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) [Fri Apr 24 10:37:59 2009].667000 mapserv request processing time (msLoadMap not incl.): 0.016s -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver.-tp2686390p2693869.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Automatically Clearing Old Map Images
I'm attempting to set up a web page based on the old 'Itasca' demo, but I will probably be hosting it with very limited web space. Has anybody come up with some means or method to automatically clear out old map images once they are no longer needed? In just a couple of days of testing the application, I managed to generate over 1500 maps for a total of about 10Mb. Help! -- View this message in context: http://n2.nabble.com/Automatically-Clearing-Old-Map-Images-tp2699631p2699631.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users