Re: [mapserver-users] mapfile for OpenStreetMap

2014-02-07 Thread thomas bonfort

 That one looks good:
 http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/mapserver/osm-google.map
That's actually generated from the github basemaps project. I would
very strongly recommend basing any serious mapfile off the basemaps
project rather than this generated one, as that one is, well,
generated and not meant to be hand-edited.

--
thomas


 Regards, Till



 Am 07.02.2014 09:39, schrieb Andrea Peri:

 Hi,


 there is some available mapfile able to render the OpenStreetMap datasets
 ?

 I found something but it is using the mapscript, and python.

 I not use the mapscript and like to found a mapfile only sample.


 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


 --
 NEWS:
 - map-it.ulm.de! Das Mitmachportal für Ulm

 - GO Mobile - jetzt WebGIS auch auf Smartphones
 - Jetzt OpenSource! SHOGun - das JavaBackend für WebGIS Anwendungen

 
 terrestris GmbH  Co. KG
 Puetzchens Chaussee 56
 53227 Bonn
 Germany

 Till Adams
 Geschaeftsfuehrung

 Tel:+49 (0)228 / 962 899-52
 Mobile: +49 (0)151 / 25394429
 Fax:+49 (0)228 / 962 899-57
 Skype:  tilladams

 ad...@terrestris.de
 http://www.terrestris.de
 Amtsgericht Bonn, HRA 6835
 

 Komplementaerin:

 terrestris Verwaltungs GmbH

 vertreten durch:
 Hinrich Paulsen, Till Adams

 ___
 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] Dual role of LAYER is confusing

2014-02-10 Thread thomas bonfort
On 10 February 2014 15:13, Rahkonen Jukka  (Tike)
jukka.rahko...@mmmtike.fi wrote:
 Hi,

 In most cases in Mapfile LAYER is defining the output of the service. 
 However, it looks like the original way to use DATA has not been flexible 
 enough to suit new sources of data and as a workaround one layer is used as 
 an input for another layer. For example if a shapefile is used as tileindex 
 it is enough to write  TILEINDEX tiger/index.shp
 However, if one wants to take tileindex from Spatialite it must be done by 
 defining a layer first

 LAYER  # The tileindex layer
 NAME spatialite_tileindex
 STATUS OFF
 TYPE POLYGON
 CONNECTIONTYPE OGR
 CONNECTION /orthophotoindex.sqlite
 DATA select * from orthophotos where year=2013
PROJECTION
   init=epsg:3067
 END
 END # End of tileindex layer
 LAYER # The orthophoto layer
 NAME orthophotos_2013 
 STATUS ON
 TILEINDEX spatialite_tileindex  # Name of the tileindex layer
 

 I guarantee that many if not all new Mapserver users consider this as tricky. 
 However, situation can be even more tricky. The new RFC about 
 heatmaps/density maps gives an example 
 http://mapserver.org/development/rfc/ms-rfc-108.html.
 The source data for the heatmap layer is configured as

 LAYER
 NAME heatmap
 TYPE raster
 CONNECTIONTYPE kerneldensity
 CONNECTION points

 and here points is referring to a layer.  It the points layer is using 
 ogrtileindex where tileindex is not a shapefile but comes from a database we 
 will need three layers for publishing the heatmap:
 - ogrtileindex layer
 - points layer
 - heatmap layer

 This is doable but confusing. What is also confusing is that I have not yet 
 found a way to hide those technical layers from WMS.

Supposing you had that use-case given your data files, how would you
specify it in a more readable way if you didn't have this syntax?


 Until now after making a web search during a coffee break, it is naturally 
 done with a layer level metadata item ows_enable_request !* as described 
 in http://mapserver.org/de/development/rfc/ms-rfc-67.html.  Great. But still 
 I feel the dual role of layer a bit confusing.  At least in the tileindex 
 case I wish I could simply write just one line even if with somehow 
 complicated syntax. Perhaps it could be something like

 TILEINDEX SELECT * from orthophotos where year=2013 USING OGR CONNECTION 
 /orthophotoindex.sqlite

I'd argue that referencing an existing layer is less confusing. In any
case it is more powerfull, more flexible and more maintainable in our
codebase.

Interesting points nevertheless

best regards,
thomas


 -Jukka Rahkonen-




 ___
 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] runtime variable substitution in layer class expression

2014-02-11 Thread thomas bonfort
try something like:

layer
 validation
  YEAR ^[12][09][0-9][0-9]$
 end
 class
  expression ([%YEAR%]100)

--
thomas

On 11 February 2014 20:15, gorank kirandzis...@gmail.com wrote:
 Is there is somebody to help me?



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/runtime-variable-substitution-in-layer-class-expression-tp5101318p5103222.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-02-14 Thread thomas bonfort
I believe this was fixed in https://github.com/mapserver/mapserver/pull/4403
https://github.com/mapserver/mapserver/pull/4778 might also be relevant.

On 14 February 2014 10:24, Dejan Gambin dejan.gam...@coin.hr wrote:
 I've upgraded to 6.4 and seems fine now


 On 13. vel. 2014., at 16:09, Rahkonen Jukka (Tike) wrote:

 Hi,

 Just to eliminate one possibility, is the result the same if you use one DEM 
 raster as a source instead of tileindex?

 -Jukka Rahkonen-

 Dejan Gambin wrote:

 Since I didn't solve this yet, do you think it could be a bug and/or should 
 I try
 with some newer MapServer version? I am currently using 6.0.3

 Thx

 Dejan Gambin

 On 22. sij. 2014., at 10:35, Dejan Gambin wrote:

 Sorry for being late...

 So, I have tested it all with browser of course. Here are some working and
 non-working requests:

 Mapfile part:

 PROJECTION
   init=epsg:4326
 END
 METADATA
   wms_srs   EPSG:4326
   wms_title  aster_dem
   gml_include_items value_0
   gml_value_0_alias Nadmorska_visina
 END
 TILEINDEX ../aster/aster_index  #original raster in 4326


 Working GetMap request in 900913:

 http://mydomain.com/cgi-
 bin/mywms/?SERVICE=WMSVERSION=1.1.1REQUEST=G

 etMapLAYERS=aster_dem_infoSTYLES=SRS=EPSG:900913FORMAT=image
 /pngW

 IDTH=400HEIGHT=300BBOX=1496080.301904,5576310.226428,1593919.698
 096,
 5649689.773572

 Non-working GetFeatureInfo request in 900913:

 http://mydomain.com/cgi-
 bin/mywms/?SERVICE=WMSVERSION=1.1.1REQUEST=G

 etFeatureInfoLAYERS=aster_dem_infoSTYLES=SRS=EPSG:900913FORMAT
 =ima

 ge/pngWIDTH=400HEIGHT=300BBOX=1496080.301904,5576310.226428,1
 593919

 .698096,5649689.773572QUERY_LAYERS=aster_dem_infoINFO_FORMAT=g
 mlX=2
 00Y=100

 Working GetMap request in 4326:

 http://mydomain.com/cgi-
 bin/mywms/?SERVICE=WMSVERSION=1.1.1REQUEST=G

 etMapLAYERS=aster_dem_infoSTYLES=SRS=EPSG:4326FORMAT=image/p
 ngWID
 TH=400HEIGHT=300BBOX=13.439518,44.712096,14.318424,45.178647

 Working GetFeatureInfo request in 4326:

 http://mydomain.com/cgi-
 bin/mywms/?SERVICE=WMSVERSION=1.1.1REQUEST=G

 etFeatureInfoLAYERS=aster_dem_infoSTYLES=SRS=EPSG:4326FORMAT=i
 mage

 /pngWIDTH=400HEIGHT=300BBOX=13.439518,44.712096,14.318424,45.17
 8647
 QUERY_LAYERS=aster_dem_infoINFO_FORMAT=gmlX=200Y=100






 On 17. sij. 2014., at 13:52, Rahkonen Jukka (Tike) wrote:

 Hi,

 Please show us the complete GetFeatureInfo requests for both cases. Server
 urls are not interesting but all the WMS parameters. Have you already tried 
 to
 send them from browser? Testing with OpenLayers is waste of time because you
 can't control what really happens but with hand written requests you are the
 master.

 -Jukka Rahkonen-


 Lars Lingner wrote:

 On 17.01.2014 11:10, Dejan Gambin wrote:
 What is the mywms? MapServer binary, wrapper script, ...?
 wrapper script. Something like:

 #! /bin/sh MS_MAPFILE=/path_to_my_map_file export MS_MAPFILE
 /usr/lib/cgi-bin/mapserv6


 AFAIK nothing wrong here.


 Did you check the actual requests? Does the bbox parameter fit to
 the srs? Could you compare a working GetFeatureInfo request in
 900913 with a failing one in 4326?
 Yes, bbox parameter fits to srs in both cases. So, if I put
 bbox/srs params in 426 everything works, if I put them in 900913
 then error happens

 Does other maps work with 900913?

 I would check which pro4 epsg file mapserver is using, check if
 there is a definition for 90013 and if it looks like

 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
 ++y_0=0
 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs

 On the other hand, if GetMap ist working fine, projection definition
 should be fine too. Just thinking out loud...



 Raise the debug level to 3 at map level and layer level. You can
 let MapServer write its own error logfile, so your apache log
 stays clean.

 Could you find anything in the MapServer log file?

 Here I would identify a working 4326 GFI request and compare the
 corresponding log with a 900913 request. There should be a difference.


 Best wishes,

 Lars

 ___
 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

 ___
 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

Re: [mapserver-users] layer mask without clipping

2014-02-25 Thread thomas bonfort
Lars,
I don't understand what you're trying to obtain. Can you clarify
and/or post a couple screenshots?

--
thomas

On 25 February 2014 09:58, Lars Lingner gislars+l...@googlemail.com wrote:
 Hello,

 I really like the MapServer layer mask feature. Is there a way that
 MapServer doesn't clip the mask, instead just setting a opacitiy / color
 value?

 I'm getting the result by rendering two passes with mask and inverted
 mask. The latter is using a white opacity layer on top. Afterwards I can
 stack the images together.
 The is working well, as long as there are no labels rendered along the
 mask boundary. If they are, then they are not clipped.

 Best wishes,

 Lars
 ___
 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] WMS image display

2014-02-25 Thread thomas bonfort
Do your tiffs have overviews? Changing the image size affects the map
scale and thus potentially which overview is being used...

--
thomas

On 25 February 2014 16:52, Dash jim...@co.clackamas.or.us wrote:
 Thanks for the response.  The images are in a tif format and we used GDAL to
 create the tiling index (gdaltindex command).  We ran the gdalinfo command
 against the imagery and nothing out of the ordinary stands out.  The size of
 the tile that is giving us trouble is 5471, 5457.  The tile to the west has
 a size of 5429, 5400 and the tile to the east has a size of 5489, 5456.
 Could this cause an issue?  The metadata and  image structure metadata is
 all the same.

 We are thinking of manipulating the shapefile index that gdaltindex created.
 Possibly changing the location attribute to access a different tile for
 testing.

 I'm not really sure what else to try.

 Thanks.




 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WMS-image-display-tp5105622p5105870.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Upgrading to 6.4.x

2014-02-26 Thread thomas bonfort
How are you drawing those lines? Using a circle symbol as was
required in pre-5 version is not supported anymore.

--
thomas

On 25 February 2014 22:08, Basques, Bob (CI-StPaul)
bob.basq...@ci.stpaul.mn.us wrote:
 All,



 Has anyone experienced a problem with MapServer not drawing short segments
 correct in the newer versions?  I have a V5.4 that is outputting segmented
 lines (continuous but separate line segments) just fine.  But the V6.4
 version is not drawing small (visually) line segments, and leaving gaps in
 the line.  The problem seems to be related to some sort of pixel threshold,
 if I zoom in, the lines become visually longer, and they display correctly.



 Am I explaining this correctly?



 Thanks



 Bobb








 ___
 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] Force label rendering without overlapping

2014-03-04 Thread thomas bonfort
we don't render an offseted label if its leader line would intersect
an existing label or an existing leader line. Try removing you label
BUFFER so that there is more room for the leader lines to be drawn
without intersecting the existing label's bbox.

--
thomas

On 4 March 2014 17:09, aborruso aborr...@gmail.com wrote:
 Hi all,
 I would like to render all the label of a polygon. I know that the only
 solution I have for my geometries is to use LEADER.

 But I have some problems. If I do not set FORCE TRUE, the labels overlap
 each other and I have no LEADER line. In the below image two results I have
 with Mapserver, and a sketch of my goal.

 Is there a way to have a greater number of labels and leader lines?

 Below my layer setting.

 I'm using MapServer version 6.4.1 with GDAL 1.10.1, released 2013/08/26.

 Thank you very much,

 Andrea

 http://osgeo-org.1560.x6.nabble.com/file/n5107466/2014-03-04_16h57_04.png

 LAYER
 CLASSITEM Status
 CONNECTION mappa_di_base.shp
 CONNECTIONTYPE OGR
 FILTER ('[Status]' eq '3' OR '[Status]' eq '2' OR '[Status]' eq '1')
 LABELITEM ID
 METADATA
   coordsys_name   Popular Visualisation CRS / Mercator (deprecated)
 END # METADATA
 NAME geo_32633
 STATUS ON
 TEMPLATE query
 TILEITEM location
 TYPE POLYGON
 UNITS METERS
 CLASS
   NAME Note
   LABEL
 ANTIALIAS TRUE
 FONT arial
 SIZE 10
 BUFFER 10
 OFFSET 0 0
 POSITION AUTO
 SHADOWCOLOR 255 255 255
 SHADOWSIZE 0 0
 TYPE TRUETYPE
   END # LABEL
   LEADER
 MAXDISTANCE 5000
 STYLE
   COLOR 0 255 255
   WIDTH 2
 END # STYLE
   END # LEADER
   STYLE
 ANTIALIAS TRUE
 BACKGROUNDCOLOR 255 0 128
 COLOR 255 0 128
 OUTLINECOLOR 50 50 50
 SIZE 0
 WIDTH 2
   END # STYLE
   TEMPLATE query
   TITLE 
 END # CLASS
   END # LAYER



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Force-label-rendering-without-overlapping-tp5107466.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Need help with RFC109: Refactor Runtime Substitution

2014-03-08 Thread Thomas Bonfort
Andrea,
it's a bug, I've just pushed a fix.

thanks for reporting!

--
thomas

On 08/03/2014 16:08, Andrea Peri wrote:
 Hi, I'm try to check if the new RFC109 is compatible with my mapfile.
 
 I try a fast check and seem that my mapfile dont work with RFC109.
 But reading the documentation I don't understand why it don't work.
 
 The only substitutions I have are in the CLASS section:
 (the db is a spatialite accessed by OGR)
 
   LAYER
 CONNECTIONTYPE OGR
 CONNECTION /path-to-spatialite-db/db.sqlite
 DATA TABLE1
 
 VALIDATION
   'code' '.*'
   'default_code' ''
 END
.
 CLASSITEM THE_CODE
 CLASS
   NAME '...'
   EXPRESSION ('[the_code]' ne '%code%')

 CLASS
   NAME '.'
   EXPRESSION ('[the_code]' eq '%code%')
 
 I read that the only incompatible should be inside the metadata section,
 AFAIK this is not  the case.
 So I guess the substitution in the CLASS section should work .
 But my test don't work.
 
 I don't understand if this is a bug or a my mis-understaind of the new
 RFC109.
 
 Thx,
 
 
 
 ___
 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] Complex Multi Label/Symbol Symbology

2014-03-11 Thread thomas bonfort
Jorg,
It is not available as it relies on a proprietary (esri) font (that
you can however find on the internet, but we are not licensed to use
it in the autotests). There's nothing complicated about it, and it is
very similar to
https://github.com/mapserver/msautotest/blob/branch-6-2/renderers/multilabel.map
except there are many more LABEL blocks, each of which has additional
EXPRESSION lines to use the correct symbol depending on wind speed,
etc...

--
thomas

On 11 March 2014 16:46, Jörg Thomsen j...@mapmedia.de wrote:
 Hi,

 I found this example-image:
 http://mapserver.org/development/announce/6-2.html#complex-multi-label-symbol-symbology

 the linked mapfile seems to be the wrong one, it creates this image:
 https://github.com/mapserver/msautotest/blob/branch-6-2/renderers/expected/multilabel.png

 Can anyone tell me where I can find the mapfile, that results in the
 complex-multi-label-symbol-symbology-image?

 Regards, Jörg


 --
 ~~~
 Aufwind durch Wissen!

 Qualifizierte Open Source Schulungen bei der
 http://www.foss-akademie.de/
 ~~~


 _

 MapMedia
 Kartographie und raumbezogene Informationssysteme

 Gillweg 3, 14193 Berlin
 fon: +49 30 89 06 82-70
 fax: +49 30 89 09 53-21
 mail: j...@mapmedia.de
 net:  www.mapmedia.de
 _


 Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm
 Registergericht, Berlin - Amtsgericht Charlottenburg,
 HRB 89625, Umsatzsteuer-Identnummer: DE 813794062
 ___
 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] modify symbol size using expression

2014-03-31 Thread thomas bonfort
Travis,

short answer: no

long answer: you can do it indirectly if using a rdbms backend: select
..., myattribute+1 as myattribute from table

regards,
thomas

On 31 March 2014 16:16, Travis Kirstine traviskirst...@gmail.com wrote:
 Is it possible to change the symbol size (point feature) using a expression
 or dynamically create attributes

 For example

 LAYER
   foo = [myattribute] + 1
   ...
   STYLE
  SIZE = [foo]
   ..

 OR

 LAYER

STYLE
   SIZE = [foo] / 5


 Thanks





 ___
 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 : Problem shifting TrueType symbols on rotation

2014-04-01 Thread thomas bonfort
http://mapserver.org/mapfile/symbol.html = anchorpoint
https://github.com/mapserver/msautotest/blob/master/renderers/marker_anchorpoint.map
https://github.com/mapserver/msautotest/blob/master/renderers/expected/marker_anchorpoint.png

available from version 6.2 onwards.

--
thomas


On 1 April 2014 17:38, Dorian CONSTANT dconst...@siig.fr wrote:

 Hello everyone,

 First, excuse me for my bad English. J


 I have long identified a problem of rotation of symbols in MapServer when 
 these
 symbols come from a TrueType font and they are configured as such in the 
 SYMBOLS.SYM
 file.

 Example of symbols used in the crosswalks (the font file is attached to
 this message) :



 SYMBOL

   NAME 'voirie_signal_horiz_ponct_pass_pieton'

   TYPE TRUETYPE

   FONT siig-voirie

   ANTIALIAS true

   CHARACTER f

 END



 The corresponding layer is defined as below under MapServer :



 LAYER

  NAME  Voirie_signal_horizontale_ponct

  TYPE POINT

  STATUS DEFAULT

  Postgis

  PROCESSING CLOSE_CONNECTION=DEFER

  DATA geom from voirie.v_voirie_signal_horiz_ponct USING SRID=2154
 USING UNIQUE oid

  [QUERIABLE]

  Lambert 93

  CLASSITEM type_signal

  UNITS meters

  SIZEUNITS pixels

  MAXSCALEDENOM 1010

 CLASS

   NAME Passages piétons

 TEXT 'f'

   STYLE

 SYMBOL voirie_signal_horiz_ponct_pass_pieton

 COLOR 1 1 1

 OUTLINECOLOR 255 255 255

 SIZE 15

 ANGLE45

   END

  END

 END



 The problem is when a rotation is applied to the symbol, MapServer applies
 rotation from the lower left point of the symbol and not from the central 
 attachment
 point.



 Accordingly, would you know of a specific configuration to be done under
 MapServer to ensure that it uses the hang central point symbols TRUETYPE
 as pivot point and not the lower left point of the symbol ?



 Thank you in advance.



 --

 *Dorian CONSTANT* – Responsable SIG
 *SiiG* (*S*yndicat *I*ntercommunal d’*I*nformation *G*éographique)

 1005 route de Vénéjan – 30200 Saint-Nazaire

 *Tél*: 04.66.90.58.00 – *Fax*: 04.66.82.98.35 – *Mail*: *dconst...@siig.fr
 dconst...@siig.fr* – *Web*: http://www.siig.fr

 [image: Description : Description : Description : logo_siig2]

 *P* Avant d'imprimer, ayez une pensée pour notre environnement

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

inline: image029.jpg___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Can't get a raster to display... projection issue?

2014-04-01 Thread thomas bonfort
typo: epsg:3857 instead of 3587?

--
thomas

On 1 April 2014 23:53, Peter Gustafson pgustaf...@gmail.com wrote:
 Hi all, I'm brand new to mapserver.
 (The itasca workshop map works)

 I can't get a raster to display. I've tried various extents and projections
 but suspect these are the cause. The mapfile is as below (IMAGEPATH and
 IMAGEURL are changed -- working with itasca) as well as info from gdal.
 Your help would be greatly appreciated!

 Thanks,
 Pete

 MAP
 NAME MyMap
 STATUS ON
 CONFIG MS_ERRORFILE ms_error.txt
 DEBUG 5
 STATUS ON
 SIZE 1000 600
 EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
 UNITS METERS
 SHAPEPATH data
 IMAGECOLOR 255 255 255

 PROJECTION
 init=epsg:3587
 END

 WEB
 IMAGEPATH /var/www/localhost/htdocs/tmp/
 IMAGEURL tmp/
 END

 LAYER
 NAME wac-48_1_4.tif
 DATA wac-48_1_4.tif
 TYPE RASTER
 TRANSFORM TRUE
 STATUS ON
 UNITS DD
 PROJECTION
 init=epsg:4326
 END
 END
 END

 Driver: GTiff/GeoTIFF
 Files: data/wac-48_1_4.tif
 Size is 512, 512
 Coordinate System is:
 GEOGCS[WGS 84,
 DATUM[WGS_1984,
 SPHEROID[WGS 84,6378137,298.257223563,
 AUTHORITY[EPSG,7030]],
 AUTHORITY[EPSG,6326]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4326]]
 Origin = (-95.777952659785427,49.0010308)
 Pixel Size = (0.019025026914202,-0.019025026914202)
 Metadata:
   AREA_OR_POINT=Area
 Image Structure Metadata:
   COMPRESSION=LZW
   INTERLEAVE=PIXEL
 Corner Coordinates:
 Upper Left  ( -95.7779527,  49.0010310) ( 95d46'40.63W, 49d 0' 3.71N)
 Lower Left  ( -95.7779527,  39.2602172) ( 95d46'40.63W, 39d15'36.78N)
 Upper Right ( -86.0371389,  49.0010310) ( 86d 2'13.70W, 49d 0' 3.71N)
 Lower Right ( -86.0371389,  39.2602172) ( 86d 2'13.70W, 39d15'36.78N)
 Center  ( -90.9075458,  44.1306241) ( 90d54'27.16W, 44d 7'50.25N)
 Band 1 Block=512x5 Type=Byte, ColorInterp=Red
 Band 2 Block=512x5 Type=Byte, ColorInterp=Green
 Band 3 Block=512x5 Type=Byte, ColorInterp=Blue



 ___
 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] mapcache wmts offset

2014-04-04 Thread thomas bonfort
Hi,
mapcache by default aligns its tiles starting from the lower-left
corner whereas WMTS expects them to start from the upper-left. While
the generated capabilities doc correctly identifies this behavior,
most WMTS clients will not support this if they don't do the
capabilities parsing themselves. You have two workarounds:
- create a grid where maxY is constant throughout your chosen
resolutions (the google and wgs84 grids respect this convention)
- use a recentish mapcache that supports setting the grid origin
activated with grid origin=top-left.

In both cases, you will have to fully recompute your cache as the
addressing of the tiles will have been changed.

cheers,
thomas

On 4 April 2014 08:50, Ziegler Stefan stefan.zieg...@bd.so.ch wrote:
 Hi

 I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. 
 It seems that I have exactly the same probleme as described here (using the 
 same parameters/configuration):

 http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.html

 Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 
 3 [2]. I do not notice the offset accessing the wmts with QGIS. Any ideas 
 what can be wrong configured etc?

 [1]: http://www.catais.org/somap3/
 [2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html

 Zooming out will show a zoom level with an offset.

 Regards
 Stefan

 Freundliche Grüsse
 Stefan Ziegler
 Kantonsgeometer

 Amt für Geoinformation
 Amtliche Vermessung
 Rötistrasse 4
 4500 Solothurn

 Telefon +41 32 627 75 96
 Telefax +41 32 627 75 98
 stefan.zieg...@bd.so.ch
 http://www.so.ch


 ___
 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] layer grid intersection points symbol

2014-04-24 Thread thomas bonfort
Mario,
To my knowledge this isn't possible. I or another dev would be
available for contracting if this is something you would want to fund.

Best regards,
Thomas

On 24 April 2014 17:16, Mario Jurcevic ma...@geosar.ch wrote:
 Hi,
 any idea of how to represent  in a GRID layer only the intersecting points
 of grid lines repeated on the whole extent.

   |
---O---
   |


 Thanks
 ___
 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] mapcache check cache before testing source data?

2014-04-24 Thread thomas bonfort
Jerry,
I'm not sure I follow your issue. Mapcache itself won't hit your
source data, it will only be accessed through by the configured wms
server if a tile was not found in the local cache. The seeder will
only hit the wms if a given tile was not present in the cache (or if
you have passed --force on the command line)

--
thomas

On 23 April 2014 21:33, jrumbolt cankor...@gmail.com wrote:
 Hi,

 I have my source datasets on Amazon S3 and mounted with s3fs. There is a
 fair amount of latency in any check/read in the mounted s3 bucket to I use
 the mapcache_seed to fill a cache on the local system in a one time
 operation.

 I'm finding that mapcache seems to want to check the source data before
 hitting the cache and it's slow, high latency, even though the cache is
 local and ready.

 Is there some option that I can set that will have mapcache get from the
 cache first before trying to do anything with the source data?

 Regards,

 Jerry



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] layer grid intersection points symbol

2014-04-24 Thread thomas bonfort
(back on list)
This might work for orthogonal and even grids, but would fail when
using a projection that does not enforce this (i.e. with arcs instead
of straight lines)

--
thomas

On 24 April 2014 20:32, Basques, Bob (CI-StPaul)
bob.basq...@ci.stpaul.mn.us wrote:
 All,

 I wonder if you could fake it by using a dashed line with the appropriate 
 spacing.   Would end up as a cross tic instead of a point though.

 Bobb



 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort
 Sent: Thursday, April 24, 2014 1:30 PM
 To: Mario Jurcevic
 Cc: MapserverList OSGEO
 Subject: Re: [mapserver-users] layer grid intersection points symbol

 Mario,
 To my knowledge this isn't possible. I or another dev would be available for 
 contracting if this is something you would want to fund.

 Best regards,
 Thomas

 On 24 April 2014 17:16, Mario Jurcevic ma...@geosar.ch wrote:
 Hi,
 any idea of how to represent  in a GRID layer only the intersecting
 points of grid lines repeated on the whole extent.

   |
---O---
   |


 Thanks
 ___
 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


Re: [mapserver-users] mapcache check cache before testing source data?

2014-04-24 Thread thomas bonfort
Jerry,
mapcache has no knowledge of where there's data or not. If it has the
requested tile in its cache it will serve it, otherwise it will ask
the wms to render it, then cache it, then serve it. Wether the wms hit
actual data or not is not mapcache's problem.

--
thomas

On 24 April 2014 21:58, jrumbolt cankor...@gmail.com wrote:
 Thomas,

 Hmmm... that means the for some reason mapcache is not using my cache. As a
 test if, if I seed the cache and then point the map to some nonexisting data
 then as long as the requests are of an area that I seeded then it should
 still work, correct?

 Regards,

 Jerry



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792p5136981.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer Errors in APACHE logs.

2014-04-30 Thread thomas bonfort
http://mapserver.org/optimization/debugging.html

if you set the error file to stderr then the logs will go to the
apache error log, as others have pointed out.

--
thomas

On 29 April 2014 20:55, Basques, Bob (CI-StPaul)
bob.basq...@ci.stpaul.mn.us wrote:
 All,



 Has anyone done any work with capturing MapServer errors in APACHE?
 Specifically I want to be able to tell the difference between a MapServer
 mis-config (textual error page) and a successful image response.   The idea
 is to somehow log those textual message responses in an automated way
 through Apache.



 I’m pretty sure I could make my own custom logfile for MapServer (CGI)
 calls, but not so sure about textual response vs raster response filters, at
 least from the APACHE point of view . . ..  Is a MapServer Text based error
 page considered for inclusion in the Apache error log or??



 Thanks.



 Bobb






 ___
 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] MapCache and GetLegendGraphic

2014-05-07 Thread thomas bonfort
LegendGraphic is not supported. You can however setup a forwarding
rule so that those requests get sent to an upstream WMS server.

--
thomas

On 6 May 2014 22:04,  steve.tout...@inspq.qc.ca wrote:

 Is it possible to make a getLegendGraphic Request via MapCache?
 I Tried but can't make it work

 Thanks
 Steve

 ___
 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] Rendering Maperative Tiles via UMN Mapserver with mod-mapcache

2014-05-10 Thread thomas bonfort
You've got something wrong with your source entry. Does the
http://mapserver/osmmap url have a rewrite defined to append a map=
parameter or a MS_MAPFILE envirronment variable? if not, you should at
least add a map/path/to/mapfile.map/map to the source params (at
the same level as LAYERS)

--
thomas

On 9 May 2014 11:54, tiefengrad° GIS Consulting m...@tiefengrad.de wrote:
 hi group,

 i try to serve maperitive osm tiles via umn. I use ms4w 3.0.4 with
 apache-mapserver 2.2.21 und mod-mapcache/0.5-dev. The attached
 osm_mapcache.xml works fine (apache start/stop), but no tiles are rendered.

 Apache error log: tileset tiles:
 unknown error (another thread/process failed to create the tile I was
 waiting for)
 wms request for tileset tiles returned an unsupported
 format:\nHTML\nHEADTITLEMapServer Message/TITLE/HEAD\n!--
 MapServer version 6.1-dev (MS4W 3.0.4-dev) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE
 SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
 SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
 SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --\nBODY
 BGCOLOR=#FF\nmsCGILoadMap(): Web application error. CGI variable
 quot;mapquot; is not set.\n/BODY/HTML

 Browser:
 http://mapserver/osmmap?SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities

 WMT_MS_Capabilities version=1.1.1ServiceNameOGC:WMS/NameTitleno
 title set, add some in metadata/TitleOnlineResource
 xlink:href=http://mapserver/osmmap?//ServiceCapabilityRequestGetCa
 pabilitiesFormatapplication/vnd.ogc.wms_xml/FormatDCPTypeHTTPGet
 OnlineResource
 xlink:href=http://mapserver/osmmap?//Get/HTTP/DCPType/GetCapabilit
 iesGetMapFormatimage/png/FormatFormatimage/jpeg/FormatDCPTypeH
 TTPGetOnlineResource
 xlink:href=http://mapserver/osmmap?//Get/HTTP/DCPType/GetMapGetF
 eatureInfoFormattext/plain/FormatFormatapplication/vnd.ogc.gml/Forma
 tDCPTypeHTTPGetOnlineResource
 xlink:href=http://mapserver/osmmap?//Get/HTTP/DCPType/GetFeatureIn
 fo/RequestExceptionsFormattext/plain/Format/ExceptionsVendorSpec
 ificCapabilitiesTileSetSRSEPSG:4326/SRSBoundingBox SRS=EPSG:4326
 minx=-180.00 miny=-90.00 maxx=180.00
 maxy=90.00/Resolutions0.70312500 0.35156250
 0.17578125 0.087890625000 0.043945312500
 0.021972656250 0.010986328125 0.0054931640625000
 0.0027465820312500 0.0013732910156250 0.0006866455078125
 0.00034332275390625000 0.00017166137695312500 0.8583068847656250
 0.4291534423828120 0.2145767211914060 0.1072883605957030
 0.0536441802978516
 /ResolutionsWidth256/WidthHeight256/HeightFormatimage/png/Forma
 tLayerstiles/LayersStyles//TileSet/VendorSpecificCapabilitiesLay
 erNamerootlayer/NameTitleno title set, add some in
 metadata/TitleSRSEPSG:900913/SRSSRSEPSG:4326/SRSSRSEPSG:3857/SR
 SLayer cascaded=1 queryable=0Nametiles/NameLatLonBoundingBox
 minx=-180.00 miny=-90.00 maxx=180.00
 maxy=90.00/BoundingBox SRS=EPSG:4326 minx=-180.00
 miny=-90.00 maxx=180.00
 maxy=90.00/SRSEPSG:4326/SRS/Layer/Layer/Capability/WMT_MS_
 Capabilities

 do i need to have to define a grid or the tile-template
 templated:/geodaten/osm/tiles/{z}/{x}/{y}.png/template in the attached
 osm_mapcache.xml is wrong? I do not know howto build a suitable mapfile for
 the maparative tiles.

 thanx a lot for any ideas...

 best regards

 andreas


 --
 Andreas Borgardt
 m...@tiefengrad.de
 www.tiefengrad.de
 --


 ___
 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] mapcache issue2

2014-07-07 Thread thomas bonfort
You're getting this message because the upstream WMS server isn't
returning an image given the getmap request that mapcache is sending
to it. The error message should contain a bit more info, or you can
manually replay the request mapcache has sent by looking into your
mapserver's access logs and copying the full request string. Possible
causes of such failure are an invalid mapserver url, an
unconfigured/wrong list of LAYERS=, an unsupported SRS, etc...

regards,
thomas

On 7 July 2014 01:26, Андрей Андреевич treasurehunt...@mail.ru wrote:
 Hello. I'm trying to setup mapserver with mapcache to getting local set of
 tiles(i'm use simple set of png files - map file doesn't required, right?)
 available from here C:/test/wgs84 (On my PC), but didn't get success. I've
 read hundred pages of manuals, tutorials, forums etc, but didn't found
 anything usefull. Will you help me?
 I'm using Windows 7 x64. I was configure apache and mapcache, as has been
 written in manual mapserver.org/mapcache/install.html#windows-instructions :

 1.LoadModule mapcache_module C:/ms4w/Apache/cgi-bin/mod_mapcache.dll
 2.
 IfModule mapcache_module
 Directory C:/ms4w/apps/mapcache/
 Order Allow,Deny
 Allow from all
 /Directory
 MapCacheAlias /mapcache C:/ms4w/apps/mapcache/mapcache.xml
 /IfModule

 identity of successful configure is:
 1.in error.log
 [Fri Jul 04 16:38:57 2014] [notice] Apache/2.2.21 (Win32)
 mod-mapcache/0.5-dev configured -- resuming normal operations

 configuration of mapcache is not big (attached), and main point, is it
 configuration file correct?(I'm worry about http url entry)
 Seems everything are ready to start send request to get desired tiles from
 my local storage(through mapserver(macache)), right?
 I was sent request like a
 http://127.0.0.1/mapcache/wmts?service=WMTSversion=1.0.0request=gettilelayer=teststyle=defaulttileMatrixSet=testgridtileMatrix=0TileRow=0TileCol=0format=image/png
 and get error wms request for tileset test returned an unsupported
 format:. Why wms(not wmts, i was sent wmts request) was answered to me? and
 what is specifically wrong?
 I was tried to get more information about error, end tried to sent
 getCapabilities request like a :
 http://127.0.0.1/mapcache/wmts?service=WMTSrequest=getcapabilitiesversion=1.0.0
 and I was get xml file(attached wmts.xml). It's looks like correct, right?
 Finaly, i was not found answers to my questions, and tried to get source of
 mapcache. I was tried to build it with cmake 2.8.10.2 + msvc 2010

 Cmake was configure a solution correctly, but msvc 2010 didn't build it.
 I'm attaching screenshots with cmake successful configure log and visual
 studio error log.

 What I'm doing wrong? I'm don't understand it. Can you help me please?


 ___
 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 set a NOT IN clause in new expression class clause

2014-08-01 Thread thomas bonfort
not tested, but I suspect
EXPRESSION ([roadtype] NOT IN motorway,trunk)
should work
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [mapserver-dev] Multiline string error

2014-08-14 Thread thomas bonfort
Ian,
Could you open a github issue for this one, and include a minimal
mapfile that would allow me to reproduce the issue locally.

thanks,
thomas

On 14 August 2014 18:09, Ian Walberg ian.walb...@airborne.aero wrote:
 Steve,

 I used points for the feature data rather than the WKT string but seem to 
 have got the same condition.

 I have added the debug line to the source to use the msPrintShape in the 
 mapprimative.c file in the msPolylineComputeLineSegments function.

 Using EXTENT -111.9 37 -110 40

 FEATURE
 POINTS
   -110.220980 38.982832
   -110.220887 38.982863
   -110.221614 38.982708
   -110.220980 38.982832
 END
 TEXT Testing
   END

 With first and last point the same I get no shape details and nothing drawn 
 on the map and no malloc error.

 FEATURE
 POINTS
   -110.220982 38.982832
   -110.220887 38.982863
   -110.221614 38.982708
   -110.220980 38.982832
 END
 TEXT Testing
   END

 With different first and last points I get the line drawn and the following 
 debug :-

 [Thu Aug 14 08:47:10 2014].339760 Shape contains 1 parts.
 [Thu Aug 14 08:47:10 2014].339777   Part 0 contains 2 points.
 [Thu Aug 14 08:47:10 2014].339790   0: (825.885602, 260.055952)
 [Thu Aug 14 08:47:10 2014].339829   1: (825.886113, 260.055952)

 Then msSmallMalloc(): Out of memory allocating -8 bytes.

 We are happy to look further but any guidance to where to look would be great.

 With mapsever 6.4.1 the line does not get drawn when the points are the same 
 but does not give a malloc error.

 Thanks

 Ian


 -Original Message-
 From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
 Sent: Thursday, August 14, 2014 7:40 AM
 To: Ian Walberg; mapserver-users@lists.osgeo.org; 
 mapserver-...@lists.osgeo.org
 Subject: RE: Multiline string error

 One quick thing to do would be to take OGR out of the mix. Just set up a 
 mapfile with the feature in question as a WKT inline feature. Something like:

 LAYER
   NAME 'badwkt'
   TYPE LINE
   STATUS DEFAULT
   FEATURE
 WKT ' MULTILINESTRING ((-110.220980 38.982832, -110.220887 38.982863, 
 -110.221614 38.982708, -110.220980 38.982832),(-110.220980 38.982832, 
 -110.220887 38.982863, -110.221614 38.982708, -110.220980 38.982832))'
   END
   CLASS
 STYLE COLOR 0 0 0 END
   END
 END

 Then try to draw... If this fails then it's a MapServer issue.

 Steve

 -Original Message-
 From: Ian Walberg [mailto:ian.walb...@airborne.aero]
 Sent: Wednesday, August 13, 2014 9:38 PM
 To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org; 
 mapserver-...@lists.osgeo.org
 Subject: RE: Multiline string error

 Steve,

 Version 6.4.1 built on the same machine with the same settings does not have 
 the issue.

 Regards

 Ian

 -Original Message-
 From: Ian Walberg
 Sent: Wednesday, August 13, 2014 3:43 PM
 To: 'Lime, Steve D (MNIT)'; 'mapserver-users@lists.osgeo.org'; 
 'mapserver-...@lists.osgeo.org'
 Subject: RE: Multiline string error

 Steve,

 We will add some debug to the OGR read later today or tomorrow.

 How do I turn on the maximum debug?

 Thanks

 Ian

 -Original Message-
 From: Ian Walberg
 Sent: Wednesday, August 13, 2014 3:20 PM
 To: 'Lime, Steve D (MNIT)'; mapserver-users@lists.osgeo.org; 
 mapserver-...@lists.osgeo.org
 Subject: RE: Multiline string error

 Steve,

 OGR connection to SQLITE DB.

 Regards

 Ian

 -Original Message-
 From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
 Sent: Wednesday, August 13, 2014 8:46 AM
 To: Ian Walberg; mapserver-users@lists.osgeo.org; 
 mapserver-...@lists.osgeo.org
 Subject: RE: Multiline string error

 How are you submitting the WKT to MapServer? Is it via MapScript, via inline 
 features or some other mechanism?

 Steve

 -Original Message-
 From: mapserver-dev-boun...@lists.osgeo.org 
 [mailto:mapserver-dev-boun...@lists.osgeo.org] On Behalf Of Ian Walberg
 Sent: Wednesday, August 13, 2014 10:01 AM
 To: mapserver-users@lists.osgeo.org; mapserver-...@lists.osgeo.org
 Subject: Re: [mapserver-dev] Multiline string error

 Devs,

 The MULTILINE string below gives the following in mapprimitive.c and then as 
 the first shape has 0 points the msSmallMalloc fails as the size passed to it 
 is -8.

 [Wed Aug 13 07:55:10 2014].618971 Shape contains 2 parts.
 [Wed Aug 13 07:55:10 2014].618987   Part 0 contains 0 points.
 [Wed Aug 13 07:55:10 2014].619001   Part 1 contains 3 points.
 [Wed Aug 13 07:55:10 2014].619016   0: (882.383078, 511.333078)
 [Wed Aug 13 07:55:10 2014].619032   1: (825.909890, 260.048026)
 [Wed Aug 13 07:55:10 2014].619049   2: (882.383078, 511.333078)

 Any clues what we should look at next?

 This same source data file and layer work with older versions of mapserver 6.

 Thanks

 Ian

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian 

Re: [mapserver-users] emacs mapserver-mode (refreshed)

2014-08-18 Thread thomas bonfort
Axel,
we provide a vim syntax highlighting file on the mapserver.org
website. You might want to submit a pull-request to the doc site to
include your contribution at the same level.

http://mapserver.org/fr/development/editing/vim.html
http://mapserver.org/fr/_static/map.vim
https://github.com/mapserver/docs


cheers,
thomas

On 18 August 2014 17:00, Axel Schaefer axel.schae...@wheregroup.com wrote:
 Hi all.

 There is an updated mapserver-mode for Emacs available at:
 https://github.com/AxxL/mapserver-emacs-mode
 for editing Mapserver mapfiles. You can grab the neccessary file at:
 https://github.com/AxxL/mapserver-emacs-mode/blob/master/mapserver-mode.el
 and should know what to do with it.

 It's a fork of Hal Muellers mapserver-mode which he announced nearly 10
 years ago at this list[1] :-). I simply updated the keywords and constants
 to the newest version and adjusted the regular expressions a bit.

 Features: Syntax highlighting and automatic indentation. In combination with
 yasnippet and auto-complete-mode you should have a nice way to edit mapfiles
 in your beloved Emacs environment.

 -as

 [1] http://lists.osgeo.org/pipermail/mapserver-users/2004-May/051493.html

 ___
 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] Installing MapServer with FastCGI

2014-09-25 Thread thomas bonfort
You need to install the fastcgi-devel package (I'm not sure what it's
called on centos, libfcgi-devel, libfastcgi-devel, fcgi-devel, ...)

regards,
thomas

On 25 September 2014 16:55, jdmorgan jdmor...@unca.edu wrote:
 Hello,

 I am trying to compile a version of MapServer 6.4.1. on CentOS 6.



 I am at the part where I am doing a CMAKE. I have installed FastCGI already
 however (following
 http://linuxwave.blogspot.com/2010/08/installing-apache-modfastcgifastcgi.html).
 However, I am not really sure where it installed which brings me to my
 issue.


 Currently here is the error I get when running the CMAKE:



 CMake Error at CMakeLists.txt:49 (message):

   FCGI library/component/dependency could not be found.

 HINTS:

 - disable FCGI support by adding -DWITH_FCGI=0

 - add the FCGI install directory to the CMAKE_PREFIX_PATH variable
 (-DCMAKE_PREFIX_PATH=/path/to/FCGI-install-dir;/path/to/other/dirs

 Call Stack (most recent call first):

   CMakeLists.txt:482 (report_optional_not_found)



 I have tried in my CMAKE script to point to where I think that FCGI
 (FastCGI) is but this doesn't seem to be working for me.  Anyone out there
 have success with this type of thing that can point me in the right
 direction?

 Thanks,

 --
 Derek


 ___
 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] Fwd: All map services display pink tiles

2014-10-01 Thread thomas bonfort
Sithila,
try right clicking on one of the pink tiles to open it in a new browser
window, or alternately look in your apache access/error logs. You should
get an error message that should give you a head start. 502 errors are
usually a sign that the source wms server is producing an error instead of
an image, the actual error message should be returned back to you.

--
thomas

On 1 October 2014 09:50, Sithila Konara sithilamadusha...@gmail.com wrote:




 http://gis.stackexchange.com/questions/115709/all-map-services-display-pink-tiles#

 I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis
 and imposm using GitHub tutorial
 https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04.
 After completing the tutorial all map services display pink tiles not map
 info. i was not encounter with any issues during the tutorial run. any
 reason to this?

 Following screenshots for your reference.

 [image: enter image description here] [image: enter image description
 here] [image: enter image description here]

 When I check network I saw some errors as follows it shows as bad gate way
 and internal server error [image: enter image description here]

 here's my basemap makefile and mapcache.xml file

- *basemap/makefile*

 UNAME := $(shell uname)

 ifeq ($(UNAME), Darwin)
 SED=sed -i else
 SED=sed -i
 endif

 CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this 
 with cpp on linux, or cpp-4.2 on darwin (not available starting with 
 mountain lion)


 OSM_PREFIX=osm_new_
 OSM_NAME_COLUMN=name
 OSM_SRID=4326
 OSM_UNITS=dd
 OSM_EXTENT=-180 -90 180 90
 OSM_SRID=3857
 OSM_UNITS=meters
 OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432
 OSM_EXTENT=-2000 -2000 2000 2000
 OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 
 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 
 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 
 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986
 DEBUG=1
 LAYERDEBUG=1
 STYLE=google#can also use google or bing


- *mapcache-osm.xml*

 ?xml version=1.0 encoding=UTF-8?!-- see the accompanying 
 https://github.com/mapserver/mapcache/blob/master/mapcache.xml.sample for a 
 fully commented configuration file --mapcachecache name=disk 
 type=disk
 base/home/sithila/osm-demo/mapcache/cache/base !-- Change Path here 
 --
 symlink_blank//cache
 source name=osm type=wms
 getmap
 params
 FORMATimage/png/FORMAT
 LAYERSdefault/LAYERS
 MAP/home/sithila/osm-demo/basemaps/osm-google.map/MAP !-- 
 Change Path here --
 /params
 /getmap
 http
 urlhttp://localhost/cgi-bin/mapserv?/url !-- Change server here 
 --
 /http/sourcetileset name=osm
 metadata
 titleOSM MapServer served map/title
 abstractsee 
 https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2/abstract
 /metadata
 sourceosm/source
 cachedisk/cache
 gridWGS84/grid
 gridg/grid
 formatPNG/format
 metatile5 5/metatile
 metabuffer10/metabuffer
 expires1/expires
 auto_expire86400/auto_expire  /tileset
 default_formatJPEG/default_format
 service type=wms enabled=true
 full_wmsassemble/full_wms
 resample_modebilinear/resample_mode
 formatJPEG/format
 maxsize4096/maxsize/service
 service type=wmts enabled=true/service type=tms 
 enabled=true/service type=kml enabled=true/service type=gmaps 
 enabled=true/service type=ve enabled=true/service type=demo 
 enabled=true/
 errorsreport/errorslock_dir/tmp/lock_dir/mapcache



 ___
 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 CGI URL parameter parsing with plus character escaped as %2b

2014-10-01 Thread thomas bonfort
the + sign is used to encode a space in a url, and that space is what
mapserver's parser is looking for. translated to mapfile syntax, your
first two requests are parsed as

labelitem columnname

whereas the last one is

labelitem+columnname

which is invalid.

tl;dr don't escape the + sign, mapserver is expecting a space not a +

--
thomas

On 1 October 2014 16:15, Fergus McDonald mapser...@schartz.net wrote:
 I am having an issue with Mapserver 6.4.1 when attempting to pass a
 layer labelitem parameter setting via URL.

 The map file contains the following validation for layer 0

 VALIDATION
 labelitem [a-z]+
 END

 The following request works (ignore the double quotes around the entire
 URL):

 http://sitename/cgi-bin/map=pathtomapfilemode=mapmap.layer[0]=labelitem+columnname;

 as does this (note the brackets replaced with html escapes)

 http://sitename/cgi-bin/map=pathtomapfilemode=mapmap.layer%5B0%5D=labelitem+columnname;

 ..but if the plus sign is escaped also:

 http://sitename/cgi-bin/map=pathtomapfilemode=mapmap.layer%5B0%5D=labelitem%2Bcolumnname;

 Mapserver fails with the following error:

 getString(): Symbol definition error. Parsing error near (+):(line 1)

 This problem arises because when generating such requests from
 OpenLayers, any such parameters automatically have the plus sign
 escaped before the request is sent. It does seem unconsistent that
 escapes are recognised for some parts of the URL and not others.

 Am I doing something wrong or should this be a bug report?

 Thanks in advance
 ___
 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] Problems compiling current git master on CentOS 6 due to lack of HarfBuzz

2014-10-14 Thread thomas bonfort
can you start with a new build directory, I've just tested and can
correctly disable harfbuzz/fribidi...

cmake ~/dev/mapserver -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF

--
thomas

On 14 October 2014 11:58, Peter Hopfgartner
peter.hopfgart...@r3-gis.com wrote:
 I'd like to test if https://github.com/mapserver/mapserver/issues/4980
 persists in the current development tree.

 Trying to compile on CentOS6 with

 mkdir build
 cd build
 cmake  -DWITH_KML=ON -DWITH_FREEBIDI=0 -DWITH_HARFBUZZ=0 ..

 it fails, complaining for the lack of harfbuzz.

 Currently I'm not aware of any official package of HarfBuzz for C6, so I'm
 struck at this point. Will HarfBuzz be a mandatory requirement for MapServer
 7?

 Regards,

 Peter

 --
 Peter Hopfgartner
 web  : http://www.r3-gis.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] mapcache WMTS - TMS one tile offset

2014-10-14 Thread thomas bonfort
Markus,

TMS expects tiles starting at the bottom left whereas WMTS expects
them starting top left. Mapcache by default uses bottom-left ordered
grids, and creates a WMTS capabilities document that accounts for that
in the sense that the TopLeftCorner of each TileMatrix is adjusted and
may vary if the combination of your grid extents and resolutions do
not produce a stable topleftcorner for each resolution. You have
multiple ways forward:

- use a combination of grid extents and resolutions that force a
stable topleftcorner whatever the resolution. This is usually done by
using power-of-two resolutions.
- force the grid to be fixed to the top left corner instead of bottom
left. gridorigintop-left/origin/grid. Your tileset will not be
compatible with TMS requests.
- use a wmts client that knows how to parse WMTS capabilities so that
the correct topleftcorner is used for each resolution
- (not sure, but check if openlayers supports overiding the topleft
origin for its grid for WMTS requests)

cheers,
thomas

On 10 October 2014 22:12, mapserver mapser...@markus-spring.de wrote:
 Disclaimer: I have asked this question already on openlayers-users, but not
 received any answer
 ---

 I have set up a mapserver/mapcache service for tiled background maps, which
 should offer WMTS and TMS services
 in the EPSG:31468 projection.

 The TMS tiles I've verified to be correctly placed against a standard wms
 layer, however the WMTS tiles get placed with
 a one tile offset to the south compared to the TMS tiles.

 Please see the screenshot:
 http://markus-spring.info/varia/wmts_tms_offset_problem.jpg

 The grid definition is as follows:

 grid name=MUC31468
metadata
   titleMapcache Service City of Munich EPSG 31468/title
/metadata
srsEPSG:31468/srs
size256 256/size
extent4440016 5313983 4492016 5359983/extent
unitsm/units
resolutions141.11153491115225 70.55561745557612
 42.1047334567 35.27775872778806 26.458319045841048
 17.63887936389403 8.819439681947015 3.527775872778806
 2.6458319045841043 1.763887936389403 0.8819439681947016
 0.35277758727788067 0.17638879363894033/resolutions
 /grid

 and the tileset

 tileset name=karte_2014-1
sourcekarte_2014-1/source
cachedisk/cache
metadata
   titlekarte_2014-1/title
   abstract/abstract
/metadata
formatPNG/format
metatile5 5/metatile
metabuffer10/metabuffer
dimensions
  dimension type=regex name=MAPFILE
 default=/path/to/mapfile.map^[a-zA-Z0-9\./]*\.map$/dimension
/dimensions
gridMUC31468/grid
 /tileset


 while the service definitions (for OpenLayers 2.13) are these:

var wmts = new OpenLayers.Layer.WMTS({
name:WMTS basemap,
url: http://centmap/mapcache/wmts?;,
layer:   karte_2014-1,
matrixSet:   MUC31468,
format:  image/png,
style:   default,
opacity: 0.7,
maxExtent:   maxExtent,
isBaseLayer: true
});

var tms = new OpenLayers.Layer.TMS(
TMS basemap,
http://centmap/mapcache/tms/;,
{ layername: karte_2014-1,
  type:  png }
);

 Any help would be greatly appreciated.

 ---Markus

 ___
 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] WMS rendering

2014-10-16 Thread thomas bonfort
sizeunits meters along with size 0.0019 is very probably false unless
you're mapping microscopic particles :) try removing the sizeunits
parameter completely and setting size to something visible in pixels
(e.g. 3-5), once that is working you can start looking into
scale-dependant rendering with sizeunits

--
thomas

On 16 October 2014 17:04, Francesco Palermo palermo.fran...@gmail.com wrote:
 Hello,
 I'm experimenting the use of Mapserver as WMS and I'm encountering some
 problems on map rendering. I'm using a shapefile as a map source and it's a
 map of points (generated by a csv using ogr2ogr - Could I use directly csv
 with Mapserver? I don't know). I can't get the rendering of this map using
 for example QGIS or this URL in the browser (which I hope it's correct):
 http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test;

 This is the mapfile:
 MAP
 NAME test
 STATUS ON
 SIZE 500 300
 IMAGETYPE PNG
 EXTENT 9.2990 43.0105 9.4894 43.0524
 UNITS METERS
 DEBUG 5
 PROJECTION
init=epsg:4269
 END
 WEB
 TEMPLATE template.html
 IMAGEPATH /var/www/html/tmp/
 IMAGEURL /tmp/
 METADATA
 wms_title   WMS Demo Server
 wms_onlineresource http://localhost/cgi-bin/mapserv?;
 wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
 wms_enable_request *
 END
 END
 #IMAGECOLOR 255 255 255
 TRANSPARENT ON
 SHAPEPATH oilspill/
 OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION GAMMA=0.75
 END
 SYMBOL
   NAME square
   TYPE vector
   POINTS
 0 0
 0 1
 1 1
 1 0
 0 0
   END
   FILLED true
   ANCHORPOINT 0.5 0.5
 END
 LAYER
   NAME test
   TYPE POINT
   STATUS DEFAULT
   DATA timestep24
   DEBUG 5
   SIZEUNITS meters
   PROJECTION
init=epsg:4269
   END
   METADATA
 wms_titletest
   END
   CLASSITEM weight
   CLASS
   STYLE
   COLOR #1014FF
   SYMBOL square
   SIZE 0.0019
   END
   END
 END
 END

 Any suggestions? Are there any errors in the mapfile? Or am I wrong in the
 procedure?

 Thanks,
 Francesco
 ___
 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] Is kerneldensity_attribute implemented?

2014-10-23 Thread thomas bonfort
Jukka,
All the functionality is tested in msautotest, the
KERNELDENSITY_ATTRIBUTE is an error is the RFC. To use an attribute
use STYLE SIZE [attribute] END in your linked vector layer.

--
thomas

On 23 October 2014 06:55, Rahkonen Jukka (Tike)
jukka.rahko...@mmmtike.fi wrote:
 Hi,

 I have tried to use attribute based weights in heatmaps as in RFC 108 example 
 http://mapserver.org/development/rfc/ms-rfc-108.html
 processing KERNELDENSITY_ATTRIBUTE=POP2010

 However, this processing option does not seem to have any affect. It is not 
 used in the MS autotest mapfile and I wonder if it has been implemented at 
 all yet. Does somebody know?

 -Jukka Rahkonen-
 ___
 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] WFS query slow on large postgis table (and small table disappointing as well)

2014-11-07 Thread thomas bonfort
Yes Marco, Please open a ticket for this.

thanks,
thomas

On 7 November 2014 09:34, deduikertjes deduikert...@xs4all.nl wrote:
 Ok, with all the help I came to the following results:

 Compile the current development version (6.5-dev) from GitHub  Install.
 Results:

 Simple Spatial WFS queries require a  non-empty
 ogc:PropertyName/ogc:PropertyName.
 Setting it too ogc:PropertyNamefoo/ogc:PropertyName proved to be
 sufficient.
 Query speed is indeed very fast now.

 Using WMS-dimensions as described on
 http://mapserver.org/ogc/wms_dimension.html does work in
 6.4 but not in 6.5-dev. As I have need for them I recompiled mapserver
 with a
 -DCMAKE_INSTALL_PREFIX=/usr/local/bin switch so I can run mapserver 6.4
 en 6.5-dev next to each
 other. GetMap requests are routed to mapserver 6.4 and GetFeature
 requests are routed to 6.5-dev.

 Using the WMS-dimensons on 6.5-dev yields the following error:

 ServiceExceptionReport version=1.1.1ServiceException
 msDrawMap(): Image handling error. Failed to draw layer named 'jan2014_low'.
 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR:
 operator does not exist: = numeric
 LINE 1: ...32.505600397 6790506.21879132))',900913) and  = 0.9...
  ^
 HINT:  No operator matches the given name and argument type(s). You might
 need to add explicit type casts.

 /ServiceException/ServiceExceptionReport

 Its seems that the dimension parameter is not inserted in the layer filter
 expression.
 Should I create a bug report for this?

 MArco



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988p5171806.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver as static executable

2014-11-19 Thread thomas bonfort
Those flags only influence how the mapserver binaries (shp2img,
mapserv, etc...) are linked to libmapserver, not how libmapserver
links to its dependencies. There is currently now way that I know of
to statically link the dependencies. If you figure out how to do so in
cmake and wanted to submit a patch I would happily include it.

regards,
thomas

On 18 November 2014 23:26, jdmorgan jdmor...@unca.edu wrote:
 Hello,

 I am trying to compile MapServer 6.4.1 on CENTOS (RHEL Linux) in as a
 stand-alone static executable.  At
 http://mapserver.org/installation/unix.html it says If you want to also
 build a static version of the library, the BUILD_STATIC and
 LINK_STATIC_LIBMAPSERVER options can be used, therefore I have included
 those parameters.  However, after I complete the MAKE and MAKE INSTALL steps
 the resulting mapserv executable doesn't seem to be static.  To test this I
 am doing a ldd mapserv which list all of the dependencies, where I would
 expect none.  If anyone could provide advice that would be great.  Here is
 my CMAKE command:



 cmake -DCMAKE_INSTALL_PREFIX=/usr \
 -DCMAKE_PREFIX_PATH=/usr/pgsql-9.3 \
 -DWITH_CLIENT_WFS=ON \
 -DWITH_CLIENT_WMS=ON \
 -BUILD_STATIC=ON \
 -LINK_STATIC_LIBMAPSERVER=ON \
 -DWITH_CAIRO=0 .. ../configure.out.txt

 Thanks,
 Derek


 ___
 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] Mapfile limit size

2014-11-26 Thread thomas bonfort
Glenn,
I have had no other reports of issues related to mapfile sizes,
includes, or tabs vs. spaces. Ideally provide a backtrace of the
segfault after having recompiled mapserver with debugging symbols
turned on, from the command line with a bounding box that triggers the
500 error:

gdb --args /path/to/mapserv
QUERY_STRING='map=foo.mapBBOX=0.617217,37.76216667,1.66732,39.5123'
 run
... wait for segfault
 bt


regards,
thomas

On 26 November 2014 at 15:06, Prigent, Glenn
glenn.prig...@capgemini.com wrote:
 Hello,


 i wonder if there is any size limit for the mapfile.
 I have a mapfile (23 ko) which includes many other file (17 includes of a
 0.517 ko file, 7 includes of a 6.466 ko file, 6 includes of a 5.996 ko file
 and 4 includes of a 5.788 ko file)
 I use url parameters to filter data with %% in the mapfile.
 With some parameters i have a ERROR 500 and sometimes i get no response from
 mapserver (timeout).
 I use regexp in mapfile from BBOX url to filter data in request.
 With this BBOX :
 BBOX=0.617217,37.76216667,1.66732,39.51233, no problem.
 With this BBOX :
 BBOX=0.617217,37.76216667,1.66732,39.512,
 timeout
 With this BBOX :
 BBOX=0.617217,37.76216667,1.66732,39.5123, ERROR
 500.
 I have no log when those errors come.

 I guess it was a BBOX touble but testing those BBOX on another mapfile,
 everything is ok.

 After removing some tabulations from an include file, everything works fine.

 So i suppose there is a size limit problem.

 Has anyone encountered the same problem and has a solution ?

 (I will reformat my mapfile by removing tabulations to avoid the problem)


 Glenn Prigent

 This message contains information that may be privileged or confidential and
 is the property of the Capgemini Group. It is intended only for the person
 to whom it is addressed. If you are not the intended recipient, you are not
 authorized to read, print, retain, copy, disseminate, distribute, or use
 this message or any part thereof. If you receive this message in error,
 please notify the sender immediately and delete all copies of this message.

 ___
 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] MapCache: substitution in GetMap

2014-11-28 Thread thomas bonfort
You need to add ZOOM as a dimension at the tileset level. It will be
validated in incoming requests and propagated to the WMS server.

--
thomas

On 28 November 2014 at 13:31, Vladimir f...@inbox.ru wrote:
 Hi All!

 I have getMap request to MapCache from OL3 with additional dynamic ZOOM
 parameter.


 http://myhost/mapcache/?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapFORMAT=image%2FpngTRANSPARENT=trueLAYERS=testWIDTH=384HEIGHT=384CRS=EPSG%3A3857STYLES=MAP_RESOLUTION=135BBOX=8520588.417005166%2C5338362.055436708%2C8521811.40945773%2C5339585.047889271ZOOM=15

 Further MapCache send request to my WMS service accordingly the
 configuration:

 source name=vmap0 type=wms
 getmap
 params
 FORMATimage/png/FORMAT
 LAYERSmylayer/LAYERS
 /params
 /getmap
 http
 urlhttp://myhost/wms/url
 /http
 /source

 But the additional ZOOM parameter is lost at this stage.
 Adding ZOOM/ZOOM in params adds empty key without value.
 How can I substitute this parameter to final request ?

 Thanks  best regards




 ___
 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] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread thomas bonfort
Luca,
RFC101 only treats image legends, it is not implemented for HTML ones.

--
thomas

On 2 December 2014 at 16:17, Luca Manganelli luc...@gmail.com wrote:
 As stated in this document:
 http://mapserver.org/development/rfc/ms-rfc-101.html
 the Content Dependent Legend Response should be integrated into MapServer.

 GetLegendGraphics is fully working now; but now I tried to use HTML
 legend templates. The RFC describes the CGI mode MAPLEGEND (that's not
 documented, but LEGEND is). I am trying to have a html legend based on
 the contents with this command:

 http://local/cgi-bin/mapserv?map=map.mapmode=maplegendMAPEXT=X1 Y1
 X2 Y2SRS=EPSG:25832

 am I doing some error in this request?

 Note that if I use  mode=LEGEND, it returns all the legend.

 Thank you in advance :-)
 Luca
 ___
 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] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread thomas bonfort
there are some tests in
https://github.com/mapserver/msautotest/blob/master/wxs/wms_legend.map

On 4 December 2014 at 10:27, Luca Manganelli luc...@gmail.com wrote:
 On Thu, Dec 4, 2014 at 10:18 AM, thomas bonfort
 thomas.bonf...@gmail.com wrote:
 Luca,
 RFC101 only treats image legends, it is not implemented for HTML ones.

 That RFC101 states:

 * mode=maplegend and mode=maplegendicon are added to the traditional
 mapserver cgi. The mapserverObj struct gets an added map_hittest
 member that is used by the legend templating code to produce content
 dependant html legends.

 I can invoke Mapserver CGI with these parameters, and if I don't pass
 the map extent, the legend is empty (that's right behaviour). I am
 searching the name of that parameter so I could do that...
 ___
 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] multiple mapserv versions side by side

2015-02-18 Thread thomas bonfort
You /should/, at least on linux, be able to install to any non
standard location without having to compile a static version by using
cmake .. -DCMAKE_INSTALL_PATH=/opt/ms70 and then copying/symlinking
/opt/ms70/bin/mapserv to your standard cgi directory. The compiled
php_mapscript.so should also pick up the non standard location,
although you'll have to manually configure php to use the new
php_mapscript.so library. You'll definitely run into issues if you
have php load multiple versions of php_mapscript.so.

--
thomas

On 18 February 2015 at 04:14, Richard Greenwood
richard.greenw...@gmail.com wrote:
 Thanks Daniel. I'd like to also have php mapscript but with static linking
 i'm getting error below. Any suggestions for that?

 Linking CXX shared module php_mapscript.so
 /usr/bin/ld: ../../libmapserver_static.a(cgiutil.c.o): relocation
 R_X86_64_32 against `.rodata' can not be used when making a shared object;
 recompile with -fPIC
 ../../libmapserver_static.a: error adding symbols: Bad value
 collect2: error: ld returned 1 exit status
 make[2]: *** [mapscript/php/php_mapscript.so] Error 1


 On Tue, Feb 17, 2015 at 7:48 PM, Daniel Morissette
 dmorisse...@mapgears.com wrote:

 On 2015-02-17 9:18 PM, Richard Greenwood wrote:

 I'd like to play with the mapserv 7 beta on the same Ubuntu machine that
 I have mapserv 6.4 installed on. But both versions are using
 libmapserver.so so depending on what I have in my ldconfig path it's
 finding the 6.4 version lib or the 7beta ib. Is there an easier way to
 have both versions without changing ldconfig each time I switch between
 the two versions? Sorry, I know this is probably a pretty basic Linux
 question.



 Hi Rich,

 Use

 cmake  ... -DLINK_STATIC_LIBMAPSERVER=1  ...

 and libmapserver.a will be statically linked into your mapserv executable,
 and then you can simply copy the executable to your cgi-bin

 cp ./mapserv /usr/lib/cgi-bin/mapserv70


 --
 Daniel Morissette
 T: +1 418-696-5056 #201
 http://www.mapgears.com/
 Provider of Professional MapServer Support since 2000
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




 --
 Richard W. Greenwood, PLS
 www.greenwoodmap.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


[mapserver-users] MapServer 7.0 Beta1 Released

2015-02-12 Thread thomas bonfort
The MapServer team is pleased to announce the long overdue first beta
release of MapServer 7.0. Please help us testing and let us know any
findings.

Details of the new features, migration instructions, and download links
can be found on the dedicated announcement page at
http://www.mapserver.org/development/announce/7-0.html .

Cheers,
The MapServer PSC
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Not able to read Read MultiLineString and multigeometry coordinate with geotools in KML file

2015-02-20 Thread thomas bonfort
For issue 1 you should take this to the geotools mailing list as you won't
get any meaningful answers here.
For issue 2, unless you want to display altitude in a label or use
different styles based on altitude, this should not be an issue for
mapserver itself.
On a side note, if kml2 is only to be used by mapserver, then you should
preferably be creating shapefiles rather than kml for ingestion by
mapserver as you'll be getting way better performance with that format.

--
Thomas
On Feb 20, 2015 2:52 PM, satpal bhandari satpal82bhand...@gmail.com
wrote:

 Hi Team ,

 We are using planning to set up mapserver with geotools.version:12-RC1.

 We are planning the below approach :

 1. Input file KML1.
 2. Read KML1 with geotoolls . Get all the details likes folders ,
 placemarkers etc with java code.
 3. Creating KML2 file on the fly with the details got in step2 so that
 this KLM2 file can be used with a standard .map file which will have color
 coding style as needed in our application(We are following this as
 mapserver is not able to read kml file's style.).

 Let me know if the above approach make sense.


 As a POC we found that below issues :

 1. geotools is not able to read MultiLineString  tag in KML input file.
 2. After reading any coordinate , geotool is only giving the long/lat in
 returned coordinate , it is not giving the altitude written in kml file.
 Does it matters to our mapserver to process final kml


 Please suggest.

 Regards
 Satpal

 ___
 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] compiling error core.c in mapcache with cygwin

2015-01-10 Thread thomas bonfort
What apr version are you using?
 On Jan 3, 2015 10:15 PM, Gery . gameji...@hotmail.com wrote:

 Hello,

 When installing mapcache in cygwin, `make` produced:

 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function
 ‘mapcache_prefetch_tiles’:
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type
 name ‘apr_thread_t’
apr_thread_t **threads;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type
 name ‘apr_threadattr_t’
apr_threadattr_t *thread_attrs;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused
 variable ‘nthreads’ [-Wunused-variable]
int nthreads;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused
 variable ‘thread_attrs’ [-Wunused-variable]
apr_threadattr_t *thread_attrs;
  ^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused
 variable ‘threads’ [-Wunused-variable]
apr_thread_t **threads;
   ^

 I searched for some hints about this error but didn't find anything.
 Looking for `apr_thread_t` and cygwin, I found some pages pointing to an
 error with apache, but not really sure if apache has something to do here.

 thanks for any hints on this,

 Gery
 ___
 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] compiling error core.c in mapcache with cygwin

2015-01-10 Thread thomas bonfort
From
http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3c4994179ec7ed6843aab0a30a1639e7f82514361...@dgex2v.dg.deltagroup.com%3E
it would seem that threads are not supported by Apr on cygwin. Currently
mapcache does not support unthreaded environments so there's nothing you
can do without hacking the mapcache codebase. I believe the change would
not be very extensive as the source WMS fetches only need to be
sequentialized instead of parralelized in core.c

Thomas.
On Jan 11, 2015 7:50 AM, thomas bonfort thomas.bonf...@gmail.com wrote:

 What apr version are you using?
  On Jan 3, 2015 10:15 PM, Gery . gameji...@hotmail.com wrote:

 Hello,

 When installing mapcache in cygwin, `make` produced:

 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function
 ‘mapcache_prefetch_tiles’:
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type
 name ‘apr_thread_t’
apr_thread_t **threads;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type
 name ‘apr_threadattr_t’
apr_threadattr_t *thread_attrs;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused
 variable ‘nthreads’ [-Wunused-variable]
int nthreads;
^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused
 variable ‘thread_attrs’ [-Wunused-variable]
apr_threadattr_t *thread_attrs;
  ^
 /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused
 variable ‘threads’ [-Wunused-variable]
apr_thread_t **threads;
   ^

 I searched for some hints about this error but didn't find anything.
 Looking for `apr_thread_t` and cygwin, I found some pages pointing to an
 error with apache, but not really sure if apache has something to do here.

 thanks for any hints on this,

 Gery
 ___
 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 7 wfs_encoding

2015-02-13 Thread thomas bonfort
http://mapserver.org/development/rfc/ms-rfc-103.html

--
thomas

On 13 February 2015 at 10:17,  steve.tout...@inspq.qc.ca wrote:
 Congratulations for the huge  improve performance for WFS filtering with
 postgis and oracle...


 Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I see
 anything in the changelog about that.

 Is there something change?
 ___
 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] [EXTERNAL] Re: the lines one above other

2015-02-13 Thread thomas bonfort
You can do it in a single layer, provided that you have someway of
determining via attributes that a given road segment isn't connected
to other road segments below it (typically that would be something
saying it's a bridge rather than a regular road). The behavior is
undocumented and relies on the knowledge of how mapserver treats the
line cache for casing.

CLASS
  EXPRESSION ([type]=bridge)
  STYLE
  END
  STYLE
WIDTH 5
COLOR bridge_outline_color
LINECAP butt
  END
  STYLE
WIDTH 3
COLOR highway_color
  END
END
CLASS
  STYLE
WIDTH 5
COLOR highway_outline_color
  END
  STYLE
WIDTH 3
COLOR highway_color
  END
END

(The trick is to add an empty style block so the rendering order for
bridges is offset by one compared to normal roads)

In your sql query, you also use an order by z_level asc so higher
roads get drawn after (=over) lower ones.
You might want to take a look at https://github.com/mapserver/basemaps
where this (along with other tricks for dealing with complex road
maps) is used.

--
thomas

On 13 February 2015 at 07:52, Vladimir f...@inbox.ru wrote:
 I would draw your attention to the source of this discussion.
 http://osgeo-org.1560.x6.nabble.com/the-lines-one-above-other-td5187093.html

 It seems I found how to display multilevel junction of highway with ORDER
 BY in the case using a one layer. Adding order by id desc or order by id
 asc in subquery, also the definition $highwayStyle2 besides $highwayStyle1
 works fine.
 Please see the code and the illustrations below:

 --

 $highwayLayer-set('status', MS_ON);
 $highwayLayer-set('name', 'highway');
 $highwayLayer-set('labelitem', 'name');
 $highwayLayer-setConnectionType(MS_POSTGIS);
 $highwayLayer-set('connection', 'user=my_user password=my_pass dbname=my_db
 host=localhost');

 $highwayLayer-set(data,geom from (select id, 'id = '||id as name, geom
 from my_table
 where ST_Intersects(geom, !BOX!) order by id desc) as subquery using unique
 id using srid=3857);
 $highwayLayer-setprocessing(close_connection=defer);
 $highwayLayer-set(type,MS_LAYER_LINE);

 $highwayClass = new ClassObj($highwayLayer);
 $highwayClass-set('name', 'highway');

 $highwayStyle1 = new styleObj($highwayClass);
 $highwayStyle1-color-setRGB(254,173,0);
 $highwayStyle1-set('linecap','square');
 $highwayStyle1-set('width',4);
 $respdorStyle1-outlinecolor-setRGB(255,0,0);
 $respdorStyle1-set('outlinewidth',2);

 $highwayStyle2 = new styleObj($highwayClass);
 $highwayStyle2-color-setRGB(254,173,0);
 $highwayStyle2-set('linecap','square');
 $highwayStyle2-set('width',4);
 $respdorStyle2-outlinecolor-setRGB(255,0,0);
 $respdorStyle2-set('outlinewidth',2);

 -

 Result when order by id asc:
 http://s22.postimg.org/esbobf18x/order_by_id_asc.jpg

 Result when order by id desc:
 http://s10.postimg.org/qeokp2jrd/order_by_id_desc.jpg

 -

 That's the goods for me but there is the impression of using some
 undocumented singularity.

 Thanx for any comments.






 ___
 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] mapserv 7.0 and gif

2015-02-13 Thread thomas bonfort
Richard,
Allowing for image/gif in requests and GIF outputformats is to allow
existing mapfiles and requests to still be serviced without breaking,
even though the returned format will be png. The gif dependency is
there to allow loading of gif pixmap symbols, as was already the case.

--
thomas

On 12 February 2015 at 22:13, Richard Greenwood
richard.greenw...@gmail.com wrote:
 Very exciting to see the 7.0 beta! So I built it and satisfied the gif
 dependency. I define a gif OUTPUTFORMAT definition in my map file, I request
 a map with map_imagetype=image/gif but I get a PNG. So is gif support truly
 gone in 7.0? And if so, it seems a little misleading to have a libgif
 dependency in the build, to allow a gif OUTPUTFORMAT definition, and to
 allow a map_imagetype=image/gif request.

 In any case - thanks for all the work getting to 7.0!

 Rich

 --
 Richard W. Greenwood, PLS
 www.greenwoodmap.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] mapserver 7 wfs_encoding

2015-02-13 Thread thomas bonfort
Yes, that is correct. We need to update the migration guide to include this.

On 13 February 2015 at 10:39, steve.tout...@inspq.qc.ca wrote:

 oh!

 That means that if our database or datasource is encoded iso-8859-1, we
 need to set ENCODING iso-8859-1 in all our layers, there is no parameter
 at the MAP level right?

 And,

- Mapfiles themselves will be expected to be UTF8-encoded. Non
UTF8-encoded mapfiles will need to be iconv’d to utf8.


 That means we cannot right any mapfile in iso-8859-1. we need to set our
 IDe to write in utf-8.


 Is my understanding correct?




  *thomas bonfort thomas.bonf...@gmail.com thomas.bonf...@gmail.com*

 2015-02-13 10:21
   A
 steve.tout...@inspq.qc.ca
 cc
 MapserverList OSGEO mapserver-users@lists.osgeo.org
 Objet
 Re: [mapserver-users] mapserver 7 wfs_encoding






 http://mapserver.org/development/rfc/ms-rfc-103.html

 --
 thomas

 On 13 February 2015 at 10:17,  steve.tout...@inspq.qc.ca wrote:
  Congratulations for the huge  improve performance for WFS filtering with
  postgis and oracle...
 
 
  Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I
 see
  anything in the changelog about that.
 
  Is there something change?
  ___
  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] [EXTERNAL] Re: the lines one above other

2015-02-12 Thread thomas bonfort
Actually there is an issue opened for this, as the order by inside the
subquery is not guaranteed to be maintained in the outer query:
https://github.com/mapserver/mapserver/issues/5008 . For mssql there
has been a patch applied, for postgis it is not needed yet.

On 12 February 2015 at 08:48, Smith, Michael ERDC-RDE-CRREL-NH
michael.sm...@erdc.dren.mil wrote:
 No, MapServer respects the feature order. Using the ORDER BY with a
 database connection, MapServer will draw features in that order.

 Mike

 --
 Michael Smith

 US Army Corps
 Remote Sensing GIS/Center



 On 2/12/15, 7:52 AM, Eichner, Andreas - SID
 andreas.eich...@sid.sachsen.de wrote:

I'm not sure about this but AFAIK MapServer draws features in the order
they are returned by the query. For Shapefiles there is the sortshp
utility. If you're on a relational database like PostGIS or OracleSpatial
you can try including the ORDER BY prio within the DATA. But since MS
wraps it into a subquery the database might still return the features out
of order.

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Vladimir
 Gesendet: Donnerstag, 12. Februar 2015 12:02
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] the lines one above other

 Hello All!



 The task is to show multilevel junction of highway.
 The lines should be at the same layer and has the same style, for
example
 see orange lines on attached pic:
 [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
 Is it possible to draw the lines one above other by an one layer?
 May be some method of Z-index for features in a layer exists?
 Thanks for any guidance to display this kind of crossroads.

 Vladimir
___
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

Re: [mapserver-users] MapServer Environment Variables and IIS

2015-02-10 Thread thomas bonfort
Mod fcgid on apache has special directives to set environment variables,
c.f. FcgidInitialEnv . on iis you hopefully have the same...
On Feb 10, 2015 8:18 AM, geographika geograph...@gmail.com wrote:

 Some further details after debugging. I modified mmaphttp.c and recompiled
 MapServer just to confirm the missing environment variables.

   // pszCurlCABundle = C:\\MapServer\\bin\\curl\\curl-ca-bundle.crt; //
 works when hardcoded
   pszCurlCABundle = getenv(Path);
   msDebug(Test CURL_CA_BUNDLE=%s\n, pszCurlCABundle);

   test1 = getenv(Path);
   msDebug(Path=%s\n, test1);

 Then run using mapserv the env variables are correct. When run in IIS
 using FastCGI both appear as null in the log file.

 [Tue Feb 10 13:54:13 2015].868000 Test CURL_CA_BUNDLE=(null)
 [Tue Feb 10 13:54:13 2015].868000 Path=(null)

 getenv is part of the standard C library http://www.codingunit.com/c-
 reference-stdlib-h-function-getenv
 So I guess this must be an IIS/FastCGI issue rather than MapServer?

 Seth

 On 09/02/2015 21:48, Jeff McKenna wrote:

 On 2015-02-09 1:03 PM, geographika wrote:

 Thanks Jeff.
 The environment variable is definitely set in system variables, and I've
 rebooted a few times now. It also happens on both a w08r2 server and a
 Windows 7 machine.
 I can see it in
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
 Manager\Environment
 I'm using x64 MapServer, but the environment variables appear in my x64
 Python script.
 I had this working a couple of years ago, and tried to see if anything
 has changed in the MS source since but no luck.

 I think I should also be able to set it in the web.config using the
 following, but also no luck:

  fastCgi
  application fullPath=C:\Mapserver\bin\mapserv.exe
  environmentVariables
  environmentVariable name=CURL_CA_BUNDLE
 value=C:\Mapserver\bin\curl\curl-ca-bundle.crt /
  /environmentVariables
  /application
  /fastCgi

 Regards,

 Seth



 I think I may been in your exact shoes once, and it was a problem with
 the Curl library in the MapServer build (I believe Curl is used for this
 certification/communication, along with the OpenSSL, but you could clarify
 this with other developers).  I would also test with MS4W to see if you get
 the same problem.

 I think you said it used to work with an older MapServer version; I would
 therefore test on that same server with that same older MapServer
 version/package again too.

 Ha, this is how I debug (yes gives you grey hairs ha!).

 -jeff




 ___
 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] WMTS tiles not at correct Latitude (and moving)

2015-03-04 Thread thomas bonfort
Have a look at this thread if this is happening on a custom grid (i.e.
notre google-mercator or wgs84):
http://lists.osgeo.org/pipermail/mapserver-users/2014-October/077033.html
On Mar 5, 2015 6:54 AM, Ben Madin b...@ausvet.com.au wrote:

 G’day all,

 we have set up a map cache wmts layer to produce boundaries for our
 mapping system.

 In isolation, it was looking OK, however when we layer the boundaries with
 any known background (OSM etc) they appear to be offset by a few degrees S
 (it is all in EPSG:3857)

 To confuse things more, as we zoom in a couple of layers, this seems to be
 moving north (which is good), but not enough to converge with our
 background or data layers - so still bad.

 I’ve put an image to illustrate this at :


 https://s3-ap-southeast-2.amazonaws.com/uploads.ausvet.com.au/Misaligned-WMTS.png

 My guess is I have done something wrong at some level of configuration
 (postgis data, mapfile, wms config, mapcache.xml or OpenLayers),  but it
 might be that it is common enough that most people can figure it out (which
 is why I couldn’t find a good reason!)

 Any advice would be gratefully accepted. I can put up further details as
 required (or if it isn’t as simple as I thought)

 cheers

 Ben


 ___
 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] Getcapabilities extremely slow in version 6.4.1

2015-03-05 Thread thomas bonfort
IIRC, this happened when we introduced advanced layer groupings along with
inspire support in 6.2, and has to do with multiple passes through layers
to determine which ones to activate or not. I'd suspect the cost is
proportional to nlayers² which is why it comes up for folks with many
layers in their mapfiles.

Thomas.
On Mar 5, 2015 7:26 PM, Lime, Steve D (MNIT) steve.l...@state.mn.us
wrote:

 This is something I’d really like to see fixed. Any chance a test mapfile
 could be developed and attached to a new ticket on github? Ideally I'd
 start against 7.0 and then back-port if possible.

 Steve

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML)
 Sent: Wednesday, March 04, 2015 2:34 AM
 To: aabhayas; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Getcapabilities extremely slow in version
 6.4.1

 Hi,

 I have been wondering also why GetCapabilities response is so slow for us
 nowadays and I have indeed added lots of groups to some services.
 +1 from me for having a look at this issue.

 We just installed 7.0-beta on our test server and GetCapabilities comes
 slowly from that too. There are about 40 layers in the test service and
 response time is about 8 seconds.

 Sometimes I have been wondering if GetCapabilities could be cached and
 controlled by some new CONFIG key. Cached GetCapabilities could be set to
 be refreshed for example once per week/day/hour if there is a need to react
 on changes in the data, and each time after the mapfile has been edited and
 saved with a new timestamp.

 -Jukka Rahkonen-

 aabhayas wrote:

  Hi

  Following up on my previous post we still want to use “OWS_LAYER_GROUP”
 in our map files. We have large number of layers in our map file ( nearly
 800).

  Currently we are in the process of migrating our MapServer 5.4.2
 environment in to MapServer 6.4.1.

  In MapServer 6.4.1 GetCapabilities request takes more than 1 minute
 compared
 5 second in version 5.4.2. This makes the new environment unusable by our
 clients.

  Is there a possibility where someone in the MapServer development team
 looks in to this and fix this issue.

  Thanks




 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325p5191328.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 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

Re: [mapserver-users] ows_allowed_ip_list / ows_denied_ip_list not working

2015-04-24 Thread thomas bonfort
Can you point us to where you saw in the docs that '*' was a valid
entry for an ip list ?

--
thomas

On 23 April 2015 at 15:14, vladimirbellini vlasvlasv...@gmail.com wrote:
 Hi.

 i was testing ows_denied_ip_list or allowed ip list on my 6.4.1 mapserver
 and it does not work at all.

  ./mapserv -v
 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS
 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


 METADATA
 #inside top mapfile metadata

 ows_denied_ip_list *
 #(other metadata..)
 END

 even blocking * (all ip's) it doesnt work,

 i always receive a GetMap response using wms
 ..

 i can still see my request (cgi-bin,wms,getmap, see the full png, no denied
 at all...) why?

 :S

 http://osgeo-org.1560.x6.nabble.com/file/n5202661/8d9c16d4-e8f3-11e4-92c0-a3c862cac09f.jpg


 Thanks,


 Vladimiro Bellini



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-tp5202661.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] memcache and mapcache

2015-04-21 Thread thomas bonfort
Travis,
that means the cmake configuration step didn't pick up the apr-memcache
headers, either because they are not installed, or because you did not
specify -DWITH_MEMCACHE=1

--
thomas

On 21 April 2015 at 16:37, Travis Kirstine tkirst...@firstbasesolutions.com
 wrote:

 I have a issue with memcache and mapcache.

 [root@wmts2 mapcache]# /etc/init.d/httpd start
 Starting httpd: Syntax error on line 1058 of /etc/httpd/conf/httpd.conf:
 failed to add cache memcache: memcache support is not available on this
 build
[FAILED]


 Any ideas??




 --
   [image: FBS Logo]

 *Travis Kirstine*, Web Development Supervisor
 *t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
 tkirst...@firstbasesolution.com

 *First Base Solutions Inc.*
 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
 *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.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] mapcache config troubles, Tile parameter not set

2015-04-29 Thread thomas bonfort
mapcache gets it's tile data from a source WMS service, not a tiled
one. Just remove the mode=tile part from your source-url, and make
sure your mapfile is configured to allow wms getmap requests (namely,
ows_srs and ows_enable_request metadatas are correctly set).

--
thomas

On 29 April 2015 at 11:18, Hal Mueller h...@mobilegeographics.com wrote:
 I don’t understand how to do that.

 It looks to me like I’m (erroneously) requesting a BBOX bounded tile instead 
 of a gridded one. Does that jive with your read of my mistakes?

 H

 On Apr 29, 2015, at 12:23 AM, Eichner, Andreas - SID 
 andreas.eich...@sid.sachsen.de wrote:

 I guess you're using an older version which doesn't check the type 
 attribute and defaults to WMS. The mode=tile parameter is part of your URL 
 and not build by MapCache. Everything else is an ordinary WMS request for a 
 5x5 metatile with 10px buffer: 5*256 + 2*10 = 1300.
 So simly omit the mode parameter from the URL and let MapCache do it's WMS 
 request. It will then itself respond using the requested tile service 
 interface.

 HTH


 Von: mapserver-users-boun...@lists.osgeo.org 
 [mapserver-users-boun...@lists.osgeo.org] im Auftrag von Hal Mueller 
 [h...@mobilegeographics.com]

 Gesendet: Mittwoch, 29. April 2015 05:47
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] mapcache config troubles, Tile parameter not set

 That request generates the following internal request, from Mapcache to 
 Mapserver. It’s pretty close; the layers are right, but not the SERVICE, 
 BBOX, WIDTH,
 and HEIGHT parameters.


 GET 
 /cgi-bin/mapserv?mode=tileVERSION=1.1.1REQUEST=GetMapSERVICE=WMSSTYLES=BBOX=-20135347.738994,-7611905.024751,-7416226.232341,5107216.481902WIDTH=1300HEIGHT=1300FORMAT=image/pngSRS=EPSG:3857MAP=/data/web/www/mapserver/sites.mapLAYERS=property_pt%20property_poly


 Mapcache.xml:
   source name=hpsites type=tms
  getmap
 params
FORMATimage/png/FORMAT
MAP/data/web/www/mapserver/sites.map/MAP
LAYERSproperty_pt%20property_poly/LAYERS



 /params
  /getmap



  http
 urlhttp://a.historypointer.com/cgi-bin/mapserv?mode=tile;/url
  /http
   /source


 ___
 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] permission denied on Trac

2015-04-29 Thread thomas bonfort
we moved to github a little while ago
https://github.com/mapserver/mapserver/issues/2436

On 29 April 2015 at 03:36, Richard Greenwood
richard.greenw...@gmail.com wrote:
 There is a link on this page http://mapserver.org/mapfile/outputformat.htm
 to this page http://trac.osgeo.org/mapserver/ticket/2436 but I get a
 permission denied even when I am logged into Trac.

 Thanks

 --
 Richard W. Greenwood, PLS
 www.greenwoodmap.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] Legend difference in 5.6.1 and 6.4.1

2015-04-30 Thread thomas bonfort
Could you check if the issue in 6.4 is related to the RESOLUTION parameter
in your mapfile (i.e. remove it and re-run)?
Mapserver 7.0 should be production ready unless you're using its remaining
blocking issue (TIME filters with MSSQL backends).

--
thomas

On 29 April 2015 at 22:34, mapserver mapser...@markus-spring.de wrote:

  Am 28.04.2015 um 08:11 schrieb thomas bonfort:

 Are you using the GD or AGG renderer? Do all truetype fonts exhibit
 this behavior? Can you test the 7.0 beta on this? Can you provide a
 self contained test-case to reproduce this?
 Lots of questions :)


  OK, to compare 5.6.7, 6.4.1 and 7.0.0beta, I compiled all three versions
 under centos 6.5 and
 created a simple mapfile:

 http://s.markus-spring.info/legend-agg.map

 Using the AGG renderer only because of its much better rendering, and got
 these results through the legend command:

 mapserver 5.6.7 (http://s.markus-spring.info/legend-agg-5.6.7.png)
 [image: legend-agg-5.6.7.png]

 mapserver 6.4.1 (http://s.markus-spring.info/legend-agg-6.4.1.png)
 [image: legend-agg-6.4.1.png]

 mapserver 7.0.0beta (http://s.markus-spring.info/legend-agg-7.0.0beta1.png
 )
 [image: legend-agg-7.0.0beta1.png]

 There are clear differences in the rendered font sizes, but 5.6.7 and
 7.0.0beta1 do not truncate the text, only 6.4.1 does.

 For me the question is if (or when) 7.0.0 is production quality already,
 and not only the mapserver itself but also mapcache, as the internet map
 services of the City of Munich are going to use that for the background
 maps.

 Best regards

 Markus

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1

2015-04-28 Thread thomas bonfort
Are you using the GD or AGG renderer? Do all truetype fonts exhibit
this behavior? Can you test the 7.0 beta on this? Can you provide a
self contained test-case to reproduce this?
Lots of questions :)

--
thomas

On 28 April 2015 at 06:19, mapserver mapser...@markus-spring.de wrote:
 Steve et. al.,
 this legend issue is a major showstopper and makes GetLegendGraphic quite
 useless if you need utf-8 characters with truetype.

 Is there any solution for this?

 Best regards - Markus

 Am 23.04.2015 um 09:45 schrieb mapserver:

 I am migrating my mapserver application from 5.6.1 to 6.4.1 and have
 observed a
 difference in the created legend images, i.e. truncating of class names -
 which
 makes the legend image unusable in the end

 The legend definition on both platforms is as such:

 LEGEND
  KEYSIZE 22 12
  LABEL
TYPE TRUETYPE
FONT arial
SIZE 8
COLOR 0 0 0
WRAP @
  END
  STATUS ON
 END # legend

 Mapfile: Umlauts in html-encoding like
 CLASS NAME Ouml;ffentlicher Trauml;ger

 I have to use a truetype font, otherwise I can't render the German
 umlauts.

 mapserver 5.6.1 gives this result:


 http://maps.muenchen.de/wms-2/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default

 and mapserver 6.4.1 gives this one:


 http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1service=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=default

 Have I missed something in the migration guide? Or are there parameter
 available
 to increase the legend size?

 Best regards - Markus
 ___
 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


Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field

2015-05-13 Thread thomas bonfort
can you try the same request without the matchCase part and report
back please?

On 12 May 2015 at 18:11,  steve.tout...@inspq.qc.ca wrote:
 I have a problem using a FILTER in a wfs getFeature request on an oracle DB
 with MS7
 When I launch a getFeature request with a Filter on a numeric field it
 doesn't work,
 ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:PropertyIsEqualTo
 matchCase=falseogc:PropertyNameLONG_STAT/ogc:PropertyNameogc:Literal-61/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter
 here is the error we get in the browser
 ows:Exception exceptionCode=NoApplicableCode locator=mapserv
ows:ExceptionTextmsWFSGetFeature(): WFS server error.
 FLTApplyFilterToLayer() failed
 msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data
 statement and server logs/ows:ExceptionText

 from mapserver logs
 [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter.
 String:  ([LONG_STAT] =*-61)

 LONG_STAT is a NUMBER in the DB
 DescribefeatureType returns
   element name=NO_STAT_CLIM minOccurs=0 type=string/
  element name=NO_STAT_FADQ minOccurs=0 type=string/
  element name=NOM_STAT minOccurs=0 type=string/
  element name=LATI_STAT minOccurs=0 type=string/
  element name=LONG_STAT minOccurs=0 type=string/
  element name=ALTI_STAT minOccurs=0 type=string/

 I tried to add gml_types auto in the mapfile, but it still returns
 string as data type
 I tried gml_LONG_STAT_type = Integer in the mapfile, describeFeatureType
 returns element name=LONG_STAT minOccurs=0 type=double/  but I
 still get an error in getFeature

 I'm using CONNECTIONTYPE oraclespatial in the mapfile

 I can provide more information

 Is it a known issue or can I do something about that?

 Thank you!
 ___
 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 6.4.1 - special characters in legend

2015-04-15 Thread thomas bonfort
Do yourself a favour and save your mapfile in UTF-8. This will be a
requirement anyways starting from version 7.0.

You need to set label-type=truetype and label-size=9 (i.e. in
pixels, not large) for it to work.

--
thomas

On 15 April 2015 at 15:13, Carmen Delia Hernández Pérez
cdhernan...@tenerife.es wrote:

 Thanks but this solution does not work me.

 My enconding is ISO-8859-1 that i think is the default encoding of 
 Mapserver.

 My mapfile is saved with that encoding and although I put ENCODING tag in 
 LABEL section of LEGEND this remains same.

 Do you know of what library depends legend generation? I think as I compile 
 mapserver the problem can be in some library. Or can be related with some 
 configuration of Centos7. I don´t know where to look more. I have used more 
 microsoft windows enviromment.


 Thanks in advance.
 Carmen.
 -Mensaje original-
 De: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Jörg Thomsen
 Enviado el: miércoles, 15 de abril de 2015 13:18
 Para: mapserver-users@lists.osgeo.org
 Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend

 see below inline

 Am 15.04.2015 um 14:10 schrieb Carmen Delia Hernández Pérez:
 Thanks but I have tried that option and it does not work.
 I have for example in my mapfile

 FONTSET DEPORTES_FUTBOL/fonts/fontset.txt

   LEGEND
  KEYSIZE 30 12
  LABEL
 FONT Arial
 SIZE LARGE
 COLOR 0 255 0

 ENCODING UTF-8  # or whatever your mapfile is encoded in



  END
   END

 Jörg
 ___
 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

Re: [mapserver-users] Anchorpoint for pixmap symbol?

2015-04-15 Thread thomas bonfort
The functionality is implemented and is working correctly, c.f.
https://github.com/mapserver/msautotest/blob/master/renderers/marker_anchorpoint.map
https://github.com/mapserver/msautotest/blob/master/renderers/expected/marker_anchorpoint.png

... need more info

--
thomas

On 15 April 2015 at 09:14, wiltomap wilt...@gmail.com wrote:
 Hi all,

 I need to set an anchorpoint for a pixmap symbol (*png file). Is there a way
 to achieve that in a mapfile? So far, I have tested the following code
 inside a mapfile, which gives no result:

 SYMBOL
 NAME 'mySymbol'
 TYPE pixmap
 ANCHORPOINT 0 1
 IMAGE symbols/mySymbol.png
 END

 Any idea on this topic? I'm using MapServer 6.4.1.

 Thanks!



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Anchorpoint-for-pixmap-symbol-tp5201394.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] query in mapfile

2015-06-18 Thread thomas bonfort
http://mapserver.org/cgi/runsub.html

On 18 June 2015 at 15:23, hosain mohammadi hosain.mo...@gmail.com wrote:
 the code below is a layer in map file  in this code i want create a query in
 postgis for shortestpath but a the number 77 and 388 is the source and
 target and the result create successfully but  my problem is how insert  the
 number ( 77, 388)  in template file or insert by user
 how insert from html file




 LAYER
 CONNECTION host=localhost   dbname=network  user=postgres
 password=021555  port=5432
 CONNECTIONTYPE POSTGIS
 DATA geom from (SELECT  *  from pgr_dijkstra(
 'SELECT gid as id , source , target , cost FROM tehran' , 77, 388, false
 , false ) a  LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid
 using srid=4326
 NAME shortestpath
 PROJECTION
   proj=utm
   zone=39
   datum=WGS84
   units=m
   no_defs
 END # PROJECTION
 STATUS ON
 TEMPLATE query
 TILEITEM location
 TYPE LINE
 UNITS METERS
 CLASS
   NAME Class (0)
   STYLE
 COLOR 255 128 64
 SIZE 8
 WIDTH 10
   END # STYLE
 END # CLASS
   END # LAYER


 ___
 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] libiconv

2015-06-24 Thread thomas bonfort
You shouldn't be needing any iconv specific switches on centos. Start anew
(rm -rf * in the build directory) and just run cmake
-DCMAKE_INSTALL_PREFIX=/opt

Thomas
On Jun 23, 2015 22:25, Mérette, Jacques (Consultant) 
jacques.merett...@mtq.gouv.qc.ca wrote:

  Hi,



 I try to install MapServer 7 (beta) on CentOS 7 and I have the following
 error:



 [root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/opt
 --with-libiconv=/usr/local/lib .. ../configure.out.txt





 [root@localhost build]# make

 [ 73%] Built target mapserver

 Linking C executable legend

 libmapserver.so.7.1-dev: undefined reference to `libiconv_open'

 libmapserver.so.7.1-dev: undefined reference to `libiconv_close'

 libmapserver.so.7.1-dev: undefined reference to `libiconv'

 collect2: error: ld returned 1 exit status

 make[2]: *** [legend] Error 1

 make[1]: *** [CMakeFiles/legend.dir/all] Error 2

 make: *** [all] Error 2



 I tried different switches (--with-libiconv-prefix and –liconv) without
 success. Any ideas



 Thx

 *Jacques Mérette*

 Architecte technologique

 Division des infrastructures technologiques

 Service des infrastructures technologiques appliquées aux opérations

 Direction des technologies de l’information

 Ministère des Transports du Québec

 Tél: 418-643-5350 # 24685

 jacques.merett...@mtq.gouv.qc.ca



 Boîte commune : architectes-technologique._c-...@mtq.gouv.qc.ca



 ___
 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] symbol SVG with format image/png

2015-06-12 Thread thomas bonfort
Add a SIZE...
On Jun 12, 2015 4:12 PM, Marc-André Trottier 
marcandre_trott...@hotmail.com wrote:

 with a getMap request with format = image/png,
 if i got one layer with a SVG symbol, is it supposed to be rendered ?
 in my case : no.

 layer's class :
 CLASS
 NAME Camera
 GROUP DEFAULT
 STYLE
 SYMBOL 'http://
 geoegl.msp.gouv.qc.ca/gouvouvert/public/images/marqueur/fleche.svg'
 END
 END

 mapserver config :
 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 ___
 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] getting corrupted png with WMS request to mapserv CGI on command line

2015-05-27 Thread thomas bonfort
IMAGEPATH /tmp/ should be changed to
IMAGEPATH /tmp/

--
thomas

On 27 May 2015 at 11:47, Renzo Kottmann rkott...@mpi-bremen.de wrote:
 Hi All,

 I have installed mapserver 6.4.1 in a docker container based on debian
 jessie (see dockerfile below)

 If I run:

 /usr/lib/cgi-bin/mapserv -nh
 QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimageREQUEST=GetMapSERVICE=WMSVERSION=1.1.1map=/genes-mapserver/wms_test.mapSRS=EPSG:4326BBOX=-180,-90,180,90FORMAT=image/pngWIDTH=1080HEIGHT=614STYLES=LAYERS=satellite_mod
 /tmp/test.png

 The png is corrupt and I can not open it with neither gimp nor firefox.


 However, I get valid pngs using the very same map file with shp2img or
 mapserv -nh
 QUERY_STRING=map=/genes-mapserver/wms_test.mapmode=maplayers=satellite_mod
 .


 Find below more details (mapserver version, exact command lines I used and
 resulting debug logs, map file, and docker file)


 I searched google, the mailing list archives, but nothing seems to be
 similar to this problem. Therefore, any help is very much appreciated :)

 ciao,
 renzo


 * Mapserver Version:

 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE
 SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV
 SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
 SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
 SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


 * Command lines

 Generates valid png:

 /usr/lib/cgi-bin/mapserv -nh
 QUERY_STRING=map=/genes-mapserver/wms_test.mapmode=maplayers=satellite_mod
 /tmp/test.png

 shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o /tmp/test.png


 Generates invalid corrupt png:

 /usr/lib/cgi-bin/mapserv -nh
 QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimageREQUEST=GetMapSERVICE=WMSVERSION=1.1.1map=/genes-mapserver/wms_test.mapSRS=EPSG:4326BBOX=-180,-90,180,90FORMAT=image/pngWIDTH=1080HEIGHT=614STYLES=LAYERS=satellite_mod
 /tmp/test.png



 * Log file (for all three runs in that order):


 [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79
 [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using outputformat
 named png (AGG/PNG).
 [Wed May 27 08:51:44 2015].476916 msDrawMap(): WMS/WFS set-up and query,
 0.000s
 [Wed May 27 08:51:44 2015].478222 msDrawRasterLayerLow(satellite_mod):
 entering.
 [Wed May 27 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod),
 0.540s
 [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing Label Cache, 0.000s
 [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: 0.541s
 [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) total time: 0.022s
 [Wed May 27 08:51:45 2015].38838 mapserv request processing time (msLoadMap
 not incl.): 0.563s

 [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using outputformat
 named png (AGG/PNG).
 [Wed May 27 08:56:29 2015].752820 msDrawMap(): WMS/WFS set-up and query,
 0.000s
 [Wed May 27 08:56:29 2015].754465 msDrawRasterLayerLow(satellite_mod):
 entering.
 [Wed May 27 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod),
 0.543s
 [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing Label Cache, 0.000s
 [Wed May 27 08:56:30 2015].295684 msDrawMap() total time: 0.544s
 [Wed May 27 08:56:30 2015].323794 msSaveImage(/tmp/test.png) total time:
 0.028s

 [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82
 [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): enabling
 non-square pixels.
 [Wed May 27 08:59:28 2015].996733 msDrawMap(): kicking into non-square
 pixel preserving mode.
 [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using outputformat
 named png (AGG/PNG).
 [Wed May 27 08:59:28 2015].997614 msDrawMap(): WMS/WFS set-up and query,
 0.000s
 [Wed May 27 08:59:28 2015].998950 msDrawRasterLayerLow(satellite_mod):
 entering.
 [Wed May 27 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod),
 0.653s
 [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing Label Cache, 0.000s
 [Wed May 27 08:59:29 2015].651167 msDrawMap() total time: 0.656s
 [Wed May 27 08:59:29 2015].681373 msSaveImage(stdout) total time: 0.030s
 [Wed May 27 08:59:29 2015].681769 mapserv request processing time
 (msLoadMap not incl.): 0.686s


 * map file


 MAP
 NAME wms_test
 STATUS ON
 EXTENT -180 -90 180 90
 IMAGECOLOR 210 210 210
 IMAGETYPE png
 SIZE 1080 614
 UNITS dd

 CONFIG MS_ERRORFILE /tmp/wms_test_error.txt
 DEBUG 2


 PROJECTION
 #this is WGS84
 init=epsg:4326
 END


 SYMBOLSET etc/symbols.sym
 FONTSET etc/fonts/fonts.txt

 WEB
 IMAGEPATH /tmp/
 IMAGEURL /tmp/

 ERROR /error.html
 EMPTY /no_result.html


 METADATA
 ### Enable WFS support
 wms_title   wms test
 wms_onlineresource  http://localhost/wms?;
 wms_srs EPSG:4326
 wms_enable_request  GetCapabilities GetMap GetFeatureInfo
 GetLegendGraphic
 ows_enable_request  GetCapabilities GetMap GetFeatureInfo
 GetLegendGraphic
 

Re: [mapserver-users] Kernel Map MapServer 7 WMS Server Bug!?

2015-07-07 Thread thomas bonfort
Sorry, clicked on send to fast...
Can you try explicitely setting PROJECTION blocks on your mapfile
layers and report back. We seem to be having issues on these
intermediate layer cases when those are not set.

--
thomas

On 7 July 2015 at 17:52, thomas bonfort thomas.bonf...@gmail.com wrote:
 https://github.com/mapserver/mapserver/issues/5114#issuecomment-119091025


 On 7 July 2015 at 17:50, Helton Nogueira Uchoa
 engenheiro.uc...@gmail.com wrote:
 Hi list,

 I'm trying to make a WMS Server with a kernel (density) map with MapServer
 7. In same situations (BBOX size, WIDTH and HEIGHT values) the image  is
 returned with no information (white image). Is it a BUG?

 Example: image with kernel map

 http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.mapLAYERS=heatmapBBOX=-79.369542201052,-39.684771100526,0,0WIDTH=800HEIGHT=400VERSION=1.1.1FORMAT=image%2FpngSERVICE=WMSREQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326

 Example: image with white image

 http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.mapLAYERS=heatmapBBOX=-79.369542201052,-39.684771100526,0,0WIDTH=800HEIGHT=500VERSION=1.1.1FORMAT=image%2FpngSERVICE=WMSREQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326

 MAP FILE:

   layer
 name heatmap
 type raster
 connectiontype kerneldensity
 connection points
 status on
 processing RANGE_COLORSPACE=%color%
 processing KERNELDENSITY_RADIUS=%radius%
 processing KERNELDENSITY_COMPUTE_BORDERS=%border%
 processing KERNELDENSITY_NORMALIZATION=%norm%
 offsite 0 0 0
 SCALETOKEN
   NAME %radius%
   VALUES
 0 15
 25500 20
   END
 END
 SCALETOKEN
   NAME %border%
   VALUES
 0 ON
 25500 OFF
   END
 END
 SCALETOKEN
   NAME %norm%
   VALUES
 0 AUTO
 25500 30
   END
 END
 SCALETOKEN
   NAME %color%
   VALUES
 0 HSL
 25500 RGB
   END
 END
 class
   style
 COLORRANGE  #ff00  #
 DATARANGE 0 32
   end
   style
 COLORRANGE  #  #ffff
 DATARANGE 32 255
   end
 end
   end

   LAYER
 name points
 status on
 type POINT
 CONNECTION user=postgres password=xx dbname=yy host=localhost
 CONNECTIONTYPE POSTGIS
 DATA 'geom FROM atividades USING UNIQUE id_atividade USING SRID=4326'
 CLASS
  #MAXSCALE 27500
  STYLE
   SIZE 2
  END # style
 END #class
   END # final do layer


 Uchoa
 --
 Helton Nogueira UCHOA :: engenheiro.uc...@gmail.com
 Information Technology and Geospatial Specialist - Project Manager
 OSGeo Charter Member (www.osgeo.org)
 +55 85 8886-3909 (OI - WhatsApp) :: +55 85 9716-7769 (TIM) :: +55 85
 3037-8689 (MULTIPLAY)
 Blog: helton.uchoa.com/
 LinkedIn: br.linkedin.com/in/heltonuchoa/
 Facebook: www.facebook.com/HeltonNogueiraUchoa
 Twitter: https://twitter.com/helton_uchoa (@helton_uchoa)
 Vimeo: https://vimeo.com/channels/engenheirouchoa
 Papers: http://pt.scribd.com/heltonuchoa

 ___
 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] Kernel Map MapServer 7 WMS Server Bug!?

2015-07-07 Thread thomas bonfort
https://github.com/mapserver/mapserver/issues/5114#issuecomment-119091025


On 7 July 2015 at 17:50, Helton Nogueira Uchoa
engenheiro.uc...@gmail.com wrote:
 Hi list,

 I'm trying to make a WMS Server with a kernel (density) map with MapServer
 7. In same situations (BBOX size, WIDTH and HEIGHT values) the image  is
 returned with no information (white image). Is it a BUG?

 Example: image with kernel map

 http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.mapLAYERS=heatmapBBOX=-79.369542201052,-39.684771100526,0,0WIDTH=800HEIGHT=400VERSION=1.1.1FORMAT=image%2FpngSERVICE=WMSREQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326

 Example: image with white image

 http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.mapLAYERS=heatmapBBOX=-79.369542201052,-39.684771100526,0,0WIDTH=800HEIGHT=500VERSION=1.1.1FORMAT=image%2FpngSERVICE=WMSREQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326

 MAP FILE:

   layer
 name heatmap
 type raster
 connectiontype kerneldensity
 connection points
 status on
 processing RANGE_COLORSPACE=%color%
 processing KERNELDENSITY_RADIUS=%radius%
 processing KERNELDENSITY_COMPUTE_BORDERS=%border%
 processing KERNELDENSITY_NORMALIZATION=%norm%
 offsite 0 0 0
 SCALETOKEN
   NAME %radius%
   VALUES
 0 15
 25500 20
   END
 END
 SCALETOKEN
   NAME %border%
   VALUES
 0 ON
 25500 OFF
   END
 END
 SCALETOKEN
   NAME %norm%
   VALUES
 0 AUTO
 25500 30
   END
 END
 SCALETOKEN
   NAME %color%
   VALUES
 0 HSL
 25500 RGB
   END
 END
 class
   style
 COLORRANGE  #ff00  #
 DATARANGE 0 32
   end
   style
 COLORRANGE  #  #ffff
 DATARANGE 32 255
   end
 end
   end

   LAYER
 name points
 status on
 type POINT
 CONNECTION user=postgres password=xx dbname=yy host=localhost
 CONNECTIONTYPE POSTGIS
 DATA 'geom FROM atividades USING UNIQUE id_atividade USING SRID=4326'
 CLASS
  #MAXSCALE 27500
  STYLE
   SIZE 2
  END # style
 END #class
   END # final do layer


 Uchoa
 --
 Helton Nogueira UCHOA :: engenheiro.uc...@gmail.com
 Information Technology and Geospatial Specialist - Project Manager
 OSGeo Charter Member (www.osgeo.org)
 +55 85 8886-3909 (OI - WhatsApp) :: +55 85 9716-7769 (TIM) :: +55 85
 3037-8689 (MULTIPLAY)
 Blog: helton.uchoa.com/
 LinkedIn: br.linkedin.com/in/heltonuchoa/
 Facebook: www.facebook.com/HeltonNogueiraUchoa
 Twitter: https://twitter.com/helton_uchoa (@helton_uchoa)
 Vimeo: https://vimeo.com/channels/engenheirouchoa
 Papers: http://pt.scribd.com/heltonuchoa

 ___
 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] MapCache 1.4 Released

2015-07-28 Thread thomas bonfort
The MapServer PSC is pleased to announce the release of MapCache
version 1.4.0. You can read about the major new features here:
http://mapserver.org/development/announce/mapcache-1-4.html and
download links here: http://mapserver.org/download.html

Best Regards,
The MapServer PSC
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 7.0 release

2015-07-24 Thread thomas bonfort
Hi All,

The MapServer team is pleased to finally announce the release of
MapServer's 7th major version.

You'll find a list of major changes since version 6.4 in
http://www.mapserver.org/development/announce/7-0.html , the detailed
list of changes since the last beta2 in
http://www.mapserver.org/development/changelog/changelog-7-0.html ,
and the download links in http://www.mapserver.org/download.html . As
usual, please read the migration guide in
http://mapserver.org/MIGRATION_GUIDE.html if you are updating an
existing installation.

Best regards,
The MapServer PSC and developers.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Very strange problem doing a query and hanging on MS 6.4.1

2015-07-13 Thread thomas bonfort
Or that could just be the number of pixels under the query point if
you are zoomed out far or with a large tolerance...

On 13 July 2015 at 17:01, Stephen Woodbridge wood...@swoodbridge.com wrote:
 Thomas,

 More information:

 /u/software/mapserver-rel-6-4-2/maptemplate.c:4366

 4366for(j=0; jlp-resultcache-numresults; j++) {
 (gdb) p lp-resultcache-numresults
 $7 = 2884991

 this is clearly a bad value my guess is that it is not getting initialized
 to zero and assumes it will get set when some number of results are found,
 but if no results are found it is not getting set to zero. (Just a
 hypothesis)

 -Steve W


 On 7/13/2015 10:41 AM, Stephen Woodbridge wrote:

 Thomas,

 Here is the initial backtrace afte starting it and and ^C while it is
 printing -9 lines:

 #0  processLine (mapserv=0x609050, instr=0x7fffcc60 [value_0]\n,
  stream=0x688460, mode=9)
  at /u/software/mapserver-rel-6-4-2/maptemplate.c:3697
 #1  0x77a2e9cc in msReturnPage (mapserv=0x609050,
  html=0x6612e0 /maps/wms/pixel.value.html, mode=9, papszBuffer=0x0)
  at /u/software/mapserver-rel-6-4-2/maptemplate.c:4159
 #2  0x77a2f7ed in msReturnNestedTemplateQuery (mapserv=0x609050,
  pszMimeType=0x60c8f0 text/html, papszBuffer=0x0)
  at /u/software/mapserver-rel-6-4-2/maptemplate.c:4385
 #3  0x77a1f586 in msReturnTemplateQuery (mapserv=0x609050,
  queryFormat=0x60c8f0 text/html, papszBuffer=0x0)
  at /u/software/mapserver-rel-6-4-2/maptemplate.c:315
 #4  0x779f1230 in msCGIDispatchQueryRequest (mapserv=0x609050)
  at /u/software/mapserver-rel-6-4-2/mapservutil.c:1476
 #5  0x779f2205 in msCGIDispatchRequest (mapserv=0x609050)
  at /u/software/mapserver-rel-6-4-2/mapservutil.c:1784
 #6  0x0040115b in main (argc=2, argv=0x7fffdf98)
  at /u/software/mapserver-rel-6-4-2/mapserv.c:259

 I'll poke around a little more in gdb and see if I can figure out
 anything more.

 Thanks,
-Steve


 On 7/13/2015 4:12 AM, thomas bonfort wrote:

 Steve,
 please include a backtrace from gdb where you believe the infinite
 loop is happening.

 --
 thomas

 On 13 July 2015 at 01:22, Stephen Woodbridge wood...@swoodbridge.com
 wrote:

 I added gdalinfo on an actual raster file below. It turns out the
 -9 is
 the NoData Value. I would be happy to just get this value back
 (once), but I
 think something is broken and putting mapserver into an infinite loop.

 -Steve W


 On 7/12/2015 7:14 PM, Stephen Woodbridge wrote:


 Hi all,

 I have run into a very strange problem doing a mapserver query. I'm
 upgrading a system that was running fine. The details are below. I also
 tried to put the template inside a CLASS ... END block that didn't
 help.

 Can anyone else reproduce something like this?
 Got any ideas on how to work around it?

 Thanks,
 -Steve W

 Old system:
 Ubuntu 12.04 LTS

 MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
 SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
 SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
 SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 New system:
 Ubuntu 14.04 LTS

 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG
 INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 The query layer looks like this:

 LAYER
 NAME model_query
 STATUS on
 TYPE raster

 TILEINDEX NOAA_Coastal_Relief_Model/index.shp
 TILEITEM LOCATION
 TEMPLATE /maps/wms/pixel.value.html
 END


 cat /maps/wms/pixel.value.html
 !-- MapServer Template --
 [value_0]


 dbf_dump -info wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf
 Filename:   wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf
 Version:0x03 (ver. 3)
 Num of records: 61
 Header length:  65
 Record length:  256
 Last change:1995/7/26
 Num fields: 1
 Field info:
 Num NameTypeLen Decimal
 1.  LOCATIONC   255 0


 dbf_dump  wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf | head
 NOAA_Coastal_Relief_Model/BSM-1035.tif
 NOAA_Coastal_Relief_Model/BSM-1156.tif
 NOAA_Coastal_Relief_Model/BSM-1193.tif
 NOAA_Coastal_Relief_Model/BSM-1239.tif
 NOAA_Coastal_Relief_Model/BSM-1261.tif
 NOAA_Coastal_Relief_Model/BSM-1326.tif
 NOAA_Coastal_Relief_Model/BSM-1343.tif
 NOAA_Coastal_Relief_Model/BSM-1536.tif
 NOAA_Coastal_Relief_Model/BSM-1557.tif
 NOAA_Coastal_Relief_Model/BSM-1801.tif

 ogrinfo -so wms/data/Bathy/NOAA_Coastal_Relief_Model

Re: [mapserver-users] mapcache wms assembly

2015-07-20 Thread thomas bonfort
No.

On 20 July 2015 at 18:13, Travis Kirstine tkirst...@firstbasesolutions.com
wrote:

 Does mapcache manage the number of internal concurrent request when
 assembling layers to ensure MaxClients is not exceeded?

 --
   [image: FBS Logo]

 *Travis Kirstine*, Web Development Supervisor
 *t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
 tkirst...@firstbasesolution.com

 *First Base Solutions Inc.*
 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
 *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.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] Very strange problem doing a query and hanging on MS 6.4.1

2015-07-13 Thread thomas bonfort
Steve,
please include a backtrace from gdb where you believe the infinite
loop is happening.

--
thomas

On 13 July 2015 at 01:22, Stephen Woodbridge wood...@swoodbridge.com wrote:
 I added gdalinfo on an actual raster file below. It turns out the -9 is
 the NoData Value. I would be happy to just get this value back (once), but I
 think something is broken and putting mapserver into an infinite loop.

 -Steve W


 On 7/12/2015 7:14 PM, Stephen Woodbridge wrote:

 Hi all,

 I have run into a very strange problem doing a mapserver query. I'm
 upgrading a system that was running fine. The details are below. I also
 tried to put the template inside a CLASS ... END block that didn't help.

 Can anyone else reproduce something like this?
 Got any ideas on how to work around it?

 Thanks,
-Steve W

 Old system:
 Ubuntu 12.04 LTS

 MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
 SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
 SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
 SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 New system:
 Ubuntu 14.04 LTS

 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 The query layer looks like this:

 LAYER
NAME model_query
STATUS on
TYPE raster

TILEINDEX NOAA_Coastal_Relief_Model/index.shp
TILEITEM LOCATION
TEMPLATE /maps/wms/pixel.value.html
 END


 cat /maps/wms/pixel.value.html
 !-- MapServer Template --
 [value_0]


 dbf_dump -info wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf
 Filename:   wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf
 Version:0x03 (ver. 3)
 Num of records: 61
 Header length:  65
 Record length:  256
 Last change:1995/7/26
 Num fields: 1
 Field info:
 Num NameTypeLen Decimal
 1.  LOCATIONC   255 0


 dbf_dump  wms/data/Bathy/NOAA_Coastal_Relief_Model/index.dbf | head
 NOAA_Coastal_Relief_Model/BSM-1035.tif
 NOAA_Coastal_Relief_Model/BSM-1156.tif
 NOAA_Coastal_Relief_Model/BSM-1193.tif
 NOAA_Coastal_Relief_Model/BSM-1239.tif
 NOAA_Coastal_Relief_Model/BSM-1261.tif
 NOAA_Coastal_Relief_Model/BSM-1326.tif
 NOAA_Coastal_Relief_Model/BSM-1343.tif
 NOAA_Coastal_Relief_Model/BSM-1536.tif
 NOAA_Coastal_Relief_Model/BSM-1557.tif
 NOAA_Coastal_Relief_Model/BSM-1801.tif

 ogrinfo -so wms/data/Bathy/NOAA_Coastal_Relief_Model/index.shp index
 INFO: Open of `wms/data/Bathy/NOAA_Coastal_Relief_Model/index.shp'
using driver `ESRI Shapefile' successful.

 Layer name: index
 Geometry: Polygon
 Feature Count: 61
 Extent: (-130.000417, 16.999583) - (-65.999599, 49.000401)
 Layer SRS WKT:
 (unknown)
 location: String (255.0)


 When I issue a query like:

 /usr/lib/cgi-bin/mapserv

 QUERY_STRING='map=/maps/wms/bathymetry.mapmode=querylayers=model_querymapxy=-100.98125+41.58125'


 The old server responded with:
 Content-Type: text/html

 HTML
 HEADTITLEMapServer Message/TITLE/HEAD
 !-- MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
 SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
 SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
 SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE --
 BODY BGCOLOR=#FF
 msQueryByPoint(): Search returned no results. No matching record(s) found.
 /BODY/HTMLYou have new mail in /var/mail/root


 I get an infinite number of lines like the following on the new server:

 # /usr/lib/cgi-bin/mapserv

 QUERY_STRING='map=/maps/wms/bathymetry.mapmode=querylayers=model_querymapxy=-100.98125+41.58125'
 | head
 Content-Type: text/html

 -9
 -9
 -9
 -9
 -9
 -9
 -9
 -9
 ^C


 # gdalinfo wms/data/Bathy/NOAA_Coastal_Relief_Model/BSM-1156.tif
 Driver: GTiff/GeoTIFF
 Files: wms/data/Bathy/NOAA_Coastal_Relief_Model/BSM-1156.tif
 Size is 4801, 4801
 Coordinate System is:
 GEOGCS[WGS 84,
 DATUM[WGS_1984,
 SPHEROID[WGS 84,6378137,298.257223563,
 AUTHORITY[EPSG,7030]],
 AUTHORITY[EPSG,6326]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4326]]
 Origin = (-102.0008006,41.00081732997)
 Pixel Size = (0.0008000,-0.0008000)
 Metadata:
   AREA_OR_POINT=Point
 Image Structure Metadata:
   INTERLEAVE=BAND

Re: [mapserver-users] Ogrtileindex bug in Mapserver 7.0

2015-10-22 Thread thomas bonfort
did this work OK with previous mapserver versions ?

On 22 October 2015 at 10:39, Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi> wrote:
> Hi,
>
> I have loads of shapefiles on a disk and I have combined them into a single 
> layer by creating an index shapefile with ogrtindex 
> http://www.gdal.org/ogrtindex.html which is doing the same for the original 
> vector datasets than gdaltindex for images by storing an envelope of each 
> source dataset into the index file. "Vector tile" in my question means the 
> envelope in the ogrtindex shapefile.
>
> The issue is that when I use CONNECTIONTYPE OGR and the BBOX of the GetMap 
> request is totally inside of some envelope in the ogrtindex shapefile then 
> Mapserver believes that BBOX contains no data. It only finds the envelopes 
> (and finally the original vector data by following the file path that is 
> stored into the LOCATION field)  if BBOX is intersecting the boundary of an 
> envelope. See my trial with ASCII graphics below, when BBOX is totally inside 
> the envelope then no data are found. The key is that data are not found when 
> BBOX intersects with the envelope (the interior of the polygon) but not with 
> the boundary of the polygon. With native TILEINDEX access to vector data this 
> issue does not happen.
>
>
> ---
> |   - |
> |  | BBOX |   |   |  --|
> --
>
> -Jukka Rahkonen
>
> thomas Bonfort wrote:
>
> It's not clear to me what your issue actually is
>
>> reading data from the shapefiles which are behind the ogrtileindex
>> file only if the BBOX of the WMS GetMap request intersects the
>> boundary of the vector tile
>
> ->why is that not the expected behavior?
> -> what do you mean by "vector tile" ?
>
> On 21 October 2015 at 10:30, Rahkonen Jukka (MML) 
> <jukka.rahko...@maanmittauslaitos.fi> wrote:
>> Hi,
>>
>>
>>
>> I was wondering why my ogrtileindex layer sometimes works but sometimes not.
>> It appears that Mapserver is reading data from the shapefiles which
>> are behind the ogrtileindex file only if the BBOX of the WMS GetMap
>> request intersects the boundary of the vector tile.  Mapserver version
>> is 7.0.0 on Linux and GDAL version is 2.0.1, released 2015/09/15. The
>> ogrtindex file is shapefile and it is defined in the mapfile as
>>
>>
>>
>>   CONNECTIONTYPE OGR
>>
>>   TILEINDEX "/tindex/heigthidx.shp,0"
>>
>>
>>
>> Can anybody suggest a quick workaround?
>>
>>
>>
>>
>>
>> -Jukka Rahkonen-
>>
>>
>> ___
>> 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] COMPOSITE opacity

2015-10-27 Thread thomas bonfort
Can you try with the tbonfort/compfilters branch and report back?

On 26 October 2015 at 21:36, Moretti Edmar  wrote:
> Hi.
>
> I'm using version 7 of MapServer but I can not set the opacity of a layer.
> I've tried several ways:
>
> $layer->set ("opacity", 40);
> $layer->compositer->set ("opacity", 40);
> $layer->compositer->opacity = 40;
> $layer->updateFromString('LAYER COMPOSITE OPACITY 40 END END');
>
> I still fail.
>
> Any idea?
> There is documentation on how to use COMPOSITE with MapScript?
>
> --
> Edmar Moretti
> http://www.edmarmoretti.com.br
> Skype: edmar.moretti
> gTalk: edmar.moretti
>
> ___
> 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] Encoding problem

2015-10-26 Thread thomas bonfort
The cpg file is not read/used by mapserver.
In your case, and as Stephen pointed out, you should make sure that
the font you are using with mapserver contains the glyphs for your
greek glyphs.

--
thomas

On 26 October 2015 at 20:37, Stefanos Anastasiou <emperor_s...@yahoo.gr> wrote:
> Well, apparently there's a problem with greek letters.  I created a
> shapefile from scratch and saved it with UTF-8 encoding. A ".cpg" file is
> created along the shapefile as well that has only the "UTF-8" statement. I
> entered greek letters in the shapefile's field and used
>
>ENCODING UTF-8
>
> in the layer level.  Also dbfdump  gives me UTF-8 Unicode text.
>
> Still getting weird symbols. The only readable letter is "π"
>
> Thank you.
>
> -Stefanos
>
>
>
>
>
>
>
> Στις 9:11 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort
> <thomas.bonf...@gmail.com> έγραψε:
>
>
>> RFC suggests all characters should iconv'd to
>> UTF-8. Am I right?
> If you're creating the datasource from scratch and have the choice,
> then yes, use UTF8. If you have an exisiting datasource you cannot
> modify, just set the LAYER->ENCODING to ISO-8859 (well, the one that
> is is supported by iconv) and the transormation to utf8 will be done
> automatically and internally by mapserver.
>
> --
> thomas
>
>
>>
>>
>> -Stefanos
>>
>>
>>
>>
>> Στις 8:25 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort
>> <thomas.bonf...@gmail.com> έγραψε:
>>
>>
>> Stefanos,
>> First off, you *need* to know the encoding that's actually used by
>> each datasource, there's no way of guessing that reliably
>> programmatically. And since MapServer 7, the ENCODING keyword has been
>> moved to the LAYER level:
>> http://mapserver.org/development/rfc/ms-rfc-103.html
>> If you have the possibility, and/or in the future, always use UTF8
>> inside your datasources.
>>
>> regards,
>> thomas
>>
>> On 26 October 2015 at 19:16, Stefanos Anastasiou <emperor_s...@yahoo.gr>
>> wrote:
>>> Hello everybody.
>>>
>>> I'm having a small issue with truetype and encoding in greek. Instead of
>>> normal letters I'm getting weird symbols or even shapes.
>>>
>>> iconv -l | grep {GREEK |  ISO-8859-7 | WINDOWS-1253}  are all
>>> present in the system.
>>>
>>>
>>> My Mapserver version:
>>>
>>> MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
>>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP
>>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>>> SUPPORTS=WFS_SERVER
>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
>>> SUPPORTS=FASTCGI
>>> SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>>> INPUT=SHAPEFILE
>>>
>>>
>>> My LABEL object in my code is the following:
>>>
>>>LABEL
>>>TYPE truetype
>>>FONT arial
>>>SIZE 6
>>>PARTIALS TRUE
>>>ENCODING GREEK
>>>END
>>>
>>> I also tried ENCODING ISO-8859-7 and WINDOWS-1253. But getting symbols
>>> instead of letters. The closest to human readable is with encoding
>>> UTF-8...
>>> but still.
>>>
>>> I'm probably missing something here.What is the problem ?
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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] Encoding problem

2015-10-26 Thread thomas bonfort
> RFC suggests all characters should iconv'd to
> UTF-8. Am I right?
If you're creating the datasource from scratch and have the choice,
then yes, use UTF8. If you have an exisiting datasource you cannot
modify, just set the LAYER->ENCODING to ISO-8859 (well, the one that
is is supported by iconv) and the transormation to utf8 will be done
automatically and internally by mapserver.

--
thomas

>
>
> -Stefanos
>
>
>
>
> Στις 8:25 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort
> <thomas.bonf...@gmail.com> έγραψε:
>
>
> Stefanos,
> First off, you *need* to know the encoding that's actually used by
> each datasource, there's no way of guessing that reliably
> programmatically. And since MapServer 7, the ENCODING keyword has been
> moved to the LAYER level:
> http://mapserver.org/development/rfc/ms-rfc-103.html
> If you have the possibility, and/or in the future, always use UTF8
> inside your datasources.
>
> regards,
> thomas
>
> On 26 October 2015 at 19:16, Stefanos Anastasiou <emperor_s...@yahoo.gr>
> wrote:
>> Hello everybody.
>>
>> I'm having a small issue with truetype and encoding in greek. Instead of
>> normal letters I'm getting weird symbols or even shapes.
>>
>> iconv -l | grep {GREEK |  ISO-8859-7 | WINDOWS-1253}  are all
>> present in the system.
>>
>>
>> My Mapserver version:
>>
>> MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP
>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>> SUPPORTS=WFS_SERVER
>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
>> SUPPORTS=FASTCGI
>> SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>> INPUT=SHAPEFILE
>>
>>
>> My LABEL object in my code is the following:
>>
>>LABEL
>>TYPE truetype
>>FONT arial
>>SIZE 6
>>PARTIALS TRUE
>>ENCODING GREEK
>>END
>>
>> I also tried ENCODING ISO-8859-7 and WINDOWS-1253. But getting symbols
>> instead of letters. The closest to human readable is with encoding
>> UTF-8...
>> but still.
>>
>> I'm probably missing something here.What is the problem ?
>
>>
>>
>>
>>
>>
>>
>> ___
>> 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] MapCache: cache some zoom levels, proxy others?

2015-10-28 Thread thomas bonfort
Paul,

Are you using metatiling? That would substantially reduce the number
of requests mapcache does to mapserver.

You also have the

...
   true

option, that lets mapcache launch mapserver requests in parallel
instead of sequentially (YMMV, this option isn't very tested)

--
thomas

On 28 October 2015 at 16:20, Paul Madden  wrote:
> I am working with a web application that makes WMS queries to MapCache. The 
> application supports zoom levels 0 through 13, and I have used mapcache_seed 
> to seed the cache through level 10. The deeper levels take so long to seed 
> that I am considering stopping at level 10 and letting MapCache / MapServer 
> produce deeper levels on demand, as users visit them. The problem I'm facing 
> is that, as far as I can tell, MapCache requests tiles from MapServer 
> serially, then stitches together the required image from these tiles, when it 
> receives a request for an uncached level. In one test, 34 separate tiles were 
> requested from MapServer, one at a time, and it took ~30 seconds to render 
> the final image.
>
> I'm wondering whether there is a way to configure MapCache to cache/provide a 
> defined set of zoom levels, and to proxy requests at other zoom levels 
> directly to MapServer. I tried setting minzoom and maxzoom on my  in 
> mapcache.xml to "0 10". I tried adding a proxy for my cached layer, hoping 
> that MapCache would redirect requests for unsupported zoom levels to 
> MapServer (I have proxies in place for other, completely uncached layers, and 
> those work fine). I tried copying/renaming the GoogleMapsCompatible grid 
> definition into my mapcache.xml and removing from  zoom levels I 
> don't want MapCache to cache. So far, these attempts apparently just prevent 
> MapCache from serving the deeper layers at all.
>
> Any thoughts on how I might address this issue? It might also help if 
> MapCache would make concurrent requests for tiles at uncached levels, but I 
> have no idea if this is feasible. And it would be nice to be able to let 
> MapServer handle some zoom levels directly in any case.
>
> Thanks in advance for any ideas.
>
> Paul Madden
> National Snow and Ice Data Center
> ___
> 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] MapCache: cache some zoom levels, proxy others?

2015-10-28 Thread thomas bonfort
> Out of curiosity, can I assume that my other idea, about proxying some zoom
> levels directly to WMS and caching others, is unrealistic?

not unrealistic, but not implemented

--
thomas

>
> paul
>
>
> On 10/28/15 9:36 AM, thomas bonfort wrote:
>>
>> Paul,
>>
>> Are you using metatiling? That would substantially reduce the number
>> of requests mapcache does to mapserver.
>>
>> You also have the
>> 
>> ...
>> true
>> 
>> option, that lets mapcache launch mapserver requests in parallel
>> instead of sequentially (YMMV, this option isn't very tested)
>>
>> --
>> thomas
>>
>> On 28 October 2015 at 16:20, Paul Madden <pmad...@nsidc.org> wrote:
>>>
>>> I am working with a web application that makes WMS queries to MapCache.
>>> The application supports zoom levels 0 through 13, and I have used
>>> mapcache_seed to seed the cache through level 10. The deeper levels take so
>>> long to seed that I am considering stopping at level 10 and letting MapCache
>>> / MapServer produce deeper levels on demand, as users visit them. The
>>> problem I'm facing is that, as far as I can tell, MapCache requests tiles
>>> from MapServer serially, then stitches together the required image from
>>> these tiles, when it receives a request for an uncached level. In one test,
>>> 34 separate tiles were requested from MapServer, one at a time, and it took
>>> ~30 seconds to render the final image.
>>>
>>> I'm wondering whether there is a way to configure MapCache to
>>> cache/provide a defined set of zoom levels, and to proxy requests at other
>>> zoom levels directly to MapServer. I tried setting minzoom and maxzoom on my
>>>  in mapcache.xml to "0 10". I tried adding a proxy for my cached
>>> layer, hoping that MapCache would redirect requests for unsupported zoom
>>> levels to MapServer (I have proxies in place for other, completely uncached
>>> layers, and those work fine). I tried copying/renaming the
>>> GoogleMapsCompatible grid definition into my mapcache.xml and removing from
>>>  zoom levels I don't want MapCache to cache. So far, these
>>> attempts apparently just prevent MapCache from serving the deeper layers at
>>> all.
>>>
>>> Any thoughts on how I might address this issue? It might also help if
>>> MapCache would make concurrent requests for tiles at uncached levels, but I
>>> have no idea if this is feasible. And it would be nice to be able to let
>>> MapServer handle some zoom levels directly in any case.
>>>
>>> Thanks in advance for any ideas.
>>>
>>> Paul Madden
>>> National Snow and Ice Data Center
>>> ___
>>> 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

Re: [mapserver-users] Encoding problem

2015-10-26 Thread thomas bonfort
Stefanos,
First off, you *need* to know the encoding that's actually used by
each datasource, there's no way of guessing that reliably
programmatically. And since MapServer 7, the ENCODING keyword has been
moved to the LAYER level:
http://mapserver.org/development/rfc/ms-rfc-103.html
If you have the possibility, and/or in the future, always use UTF8
inside your datasources.

regards,
thomas

On 26 October 2015 at 19:16, Stefanos Anastasiou  wrote:
> Hello everybody.
>
> I'm having a small issue with truetype and encoding in greek. Instead of
> normal letters I'm getting weird symbols or even shapes.
>
> iconv -l | grep {GREEK |  ISO-8859-7 | WINDOWS-1253}  are all
> present in the system.
>
>
> My Mapserver version:
>
> MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP
> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
> SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> My LABEL object in my code is the following:
>
>LABEL
>TYPE truetype
>FONT arial
>SIZE 6
>PARTIALS TRUE
>ENCODING GREEK
>END
>
> I also tried ENCODING ISO-8859-7 and WINDOWS-1253. But getting symbols
> instead of letters. The closest to human readable is with encoding UTF-8...
> but still.
>
> I'm probably missing something here.What is the problem ?
>
>
>
>
>
>
> ___
> 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] Ogrtileindex bug in Mapserver 7.0

2015-10-22 Thread thomas bonfort
It's not clear to me what your issue actually is

> reading data from the shapefiles which are behind the ogrtileindex file only 
> if the BBOX of the WMS GetMap request intersects the boundary of the vector 
> tile

->why is that not the expected behavior?
-> what do you mean by "vector tile" ?

On 21 October 2015 at 10:30, Rahkonen Jukka (MML)
 wrote:
> Hi,
>
>
>
> I was wondering why my ogrtileindex layer sometimes works but sometimes not.
> It appears that Mapserver is reading data from the shapefiles which are
> behind the ogrtileindex file only if the BBOX of the WMS GetMap request
> intersects the boundary of the vector tile.  Mapserver version is 7.0.0 on
> Linux and GDAL version is 2.0.1, released 2015/09/15. The ogrtindex file is
> shapefile and it is defined in the mapfile as
>
>
>
>   CONNECTIONTYPE OGR
>
>   TILEINDEX "/tindex/heigthidx.shp,0"
>
>
>
> Can anybody suggest a quick workaround?
>
>
>
>
>
> -Jukka Rahkonen-
>
>
> ___
> 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] wms error in arcgis 10.3

2015-11-09 Thread thomas bonfort
http://mapserver.org/errors.html#msprocessprojection-no-options-found-in-init-file

On 9 November 2015 at 10:42, Martin Landa  wrote:
> Hi all,
>
> my colleagues who are using ArcGIS have strange problem with WMS
> service [1]. The problem appears only in ArcGIS 10.3 (interstigly not
> in 10.2.1) when you add shapefile in EPSG:5514 and then map layer from
> this WMS server. If you add WMS layer to empty project, it works.
>
> The error message:
>
> One or more layers failed to draw: Rain WMS server: WMS service
> exceptions:Service Error Description: msProcessProjection():
> Projection library error. proj error Service Error Description: "
> Service Error Description: no options found in Service Error
> Description: ' Service Error Description: init Service Error
> Description: ' Service Error Description: file Service Error
> Description: " Service Error Description: for Service Error
> Description: " Service Error Description: init=epsg:102067 Service
> Error Description: " Service Error Description: msProcessProjection():
> Projection library error. proj error Service Error Description: "
> Service Error Description: no options found in Service Error
> Description: ' Service Error Description: init Service Error
> Description: ' Service Error Description: file Service Error
> Description: " Service Error Description: for Service Error
> Description: " Service Error Description: init=epsg:102067 Service
> Error Description: "
>
> Do you have any idea what could be wrong? Thanks in advance, Martin
>
> [1] 
> http://rain1.fsv.cvut.cz/services/wms?service=wms=GetCapabilities=1.3.0
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> ___
> 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] UTF grid capabilities MapServer 7 ?

2015-10-15 Thread thomas bonfort
there are a few examples in the autotests (*.json files in
https://github.com/mapserver/msautotest/tree/master/renderers/expected)
. Basically you just have to use the "json" outputformat that's
enabled by default. You can also specify which fields to include with
UTFDATA like in
https://github.com/mapserver/msautotest/blob/master/renderers/utfgrid-escaping.map

--
thomas

On 14 October 2015 at 23:39, karsten  wrote:
> Hi all,
>
> I will be teaching a MapServer class the upcoming weekend and really wanted
> to add an example about the new UTF grid capabilities for MapServer 7 (seen
> this announced in the FOSS4G 2015 MapServer Status Report document I
> downloaded.
> Does anybody know if there is any working example our there I can look at ,
> any documentation (could not even find a mention of UTF Grid in the new
> MapServer.pdf  http://mapserver.org/MapServer.pdf for MS 7 nor could I find
> any example of the map file syntax to use.
>
> Each and every insight or help is greatly appreciated.
>
> Cheers
> Karsten
>
> Karsten Vennemann
> Principal
>
> Terra GIS LTD
> 2119 Boyer Ave E
> Seattle, WA  98112
> USA
> www.terragis.net
> Phone ++1 206 905 1711
>
>
>
> ___
> 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] Mapcache - optimum format for orthophotos?

2015-10-14 Thread thomas bonfort
it depends on many factors... large metatiles are more efficient as
they usually impose less load on the WMS server, but can cause a
significant delay for the end user if you are populating your cache on
demand.
If you're preseeding everything, use large power of 2 metatiles (4x4,
8x8,...). If you haven't pre-seeded, use smaller ones, how small
depends on the experience you want to provide your user if the tile
isn't already in the cache (2x2, 4x4).
If you're rendering raster data only, you don't need a metabuffer.

On 13 October 2015 at 22:15, Robert Sanson
<robert.san...@asurequality.com> wrote:
> Thanks Thomas. I do not have labels, so would you still recommend metatiles 
> for performance reasons? Would you suggest 3 3 or 5 5 for a Mapserver WMS 
> backend?
>
> 3 3
>
> Robert
>
> -----Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: Tuesday, 13 October 2015 8:07 p.m.
> To: Robert Sanson <robert.san...@asurequality.com>
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Mapcache - optimum format for orthophotos?
>
> in the vast majority of the cases, you'll want to have mapcache use 
> metatiles, be serving PNGs from your WMS server (image/png 
> in your mapcache ), and storing your tiles as JPG 
> (JPG in your ). If you need to preserve 
> transparency on your orthophoto edges, you can choose to store the tiles as 
> a"mixed" format instead of pure JPG.
>
> --
> thomas
>
> On 12 October 2015 at 22:13, Robert Sanson <robert.san...@asurequality.com> 
> wrote:
>> Hi
>>
>> What is the recommended format for serving and storing true colour 
>> orthophotos via Mapcache if we wish to preserve maximum detail? The source 
>> data are uncompressed GeoTiffs served as WMS by Mapserver.
>>
>> Many thanks,
>>
>> Robert Sanson
>> ___
>> 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] Mapcache - optimum format for orthophotos?

2015-10-13 Thread thomas bonfort
in the vast majority of the cases, you'll want to have mapcache use
metatiles, be serving PNGs from your WMS server
(image/png in your mapcache ), and storing
your tiles as JPG (JPG in your ). If you
need to preserve transparency on your orthophoto edges, you can choose
to store the tiles as a"mixed" format instead of pure JPG.

--
thomas

On 12 October 2015 at 22:13, Robert Sanson
 wrote:
> Hi
>
> What is the recommended format for serving and storing true colour 
> orthophotos via Mapcache if we wish to preserve maximum detail? The source 
> data are uncompressed GeoTiffs served as WMS by Mapserver.
>
> Many thanks,
>
> Robert Sanson
> ___
> 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] Mapcache - how to deal with changes to mapcache.xml?

2015-10-13 Thread thomas bonfort
if it's a change that does not incur backwards compatibility (e.g.
adding a tileset, changing the cache backend for a tileset,
enabling/disabling a server, ...) you can just issue a graceful
restart on the webserver. In your case (change of resolution), the
path you suggested is the correct one. Note that if you just need to
invalidate the cache because the stored tiles are outdated, you can do
that while the server itself is running (rm -rf on dir, or delete from
tiles in sqlite)

--
thomas

On 12 October 2015 at 22:48, Robert Sanson
 wrote:
> What is the recommended approach to dealing with stored tiles when changes to 
> mapcache.xml are made, such as a change in the set of resolutions in a grid? 
> Should we disable the Web server, delete all the existing tiles then restart 
> the server?
>
> Many thanks,
>
> Robert Sanson
> ___
> 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] riak make error

2015-10-06 Thread thomas bonfort
IIRC, you have to use the riak-1.4 branch, and there's some a minimal
manual fix to apply to the riack headers for it to compile correctly,
namely to include 

On 6 October 2015 at 21:22, Travis Kirstine <
tkirst...@firstbasesolutions.com> wrote:

> Running into issues installing mapcache 1.4 with riak
>
> The cmake runs OK but I receive this error on the make
>
>
> In file included from /usr/local/include/riack.h:21,
>  from /opt/mapcache/include/mapcache.h:75,
>  from /opt/mapcache/lib/hmac-sha.c:34:
> /usr/local/include/riack_defines.h:20:18: error: ints.h: No such file or
> directory
> In file included from /opt/mapcache/lib/hmac-sha.c:34:
> /opt/mapcache/include/mapcache.h:706: error: expected
> specifier-qualifier-list before ‘RIACK_STRING’
> make[2]: *** [CMakeFiles/mapcache.dir/lib/hmac-sha.c.o] Error 1
> make[1]: *** [CMakeFiles/mapcache.dir/all] Error 2
>
>
> Any Ideas?
>
> --
> [image: FBS Logo]
>
> *Travis Kirstine*, Web Development Supervisor
> *t *905‑477‑3600* x *301 | *m *647‑534‑4798 |
> tkirst...@firstbasesolution.com
>
> *First Base Solutions Inc.*
> 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
> *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.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] [mapserver-dev] RFC113 Chainable Compositing Filters

2015-10-06 Thread thomas bonfort
All credit for those beautiful maps go to the http://sitn.ne.ch/ team,
I didn't have a play in them. I've cc'd Marc who might be able to
share more details as to what he was using exactly (note that those
maps predate the actual filter chaining implementation, and used a
hack present in 7.0 along with drawing the shaded layers twice).
For the water bodies, I suspect it can be done with:

COMPOSITE
 #first we render normal water color
END
COMPOSITE
 COMPFILTER "whiten()"
 COMPFILTER "blur(5)"
 COMPOP "soft-light"
 OPACITY 50
END
CLASS
 STYLE
  COLOR water-color
 END
END

At present filters are not supported on labels (unless they don't go
through the labelcache). They could be supported in the longer run if
we explicitely had a "labelcache" layer that we could draw into and
that we could therefore plug into the compositing chain.

regards,
thomas

On 2 October 2015 at 18:18, Lime, Steve D (MNIT) <steve.l...@state.mn.us> wrote:
> Beautiful maps... How'd you do the inside shading on the water bodies? Can 
> these be applied to labels? --Steve
>
> -Original Message-
> From: mapserver-dev-boun...@lists.osgeo.org 
> [mailto:mapserver-dev-boun...@lists.osgeo.org] On Behalf Of thomas bonfort
> Sent: Friday, October 02, 2015 4:36 AM
> To: MapServer Dev Mailing List <mapserver-...@lists.osgeo.org>; MapserverList 
> OSGEO <mapserver-users@lists.osgeo.org>
> Subject: [mapserver-dev] RFC113 Chainable Compositing Filters
>
> Hi All,
>
> I have finished implementing the chainable compositing filters that
> were architectured along with RFC113, and the code has been committed
> to the master branch. The aim of the development is essentially to
> enable soft shadow and blurring effects, although other usages can
> exist or could be added in the future.
> To obtain a soft shadow effect that can be seen for example around the
> buildings on 
> http://sitn.ne.ch/production/wsgi/mobile/?theme=mobile_default_ref=plan_ville_x=554942.49763489_y=200242.9936142_zoom=6_layers=
> you can use
>
> LAYER
>  NAME "buildings"
>  TYPE POLYGON
>  COMPOSITE
>   #create the shadow/blur effect by translating a blurred version of the layer
>   COMPFILTER "grayscale()"
>   COMPFILTER "translate(5,5)"
>   COMPFILTER "blur(4)"
>   OPACITY 50
>  END
>  COMPOSITE
>   #and render the buildings themselves
>   OPACITY 100
>  END
>  CLASS
>   STYLE
> COLOR 128 128 128
> OUTLINECOLOR 0 0 0
> WIDTH 1
>END
>   END
> END
>
> The currently available filters are:
> - "blur(integer)"
> - "translate(integer,integer)"
> - "grayscale()"
> - "blacken()"
> - "whiten()"
>
> I'll add some documentation and autotests next week.
>
> best regards,
> Thomas
> ___
> mapserver-dev mailing list
> mapserver-...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 6.4.2, 7.0.0-beta2 and TinyOWS 1.1.1 releases

2015-07-07 Thread thomas bonfort
This is a security release to mitigate an information disclosure issue
with libxml2 (versions older than 2.9, c.f.
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0339 ) which
can reveal any file accessible on the host system by passing a
specially crafted XML file. Although this is not an issue with
MapServer itself, the proposed update makes sure this vector of attack
cannot be used when mapserver is using a version of libxml2 older than
2.9.
You are strongly recommended to update if your mapserver has libxml2
support and is using an unpatched version of libxml2 older than 2.8.

We are concurrently releasing the second beta for MapServer 7.0.0 that
contains this security fix along with a number of issues that were
discovered since the release of beta1. As always, we rely on you the
community to test these beta versions and provide us with feedback as
to the issues you may encounter.

You can find the download links and changelogs at the usual location:

http://mapserver.org/download.html

best regards,
The MapServer Team
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] URL redirection under Apache2-Difference WMS and WFS server

2015-09-04 Thread thomas bonfort
I'd avoid using the SERVICE= rewrites as the handling of capital
letters may prove to be problematic. You should also not be adding the
REQUEST= and other parts in your rewrite rule.

Basically, just:



RewriteEngine on

RewriteRule mywms(.*)?(.*)$
/cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wms$1.map&$2
RewriteRule mywfs(.*)?(.*)$
/cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wfs$1.map&$2



--
thomas

On 4 September 2015 at 16:54, Pasquale Regina  wrote:
> Greetings to everyone on the user list.
>
> Sorry for my english.
>
> I have a problem to submit because I cannot frame it properly: I do not
> expect that you will solve it but you can provide guidance on how to deal
> with it and I move on.
>
> According with mapserver wms server howto at
> http://mapserver.org/ogc/wms_server.html, in section “Changing the Online
> Resource URL” I follow the indication “Apache environment variables –
> MS_MAPFILE”. So I create a link in http cgi-bin folder named mywms which
> points to /usr/lib/cgi-bin/mapserv, the application/executable file.
>
> My http.conf file contain instruction:
>
> Alias /mywms /usr/lib/cgi-bin/mapserver
>
> 
>
> SetHandler cgi-script
>
> Options ExecCGI
>
> SetEnv MS_MAPFILE
> /var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wms.map
>
> 
>
> And the application correctly works and in a wms gis client I can connect to
> wms server with follow link www.biss.org/mywms.
>
> This is configuration to access to a single default mapfile
> (pmapper_demo_wms.map).
>
> In a similar way for a wfs server with pmapper_demo_wfs.map (mywfs link in
> cgi-bin folder, …)
>
>
>
> My project manager wants to change the settings of project by create
> individual mapfile (not only one, the default) for each registered user and
> so I need  to access the individual mapfiles inserting different links: in
> other words in a wms gis client I put the link www.biss.org/mywms_123_45 to
> point to the file pmapper_demo_wms_123_45.map (123_45 represents a
> registered user id, one of actually 75 registered users!! So I don’t create
> 75 and on link…). The map files are created automatically by the database on
> user’s registration for both wms e wfs mapfile.
>
> So I changed in http.conf toward rewrite rule solution (and remove
> references to Alias /mywxx and  for both mywms and mywfs)
>
> in
>
> 
>
> ….
>
> RewriteEngine on
>
> RewriteRule myw?(.)s(.*)$
> /cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_w$1s$2.map=W$1S=GetCapabilities&
>
> 
>
> So when I put http://www.biss.org/mywms_123_45 in QGIS --> add WMS layer it
> works because point to
> pmapper_demo_wms_123_45.map=WmS=GetCapabilities according to
> $1=m and $2=_123_45 variables.
>
> The problem arises with wfs request in QGIS à add WFS vector. Putting
> http://www.biss.org/mywfs_123_45 QGIS (and other wfs client similar) sends
> the response in attached “Il server WFS non supporta la versione WFS 1.0.0
> oppure l’ URL è errato” (Italian language!!) while putting
> http://www.biss.org/cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wfs_123_45.map
> it works correctly (which demonstrate that mapfile is ok! and in the layer
> properties I read correctly …=WFS=1.0.0….)
>
> what it is due to the difference in behavior for mapserver when rewrite the
> url? Is it a feature of wfs server?
>
> Can you direct me?
>
> Thanks in advance. Pasquale.
>
> PS. Apache2 version 2.4.7 on Ubuntu 14.04 MapServer 6.4.1
>
>
>
>
>
>
> ___
> 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] URL redirection under Apache2-Difference WMS and WFS server

2015-09-07 Thread thomas bonfort
try
/cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wms$1.map&$2
[PT,QSA]

On 7 September 2015 at 09:12, Pasquale Regina <pasquale.reg...@enea.it> wrote:
> if I did not add to rewriterule  =wms=getcapabilities ... not 
> working. The problem is on wfs that reads the wfs request GetCapabilities but 
> when I ask for qgis (add wfs layer) to add the layer (getfeature) this passes 
> 2 times the request, getcapabilities (due to rewrite) and getfeature and 
> generating error.
> I would avoid using SERVICE in rewrite statement but no it does not work.
> Pasquale.
>
> -Messaggio originale-
> Da: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Inviato: venerdì 4 settembre 2015 19:00
> A: Pasquale Regina
> Cc: MapserverList OSGEO
> Oggetto: Re: [mapserver-users] URL redirection under Apache2-Difference WMS 
> and WFS server
>
> I'd avoid using the SERVICE= rewrites as the handling of capital letters may 
> prove to be problematic. You should also not be adding the REQUEST= and other 
> parts in your rewrite rule.
>
> Basically, just:
>
> 
>
> RewriteEngine on
>
> RewriteRule mywms(.*)?(.*)$
> /cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wms$1.map&$2
> RewriteRule mywfs(.*)?(.*)$
> /cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wfs$1.map&$2
>
> 
>
> --
> thomas
>
> On 4 September 2015 at 16:54, Pasquale Regina <pasquale.reg...@enea.it> wrote:
>> Greetings to everyone on the user list.
>>
>> Sorry for my english.
>>
>> I have a problem to submit because I cannot frame it properly: I do
>> not expect that you will solve it but you can provide guidance on how
>> to deal with it and I move on.
>>
>> According with mapserver wms server howto at
>> http://mapserver.org/ogc/wms_server.html, in section “Changing the
>> Online Resource URL” I follow the indication “Apache environment
>> variables – MS_MAPFILE”. So I create a link in http cgi-bin folder
>> named mywms which points to /usr/lib/cgi-bin/mapserv, the 
>> application/executable file.
>>
>> My http.conf file contain instruction:
>>
>> Alias /mywms /usr/lib/cgi-bin/mapserver
>>
>> 
>>
>> SetHandler cgi-script
>>
>> Options ExecCGI
>>
>> SetEnv MS_MAPFILE
>> /var/www/biss.org/public_html/pmapper/config/default/pmapper_demo_wms.
>> map
>>
>> 
>>
>> And the application correctly works and in a wms gis client I can
>> connect to wms server with follow link www.biss.org/mywms.
>>
>> This is configuration to access to a single default mapfile
>> (pmapper_demo_wms.map).
>>
>> In a similar way for a wfs server with pmapper_demo_wfs.map (mywfs
>> link in cgi-bin folder, …)
>>
>>
>>
>> My project manager wants to change the settings of project by create
>> individual mapfile (not only one, the default) for each registered
>> user and so I need  to access the individual mapfiles inserting
>> different links: in other words in a wms gis client I put the link
>> www.biss.org/mywms_123_45 to point to the file
>> pmapper_demo_wms_123_45.map (123_45 represents a registered user id,
>> one of actually 75 registered users!! So I don’t create
>> 75 and on link…). The map files are created automatically by the
>> database on user’s registration for both wms e wfs mapfile.
>>
>> So I changed in http.conf toward rewrite rule solution (and remove
>> references to Alias /mywxx and  for both mywms and
>> mywfs)
>>
>> in
>>
>> 
>>
>> ….
>>
>> RewriteEngine on
>>
>> RewriteRule myw?(.)s(.*)$
>> /cgi-bin/mapserv?map=/var/www/biss.org/public_html/pmapper/config/defa
>> ult/pmapper_demo_w$1s$2.map=W$1S=GetCapabilities&
>>
>> 
>>
>> So when I put http://www.biss.org/mywms_123_45 in QGIS --> add WMS
>> layer it works because point to
>> pmapper_demo_wms_123_45.map=WmS=GetCapabilities
>> according to $1=m and $2=_123_45 variables.
>>
>> The problem arises with wfs request in QGIS à add WFS vector. Putting
>> http://www.biss.org/mywfs_123_45 QGIS (and other wfs client similar)
>> sends the response in attached “Il server WFS non supporta la versione
>> WFS 1.0.0 oppure l’ URL è errato” (Italian language!!) while putting
>> http://www.biss.org/cgi-bin/mapserv?map=/var/www/biss.org/public_html/
>> pmapper/config/default/pmapper_demo_wfs_123_45.map
>> it works correctly (which demonstrate that mapfile is ok! and in the
>> layer properties I read correctly …=WFS=1.0.0….)
>>
>> what it is due to the difference in behavior for mapserver when
>> rewrite the url? Is it a feature of wfs server?
>>
>> Can you direct me?
>>
>> Thanks in advance. Pasquale.
>>
>> PS. Apache2 version 2.4.7 on Ubuntu 14.04 MapServer 6.4.1
>>
>>
>>
>>
>>
>>
>> ___
>> 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] mapcache wms supported srs

2015-09-29 Thread thomas bonfort
> Do you know if the new use_wms_intermediate_resolution
> will work on seeded caches with no source configured?
it needs to go back to the source wms.

>
> On 28 September 2015 at 16:36, thomas bonfort <thomas.bonf...@gmail.com>
> wrote:
>>
>> Travis,
>> Mapcache itself won't do any reprojection, you can however setup a
>> forwarding rule so that those requests get proxied to an upstream wms server
>> (you'd have to handcraft a capabilities doc to advertise that other
>> projection though)
>> Thomas.
>>
>> On Sep 28, 2015 17:30, "Travis Kirstine" <traviskirst...@gmail.com> wrote:
>>>
>>> Is it possible to support wms srs for layers that do not have a matching
>>> srs grid configured.  For example can I support GetMap requests for
>>> SRS=EPSG:26917 when I only have a "Google Map Compatible" grid configured
>>> (3857)
>>>
>>> ___
>>> 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] mapcache wms supported srs

2015-09-28 Thread thomas bonfort
Travis,
Mapcache itself won't do any reprojection, you can however setup a
forwarding rule so that those requests get proxied to an upstream wms
server (you'd have to handcraft a capabilities doc to advertise that other
projection though)
Thomas.
On Sep 28, 2015 17:30, "Travis Kirstine"  wrote:

> Is it possible to support wms srs for layers that do not have a matching
> srs grid configured.  For example can I support GetMap requests for
> SRS=EPSG:26917 when I only have a "Google Map Compatible" grid configured
> (3857)
>
> ___
> 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] mapcache riak caches

2015-09-28 Thread thomas bonfort
I can't share any first hand experience, but the feedback I've had was very
positive.
Concerning mixed formats, those are handled by Mapcache and are not
dependant on the cache backend.
Thomas
On Sep 28, 2015 17:35, "Travis Kirstine"  wrote:

> Has anyone had experience with riak caches that they could share?
> Does is support mixed caches
> How does it perform under load, can it handle concurrent writes
>
> Thanks
>
> ___
> 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] RFC113 Chainable Compositing Filters

2015-10-02 Thread thomas bonfort
Hi All,

I have finished implementing the chainable compositing filters that
were architectured along with RFC113, and the code has been committed
to the master branch. The aim of the development is essentially to
enable soft shadow and blurring effects, although other usages can
exist or could be added in the future.
To obtain a soft shadow effect that can be seen for example around the
buildings on 
http://sitn.ne.ch/production/wsgi/mobile/?theme=mobile_default_ref=plan_ville_x=554942.49763489_y=200242.9936142_zoom=6_layers=
you can use

LAYER
 NAME "buildings"
 TYPE POLYGON
 COMPOSITE
  #create the shadow/blur effect by translating a blurred version of the layer
  COMPFILTER "grayscale()"
  COMPFILTER "translate(5,5)"
  COMPFILTER "blur(4)"
  OPACITY 50
 END
 COMPOSITE
  #and render the buildings themselves
  OPACITY 100
 END
 CLASS
  STYLE
COLOR 128 128 128
OUTLINECOLOR 0 0 0
WIDTH 1
   END
  END
END

The currently available filters are:
- "blur(integer)"
- "translate(integer,integer)"
- "grayscale()"
- "blacken()"
- "whiten()"

I'll add some documentation and autotests next week.

best regards,
Thomas
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS cascading and Mapcache

2015-12-01 Thread thomas bonfort
On 1 December 2015 at 02:49, milad nidal  wrote:
> We get something like an outline of cascading WMS and this happened only
> when we do a cache

Can you explicit what you mean by this ?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Keeping labels clear of a specific path

2015-12-01 Thread thomas bonfort
There is no such functionality explicitly baked into MapServer as far
as I know. You should however be able to force the labelcache to avoid
intersecting labels like this, if you are not too worried about the
performance overhead (YMMV, you probably would want to evaluate the
overhead). I have not tested this.

layer
  name "trails"
  class
   style
#trail style
   end
   label
text "[trail_name]"
angle follow
size 9
color 0 0 0
priority 10
   end
   label
#force empty characters everywhere else on the line segment
priority 9 #less than the actual trail label, but more than the
labels from other layers
text " "
angle auto
repeatdistance 1
size 9
color 0 0 0
   end
 end
end

This is a rather ugly hack. You can contact me directly if you would
like to fund the implementation of native geometry avoidance for
labels.

--
thomas

On 1 December 2015 at 10:15, Matt McClelland  wrote:
> Hi All
>
> I am using mapserver 7 to make maps for a hiking website.
> I am wanting to keep labels from covering the main hiking path for each map.
>
> Labels such at the park name, waypoint names etc tend to sit over the main
> track and at times hide the intersections.
>
> I am using a map file and WMS requests to make the maps
>
> Is there a way to kindly ask mapserver to create a label buffer about a
> particular line feature? (so that no labels are drawn over that line)
>
> thanks
>
> Matt  :)
>
>
> ___
> 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 on ubuntu 14.04 - error message

2015-11-20 Thread thomas bonfort
You haven't enable cgi handling, your apache server is returning the
mapserv binary instead of executing it.

--
thomas

On 20 November 2015 at 12:24, red1981  wrote:
> Hi,
>
> I'm rather new to mapserver and my knowledge of Linux isn't great either. So
> this maybe a problem which is not directly related to mapserver. But any
> help is appreciated and the error message isn't easy to google...
>
> First I made a local ms4w installation on a windows machine which works
> fine. Via localhost I can access the WMS I set up in QGIS and ArcGIS.
>
> Now I want to do the same on a Linux server (Ubuntu 14.04) so I can access
> the wms from anywhere. I used several tutorials and installed apache2 and
> mapserver. When I enter the IP in my browser I see the Apache default page
> so that works. Then I tried to access mapserver with
> http://[IP]/cgi-bin/mapserv and expected the "No query information to
> decode" error but instead I got a long error message.
>
> This is the error message (edited down to remove a lot of strange symbols):
>
>  ELF  /lib64/ld-linux-x86-64.so.2 GNU
> libmapserver.so.1 _Jv_RegisterClasses _ITM_deregisterTMCloneTable
> __gmon_start__ _ITM_registerTMCloneTable msIO_installHandlers
> msResetErrorList msFreeMapServObj msDebug loadParams msCGIWriteError
> msIO_fprintf msGetVersion msCGIWriteLog msSetup msGetGlobalDebugLevel
> msCGIDispatchRequest msCGILoadMap msAllocMapServObj msCleanup libfcgi.so.0
> FCGI_Accept FCGI_fread FCGI_fwrite _fcgi_sF libc.so.6 fflush exit signal
> puts getpid putenv stdout stderr gettimeofday __libc_start_main _edata
> __bss_start _end /usr/lib/x86_64-linux-gnu
> __libc_csu_init _IO_stdin_used __libc_csu_fini __data_start
> msCleanupOnSignal GLIBC_2.2.5
>  In msCleanupOnSignal.
>  QUERY_STRING= REQUEST_METHOD=GET fcgi CGI Request %d on process %d
>   mapserv request processing time (msLoadMap not incl.): %.3fs
>mapserv total execution time:
>  5680f.debug  #² .shstrtab .interp .note.ABI-tag .note.gnu.build-id
> .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt
> .init .text .fini .rodata .eh_frame_hdr .eh_frame .init_array .fini_array
> .jcr .dynamic .got .data .bss .gnu_debuglink
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/mapserver-on-ubuntu-14-04-error-message-tp5237603.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Label formatting on GRID

2016-05-31 Thread thomas bonfort
There is no such support that I know of in mapserver.
Your first use-case could be implemented by extending the grid labelling
function to get it's text from a mapserver expression, and extending the
expression syntax to include integer division and modulo operators.
Your second use-case is more involved and would require multiple label
blocks along with the aforementioned enhancements.

Both cases are not trivial and would require funding.

regards,
thomas

On 13 October 2015 at 05:59, Matt McClelland  wrote:

> Hi All
>
> I am wanting to truncate (simplify) the grid numbering to match the grid
> reference users would use in the field.
>
> Looking at the top right (of the attached example) I would like
> 236000 to just display as 36 and
> 6263000 to just display as 63
>
> In a perfect world I would love it to display like this
> a subscript (little) 2 followed by standard 36 =  236  and
> a subscript (little) 62 followed by standard 63 =  6263
>
> Any suggestions ??
>
> Thanks :)
>
> The attache map I generated using mapserver 7.0
> The Grid map file is
> LAYER
>   GROUP "default"
>   NAME "grid"
>   METADATA
> "DESCRIPTION" "Grid"
>   END
>   TYPE LINE
>   STATUS ON
>   CLASS
> NAME "Graticule"
> COLOR 100 100 100
> LABEL
>   COLOR  255 0 0
>   FONT sc
>   TYPE truetype
>   SIZE 8
>   POSITION AUTO
>   PARTIALS FALSE
>   FORCE TRUE
>   BUFFER -10
>   OUTLINECOLOR 255 255 255
> END
>   END
>   PROJECTION
> "init=epsg:28356"
>   END
>   GRID
> LABELFORMAT '%.0f'
> MININTERVAL 1000
>   END
> END # Layer
>
> Matt :)[image: Inline image 1]
> 
>
> ___
> 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] Building Mapserver - missing strlcat... methods

2016-06-24 Thread thomas bonfort
The str* missising functions should not be an issue, those are just
checks to see if we shall be providing our own implementation. Are you
sure you posted the whole cmake log ?

--
thomas

On 24 June 2016 at 11:31, Michael Schulz <mandsch...@googlemail.com> wrote:
> Hi Thomas,
>
> nope, unfortunately not. Deleted everything, rerun cmake, still got the same
> errors (strsstr, strlcat, strlcpy not found). This is one part of
> CMakeError.log:
>
> Determining if the function strrstr exists failed with the following output:
> Change Dir: /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/gmake" "cmTryCompileExec1997038117/fast"
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1997038117.dir/build.make
> CMakeFiles/cmTryCompileExec1997038117.dir/build
> gmake[1]: Entering directory
> `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report
> /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
> -I/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/math.h-o
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o   -c
> /usr/share/cmake/Modules/CheckFunctionExists.c
> Linking C executable cmTryCompileExec1997038117
> /usr/bin/cmake -E cmake_link_script
> CMakeFiles/cmTryCompileExec1997038117.dir/link.txt --verbose=1
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o  -o
> cmTryCompileExec1997038117 -rdynamic -lm
> CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o: In
> function `main':
> CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'
> collect2: ld gab 1 als Ende-Status zurück
> gmake[1]: Leaving directory
> `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
> gmake[1]: *** [cmTryCompileExec1997038117] Fehler 1
> gmake: *** [cmTryCompileExec1997038117/fast] Fehler 2
>
> ... (this is similarly repeated for the other functions)
>
> Thanks, Michael
>
>
>
>
> 2016-06-24 10:09 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
>>
>> Try deleting everything in the build directory and starting again,
>> might be a cmake cache problem...
>>
>> On 24 June 2016 at 10:07, Michael Schulz <mandsch...@googlemail.com>
>> wrote:
>> > Hi,
>> >
>> > I have exactly the same issue here. Trying to build mapserver on SLES 11
>> > SP4, I have disabled harfbuzz and fribidi:
>> >
>> > cmake .. \
>> >  -DCMAKE_PREFIX_PATH=/opt/gdal-trunk \
>> > -DWITH_CLIENT_WFS=ON \
>> > -DWITH_CLIENT_WMS=ON \
>> > -DWITH_CURL=ON \
>> > -DWITH_SOS=ON \
>> > -DWITH_PHP=ON \
>> > -DWITH_PYTHON=ON \
>> > -DWITH_SVGCAIRO=ON \
>> > -DWITH_ORACLESPATIAL=ON \
>> > -DWITH_HARFBUZZ=0 \
>> > -DWITH_FRIBIDI=0 \
>> > -DWITH_FCGI=0 \
>> >  >../configure.out.txt
>> >
>> > configure.out:
>> > -- The C compiler identification is GNU 4.3.4
>> > -- The CXX compiler identification is GNU 4.3.4
>> > -- Check for working C compiler: /usr/bin/cc
>> > -- Check for working C compiler: /usr/bin/cc -- works
>> > -- Detecting C compiler ABI info
>> > -- Detecting C compiler ABI info - done
>> > -- Check for working CXX compiler: /usr/bin/c++
>> > -- Check for working CXX compiler: /usr/bin/c++ -- works
>> > -- Detecting CXX compiler ABI info
>> > -- Detecting CXX compiler ABI info - done
>> > -- Looking for strrstr
>> > -- Looking for strrstr - not found
>> > -- Looking for strcasecmp
>> > -- Looking for strcasecmp - found
>> > -- Looking for strcasestr
>> > -- Looking for strcasestr - found
>> > -- Looking for strdup
>> > -- Looking for strdup - found
>> > -- Looking for strlcat
>> > -- Looking for strlcat - not found
>> > -- Looking for strlcpy
>> > -- Looking for strlcpy - not found
>> > -- Looking for strlen
>> > -- Looking for strlen - found
>> > -- Looking for strncasecmp
>> > -- Looking for strncasecmp - found
>> > -- Looking for vsnprintf
>> > -- Looking for vsnprintf - found
>> > -- Looking for lrintf
>> > -- Looking for lrintf - found
>> > -- Looking for lrint
>> > -- Looking for lrint - found
>> > -- Looking for dlfcn.h

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-24 Thread thomas bonfort
> --   * FRIBIDI: disabled
> --   * HARFBUZZ: disabled
> --   * GIF: /usr/lib64/libgif.so
> --   * CAIRO: /usr/lib64/libcairo.so
> --   * SVGCAIRO: /usr/local/lib/libsvg-cairo.so
> --   * RSVG: disabled
> --   * CURL: /usr/lib64/libcurl.so
> --   * PROJ: /usr/lib64/libproj.so
> --   * PIXMAN: disabled
> --   * LIBXML2: /usr/lib64/libxml2.so
> --   * POSTGIS: /usr/lib64/libpq.so
> --   * GEOS: /usr/lib64/libgeos_c.so
> --   * FastCGI: disabled
> --   * Oracle Spatial:
> /home/oracle/app/oracle/product/12.1.0/client_1/lib/libclntsh.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libocci.so;/home/oracle/app/oracle/product/12.1.0/client_1/lib/libnnz12.so
> --   * Exempi XMP: disabled
> --  * Optional features
> --   * WMS SERVER: ENABLED
> --   * WFS SERVER: ENABLED
> --   * WCS SERVER: ENABLED
> --   * SOS SERVER: ENABLED
> --   * WMS CLIENT: ENABLED
> --   * WFS CLIENT: ENABLED
> --   * ICONV: ENABLED
> --   * Thread-safety support: disabled
> --   * KML output: disabled
> --   * Z+M point coordinate support: disabled
> --   * XML Mapfile support: disabled
> --  * Mapscripts
> --   * Python: ENABLED
> --   * PHP: ENABLED
> --   * PERL: disabled
> --   * RUBY: disabled
> --   * JAVA: disabled
> --   * C#: disabled
> --   * V8 Javascript: disabled
> --   * Apache Module (Experimental): disabled
> --
> -- Will install files to /opt/mapserver-7.0.1
> -- Will install libraries to /opt/mapserver-7.0.1/lib
> -- Configuring incomplete, errors occurred!
> See also "/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeOutput.log".
> See also "/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeError.log".
>
> Thanks, Michael
>
> 2016-06-24 11:46 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
>>
>> The str* missising functions should not be an issue, those are just
>> checks to see if we shall be providing our own implementation. Are you
>> sure you posted the whole cmake log ?
>>
>> --
>> thomas
>>
>> On 24 June 2016 at 11:31, Michael Schulz <mandsch...@googlemail.com>
>> wrote:
>> > Hi Thomas,
>> >
>> > nope, unfortunately not. Deleted everything, rerun cmake, still got the
>> > same
>> > errors (strsstr, strlcat, strlcpy not found). This is one part of
>> > CMakeError.log:
>> >
>> > Determining if the function strrstr exists failed with the following
>> > output:
>> > Change Dir: /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp
>> >
>> > Run Build Command:"/usr/bin/gmake" "cmTryCompileExec1997038117/fast"
>> > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1997038117.dir/build.make
>> > CMakeFiles/cmTryCompileExec1997038117.dir/build
>> > gmake[1]: Entering directory
>> > `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
>> > /usr/bin/cmake -E cmake_progress_report
>> > /usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
>> > Building C object
>> > CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o
>> > /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
>> > -I/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp/math.h-o
>> > CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o   -c
>> > /usr/share/cmake/Modules/CheckFunctionExists.c
>> > Linking C executable cmTryCompileExec1997038117
>> > /usr/bin/cmake -E cmake_link_script
>> > CMakeFiles/cmTryCompileExec1997038117.dir/link.txt --verbose=1
>> > /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr
>> > CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o  -o
>> > cmTryCompileExec1997038117 -rdynamic -lm
>> > CMakeFiles/cmTryCompileExec1997038117.dir/CheckFunctionExists.c.o: In
>> > function `main':
>> > CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'
>> > collect2: ld gab 1 als Ende-Status zurück
>> > gmake[1]: Leaving directory
>> > `/usr/local/src/mapserver-7.0.1/build/CMakeFiles/CMakeTmp'
>> > gmake[1]: *** [cmTryCompileExec1997038117] Fehler 1
>> > gmake: *** [cmTryCompileExec1997038117/fast] Fehler 2
>> >
>> > ... (this is similarly repeated for the other functions)
>> >
>> > Thanks, Michael
>> >
>> >
>> >
>> >
>> > 2016-06-24 10:09 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
>> >>
>> >> Try deleting everything in the build directory and starting again,
>> >> might be a cmake cache problem...
>> >>
>> >> On 24 June 2016 

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread thomas bonfort
Jukka,
The overlapping case has a technical solution (which is not
implemented in mapserver) if you are willing to eventually offset your
dash pattern at every line vertice. The adjacent case has no solution
I can think of (draw two adjacent concentric circles on a whiteboard
and try to dash them if you don't believe me :)
--
thomas

On 17 June 2016 at 16:20, Rahkonen Jukka (MML)
 wrote:
> Hi,
>
> The only method that really works is to remove adjacent lines. Your trick 
> seems to be the same as this 
> https://knowledge.autodesk.com/support/autocad-map-3d/troubleshooting/caas/sfdcarticles/sfdcarticles/Using-a-dashed-line-symbol-with-adjacent-polygons-masking.html
> but they used a wider white line. However, it feels usable only if the 
> background is also white and there are no lines very close to each other.
>
> -Jukka Rahkonen-
>
>
> Ziegler Stefan wrote:
>
>> Hi
>
>> I'm trying to render some lines with a pattern. This works and looks great 
>> as long as the lines are not adjacent. When the lines share a common border 
>> the dashed lines may look ugly since one dashed line is rendered on top of 
>> the other rendered dashed line. I tried to add a white solid line under the 
>> dashed line:
>
> CLASS
>   STYLE
> COLOR 255 255 255
> WIDTH 2
> LINECAP BUTT
>   END
>   STYLE
> COLOR 0 0 0
> WIDTH 2
> LINECAP BUTT
> PATTERN 20 4 2 4 2 4 END
>   END
> END
>
>
> But the behaviour is still the same. Is there a trick/workaround for this? 
> I'm using MapServer 7.0.1.
>
> Best regards
> Stefan Ziegler
>
>
>
> Freundliche Grüsse
> Stefan Ziegler
> Kantonsgeometer / Leiter Amt für Geoinformation
>
> Amt für Geoinformation
> Rötistrasse 4
> 4500 Solothurn
>
> Telefon +41 32 627 75 96
> Telefax +41 32 627 75 98
> stefan.zieg...@bd.so.ch
> http://www.so.ch
>
> ___
> 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

<    2   3   4   5   6   7   8   >