[Mapserver-users] Mapscript doesn't write map file in expected order!

Vladimir Guzmán bigfoot at main-task.com
Thu Feb 26 20:45:24 EST 2004


Maybe you should write the mapfile with your own php's function. No?

Vladimir Ilich Guzmán R.
------------------------
http://www.maintask.com



Xiaoyuan Geng wrote:

>Hello
>
>I am using PHP Mapscript to add more METADATA contents to a map file.
>It seems that Mapscript resorts the contents of METADATA members before
>I same the map file. Also mapscript adds tab instead of one space
>between the name and the content. Any way to fix this problem? Below is
>the example:
>
>Expected order:
>                $myMap->setMetaData("wms_title", "GDAS Geolinking
>Map");
>	$myMap->setMetaData("wfs_title", "GDAS Geolinking Map");
>	$myMap->setMetaData( "wms_onlineresource",$strWMS_WFS );
>	$myMap->setMetaData( "wfs_onlineresource",$strWMS_WFS
>);	
>	$myMap->setMetaData( "wms_srs",SERVER_PROJECTIONS );
>	$myMap->setMetaData( "wfs_srs",SERVER_PROJECTIONS );
>	$myMap->setMetaData( "wms_feature_info_mime_type","text/html"
>);
>
>Mapscript output:
>
>        "wms_srs"	"EPSG:4269 EPSG:42304 EPSG:42101 EPSG:4326
>EPSG:26907"
>        "wms_onlineresource"	"myserver/cgi-bin/mapserv?map=map file
>name"
>        "wms_title"	"GDAS Geolinking Map"
>        "wms_feature_info_mime_type"	"text/html"
>        "wfs_srs"	"EPSG:4269 EPSG:42304 EPSG:42101 EPSG:4326
>EPSG:26907"
>        "wfs_title"	"AAFC GDAS Geolinking Map"
>        "wfs_onlineresource"	"myserver/cgi-bin/mapserv?map=map file
>name"
>
>Thank you very much!
>
>Shawn
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>  
>




More information about the mapserver-users mailing list