Re: [mapserver-users] mapscript help
On Wed, Nov 16, 2011 at 5:12 PM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: There’s not a straight mapping of mapfile parameter syntax to mapscript syntax, especially where a mapfile parameter definition impacts multiple internal values. Try: ** ** anewmap.width = 640 anewmap.height = 480 ** ** or use the setSize() method. ** ** Steve ** ** * * ** yes thanks this is working projection = getProjfromTable(f_table_name) #return epsg number ex:4326 strproj= init=epsg:+str(projection) aproj = mapscript.projectionObj(strproj) # associer la projection a la carte amapfile.setProjection(strproj) still need help 4 web stay empty metadata and normally for class and layer ;o) regards T. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapscript help
hello i am trying to use python mapscript to generate map file and it seems to be great but some synthax is not understanding by me .:( so to set with one argument is not complex like anewmap.maxsize = 2000 it is working but for anewmap.size = 640 480 or (640,480) or 640 480 the result is SIZE -1 -1 the trouble for extent to and write projection with init: epsg=4326 ... So is the sample for that or API reference more complete for the syntax for python ? either than the mapserver guide ? regards T. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] mapscript help
There’s not a straight mapping of mapfile parameter syntax to mapscript syntax, especially where a mapfile parameter definition impacts multiple internal values. Try: anewmap.width = 640 anewmap.height = 480 or use the setSize() method. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tonton Sent: Wednesday, November 16, 2011 8:44 AM To: mapserver-users Subject: [mapserver-users] mapscript help hello i am trying to use python mapscript to generate map file and it seems to be great but some synthax is not understanding by me .:( so to set with one argument is not complex like anewmap.maxsize = 2000 it is working but for anewmap.size = 640 480 or (640,480) or 640 480 the result is SIZE -1 -1 the trouble for extent to and write projection with init: epsg=4326 ... So is the sample for that or API reference more complete for the syntax for python ? either than the mapserver guide ? regards T. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapscript help
I need help with mapscript. I have the next problem: I can not run this expression [columnacerca] = 8.5 AND [columnacerca] = 10.5) But these expressions work correctly: [columnacerca] 8.5 [columnacerca] 10.5 My sql sentence is: geom FROM ( select par_vit3.geom, par_vit3.codi as mycodi, maduracio.grau columnacerca FROM par_vit3, parcela LEFT JOIN maduracio ON parcela.7_parcela = (maduracio.parcela_id)::integer where par_vit3.codi = parcela.41_matri_darp ) as consulta using unique mycodi using SRID=23031 -- _ Alexandre Busquets Triola Servei de Sistemes d'Informació Geogràfica i Teledetecció (SIGTE) Universitat de Girona Pl. Ferrater Mora, 1 17071 Girona Tel. 972 41 80 39 Fax. 972 41 82 30 [EMAIL PROTECTED] http://www.sigte.udg.es/ _ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users