[mapserver-users] text size from field but with an expression
Hi, I have a label with the size from a field of attributes. But I need to change this size adding always a costant factor. I need someting like: LABEL ... SIZE expression([field1]+10) ANGLE [field2] END This seem don't allowed. Is this right ? Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] text size from field but with an expression
On Thu, Oct 4, 2012 at 10:04 AM, Andrea Peri aperi2...@gmail.com wrote: Hi, I have a label with the size from a field of attributes. But I need to change this size adding always a costant factor. I need someting like: LABEL ... SIZE expression([field1]+10) ANGLE [field2] END This seem don't allowed. Is this right ? correct. if you are using a db backend, you can let the db do this for you: DATA the_geom from (select id,the_geom,field1+10 as field1, field2 from mytable) as foo using unique id using srid=xxx Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ 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] text size from field but with an expression
ok, thx. Infact I'm using spatialite db. So I hope to have success to support this sintax. Now I'm try. Thx. 2012/10/4 thomas bonfort thomas.bonf...@gmail.com On Thu, Oct 4, 2012 at 10:04 AM, Andrea Peri aperi2...@gmail.com wrote: Hi, I have a label with the size from a field of attributes. But I need to change this size adding always a costant factor. I need someting like: LABEL ... SIZE expression([field1]+10) ANGLE [field2] END This seem don't allowed. Is this right ? correct. if you are using a db backend, you can let the db do this for you: DATA the_geom from (select id,the_geom,field1+10 as field1, field2 from mytable) as foo using unique id using srid=xxx Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map file keyword dictionary
I've updated the vim syntax file for 6.2, which has no omissions as far as I can tell. You can extract the keywords from there: https://github.com/mapserver/docs/blob/dea01e46bf357d46e9cdc83c257c955c4bf7617e/_static/map.vim -- thomas On Wed, Oct 3, 2012 at 8:31 PM, Mike Saunt mikesa...@gmail.com wrote: Hi All Can anyone point me to a list of ALL keywords used within a mapfile? Looking at using this within a Rich Text Editor to color and identify. Much apprecaited Mike ___ 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] Map file keyword dictionary
Thanks Thomas On Oct 4, 2012 1:18 PM, thomas bonfort thomas.bonf...@gmail.com wrote: I've updated the vim syntax file for 6.2, which has no omissions as far as I can tell. You can extract the keywords from there: https://github.com/mapserver/docs/blob/dea01e46bf357d46e9cdc83c257c955c4bf7617e/_static/map.vim -- thomas On Wed, Oct 3, 2012 at 8:31 PM, Mike Saunt mikesa...@gmail.com wrote: Hi All Can anyone point me to a list of ALL keywords used within a mapfile? Looking at using this within a Rich Text Editor to color and identify. Much apprecaited Mike ___ 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 and shapefile
Trying using shapefile as base layer I didn't find where to put my shapefile and to let them seen by MapServer. The examples say me to set the map file correctly but not where to save the shp files how to say to MapServer where thay are. Is there a directive in the main map file where to set the location of shp files like I set the log file path and etc. TIA Fabio Da: Cristiano Sumariva sumar...@gmail.com A: Fabio Brolese fabiobrolese-fo...@yahoo.it Inviato: Martedì 2 Ottobre 2012 13:14 Oggetto: Re: [mapserver-users] MapServer and shapefile If your map vector is not huge, and processing time is not a problem - something greater then a few seconds for a tile - you can use a WMS layer as base. Just add isBaseLayer true to parameter options on layer. This should be minimal to change. At my sites I did not note WMS overhead on requests. You should know that OpenLayers is greed and will issue several concurrent requests to server. Processing spikes will happen. For larger sets you maybe at the need of some cache stuff. Consider using one in a programming language you know in case you need do maintenance in source code. Or if confortable with some, create your particular simple cache maybe an option. 2012/10/2 Fabio Brolese fabiobrolese-fo...@yahoo.it Yes, sorry, I was talking about OpenLayers. I understood and is like I did with all the layers I set pointing on PostGIS. I have also a base layer set as OpenLayers.Layer.TMS that load image tiles to show the city map. What we want to do is to change the base layer to read the city map from shapfile instead of reading image tiles. Do you know if there is a way to do what we want or do I have to reconsider my structure and consider and use it as OpenLayers.Layer.WMS? Fabio Da: Rahkonen Jukka jukka.rahko...@mmmtike.fi A: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Inviato: Martedì 2 Ottobre 2012 9:05 Oggetto: Re: [mapserver-users] MapServer and shapefile Hi, Because you talk about base layer I think that you are perhaps going to show your map in OpenLayers. If that is the case then the answer is yes and this OpenLayers example shows how it can be done. http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html On the Mapserver side you must configure a WMS layer that is using shapefile as input data. http://www.mapserver.org/ogc/wms_server.html -Jukka Rahkonen- Fabio Brolese wrote: Hello everybody, after a long search on Google I'm here to ask you if it's possible to use a shapefile as base layer. Everything I found was on exporting to shapefile or drawing objects from shapefile but nothing saying that I can use it as base layer. Can anyone help me? TIA Fabio ___ 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users