Re: [mapserver-users] SLD TextSymbolizer in 6.1-dev

2012-06-28 Thread Julien Cigar
Hi, I don't know for your problem but I used to use the instead of the (this is in SLD 1.1.0) It works fine in 6.1 Here is one of my SLD template, if it can help ... http://www.pastie.org/4164772 Julien On 06/27/2012 15:07, jlundnielsen wrote: Hi List, In the process of preparing for 6

[mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
Hello, I'm using Mapserver 6.0.1 with the following PostGIS layer: http://pastie.org/private/84042k84vmljbontls5xvq The user has the possibility to select quite a lot of filters, which implies that the SQL query should, in theory ,be generated dynamically. As this is not possible with Mapser

Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
r solution) without having to involve mapscript. Julien -Jukka Rahkonen- Julien Cigar wrote: Hello, I'm using Mapserver 6.0.1 with the following PostGIS layer: http://pastie.org/private/84042k84vmljbontls5xvq The user has the possibility to select quite a lot of filters, which implies

Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
9/21/12 7:07 AM, "Julien Cigar" wrote: On 09/21/2012 12:50, Rahkonen Jukka wrote: Hi, Hello, So you have tried to define variables %SEX% and %BOD_ID%, used them inside your DATA and then fired WMS GetMaps by adding&SEX=your_value&BOD_ID=your_id? Does in not work or why it

Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
matching value when you don't want the join, etc. SQL is more powerful than any template language. You'll have to explain me how you add a JOIN clause through a CASE statement ..? :) Mike On 9/21/12 7:07 AM, "Julien Cigar" wrote: On 09/21/2012 12:50, Rahkonen Jukka wrot

Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
matching value when you don't want the join, etc. SQL is more powerful than any template language. Mike ok I was wrong, you meant JOIN foo ON (CASE ... ) I guess .. ? On 9/21/12 7:07 AM, "Julien Cigar" wrote: On 09/21/2012 12:50, Rahkonen Jukka wrote: Hi, Hello, So yo

Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Julien Cigar
(actual time=0.007..8.234 rows=5840 loops=1) -> Result (cost=0.00..0.08 rows=1 width=0) (actual time=0.001..0.001 rows=0 loops=5840) One-Time Filter: false Total runtime: 47.016 ms (6 rows) congo_river=# Thanks Julien On 9/21/12 8:06 AM, "Julien Cigar" wrote: On 09

Re: [mapserver-users] Mapserver + apache2 + python mapscript configuration

2012-09-26 Thread Julien Cigar
http://mapserver.org/mapscript/index.html ..? the Python API is just a SWIG wrapper On 09/26/2012 11:37, Constantin Malii wrote: Hi, everybody I need some help with configuration of mapserver with apache and python mapscript. I compiled mapserver with required libs (zlib, libgd, libjpeg, gda

Re: [mapserver-users] Mapserver + apache2 + python mapscript configuration

2012-09-26 Thread Julien Cigar
if it can help, I copy/paste code from a *very* old project (the only one I've used mapscript) .. if it can help: http://pastie.org/private/kjenmk0ewq42w1k71wbfxg On 09/26/2012 11:54, Julien Cigar wrote: http://mapserver.org/mapscript/index.html ..? the Python API is just a SWIG wrappe

Re: [mapserver-users] WMS works, WFS doesn't

2012-09-26 Thread Julien Cigar
On 09/26/2012 14:17, basvmrs wrote: Hi, I followed the instructions on http://mapserver.org/ogc/wfs_server.html to set up a WFS server with the shown example file. I find that WMS works fine, but WFS doesn't, even though I am basically using the same configuration. The WMS server: http://wms.ci

[mapserver-users] OGC spatial filter + SLD

2012-11-23 Thread Julien Cigar
Hello, I would like to know if Mapserver supports the spatial filter through SLD ? I have the following : http://pastie.org/5423520 but it doesn't work.. any idea ? Thank you, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenience

Re: [mapserver-users] OGC spatial filter + SLD

2012-11-23 Thread Julien Cigar
On 11/23/2012 17:11, Thomas Gratier wrote: Hello, Hello, I haven' try but it's not available refering to the doc http://mapserver.org/ogc/sld.html#issues-found-during-implementation e.g "Limitation of the FilterEncoding to comparison and logical filters. The spatial filters were not made av

Re: [mapserver-users] OGC spatial filter + SLD

2012-11-24 Thread Julien Cigar
On 11/23/2012 19:12, Thomas Gratier wrote: Hello, Hello, Don't know exactly your case but you can maybe rely on runtime substitution http://mapserver.org/cgi/runsub.html and spatial abilities of your database e.g http://postgis.refractions.net/docs/ST_Within.html or on filter (support with

Re: [mapserver-users] OGC spatial filter + SLD

2012-11-26 Thread Julien Cigar
On 11/24/2012 14:23, Julien Cigar wrote: On 11/23/2012 19:12, Thomas Gratier wrote: Hello, Hello, Don't know exactly your case but you can maybe rely on runtime substitution http://mapserver.org/cgi/runsub.html and spatial abilities of your database e.g http://postgis.refraction

Re: [mapserver-users] WMS layer filtering

2013-06-12 Thread Julien Cigar
On 06/12/2013 14:23, Kralidis,Tom [Ontario] wrote: Hi: we have a MapServer OWS instance which we use to disseminate observations via WMS and WFS/SOS. One of our layers has 1 million records (PostGIS backend). The layer has CLASS level EXPRESSION objects for WMS visualization/classification. We

Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities

2014-01-29 Thread Julien Cigar
On Wed, Jan 29, 2014 at 01:59:02PM +, Rahkonen Jukka (Tike) wrote: > Hi, > > So where is the bug? In OpenJUMP, SAX, Mapserver, the configuration in > Toscane, or in Inspire? I don't know it it's related, but I had a lot of parsing problems with SLD stylesheets .. I'll try to make a bug repo

[mapserver-users] copyright, logos, etc

2015-02-05 Thread Julien Cigar
upper right corner of the generated map" or something like that .. ? Any idea how could I do for the generated date ? Thanks ! Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees wer

Re: [mapserver-users] copyright, logos, etc

2015-02-11 Thread Julien Cigar
On Thu, Feb 05, 2015 at 02:41:40PM +0100, Julien Cigar wrote: > Hello, > > I'm using Mapserver to generate maps for various PostGIS layers and it > works pretty well, especially with SLD to filter WMS requests. > > Now the users want to include: > - a logo (PNG file)

[mapserver-users] Label in SLD

2015-02-11 Thread Julien Cigar
Hello, With the following https://gist.github.com/silenius/1f4a020f35a4113cdd4d is it normal that the Label (line 29-31) within my TextSymbolizer is not rendered (the PointSymbolizer is) ? Thanks, Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint

Re: [mapserver-users] copyright, logos, etc

2015-02-11 Thread Julien Cigar
generated dynamically) with a sometextblabla ... like on https://gist.github.com/silenius/1f4a020f35a4113cdd4d but it seems that it's unsupported by Mapserver (if I understand well https://github.com/mapserver/mapserver/blob/master/mapogcsld.c#L2706 ) Would it be possible in the future t

Re: [mapserver-users] copyright, logos, etc

2015-02-11 Thread Julien Cigar
; wkbPoint > NULL > reportSrcColumn="false" /> > > > > Test with: ogrinfo -al species_annotation.vrt -fid > > > LAYER > ... > CONNECTIONTYPE ogr > CONNECTION 'species_annotation.vrt'

Re: [mapserver-users] copyright, logos, etc

2015-02-11 Thread Julien Cigar
and this is generally not very well > supported. I'd guess this needs huge reworking on both parser and engine... > > So, to get at least the simple cases supported you might want to file a > ticket. I'll do that ..! > Thanks, Julien -- Julien Cigar Belgian Biod

Re: [mapserver-users] copyright, logos, etc

2015-02-11 Thread Julien Cigar
pecies name: [name] (last updated: [generated_date])" > FONT "vera" > TYPE TRUETYPE > SIZE 7 > BUFFER 1 > COLOR 0 0 0 > FORCE TRUE > STYLE > GEOMTRANSFORM 'labelpoly' > COLOR 255 255 255 >

[mapserver-users] reprojection

2010-09-21 Thread Julien Cigar
Hello, I'm trying to re-project a RASTER layer but without success so far. I have the following TIFF file: m...@mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff Driver: GTiff/GeoTIFF Files: antarctica_sthn_ocean.tiff Size is 12216, 9094 Coordinate System is: PROJCS[" Projection Name

Re: [mapserver-users] reprojection

2010-09-22 Thread Julien Cigar
, looks like I misunderstood the output of gdalinfo..! Julien -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Julien Cigar Lähetetty: 21. syyskuuta 2010 22:09 Vastaanottaja: mapserver-users@lists.

[mapserver-users] WMS Filters ?

2010-10-01 Thread Julien Cigar
Hello, I wondered if I can use OGC filters with WMS ? It works well with WFS, but nothing is indicated in the documentation for WMS, and I tried to add "&Filter=infotest10" to my WMS request but it doesn't work :( In case it isn't supported, what's the "Mapserver-way" to do it ? Should I u

Re: [mapserver-users] WMS Filters ?

2010-10-01 Thread Julien Cigar
iesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Julien Cigar Lähetetty: 1. lokakuuta 2010 16:00 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] WMS Filters ? Hello, I wondered if I can use OGC filters wit

Re: [mapserver-users] Re: fedora 14 cannot find -lpgport

2010-11-18 Thread Julien Cigar
On 11/18/2010 10:35, Sebastian E. Ovide wrote: from http://forums.fedoraforum.org/showthread.php?p=1417824#post1417824 it looks like libpgport isn't supported by fedora... Is there any other way to build MapServer without that library ? disable Postgis support ? I don't use Fedora, but I repo

Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR

2011-01-27 Thread Julien Cigar
use SLD ? On 01/27/2011 16:42, tommaso wrote: Hallo everybody, the background color of labels cannot be changed dynamically via attribute binding or CGI parameters, is right? Is there a workaround for this? Regards, Tommaso ___ mapserver-users mai

[mapserver-users] merging shapefiles

2011-07-07 Thread Julien Cigar
Hello, I have an (OpenLayers) map with two layers: - Country (as a base layer) - EEA You can see the output here: http://home.bebif.be/~jcigar/map.jpg The "Country" layer contains just the borders of the countries, and the "EEA" layer (the colorized areas) contains environmental areas. What

[mapserver-users] in SLD .. ?

2011-07-07 Thread Julien Cigar
Hello, I slowly started to use SLD, and I made one with the following: (...) cntr_id BE biogeo Continental (...) (full stylesheet is available on http://www.pastie.org/2177871) However, it seems that the is ignored by mapserver ..? Does it supports conditiona

[mapserver-users] substitution in a PostGIS layer .. ?

2011-07-13 Thread Julien Cigar
Hello, I have the following mapfile: http://www.pastie.org/2206896 with the following SLD: http://www.pastie.org/2206902 (generated dynamically) I wondered how can I change the WHERE sp.id=%SPID% in the subselect (following a CGI parameter)? I read http://mapserver.org/cgi/runsub.html, and

Re: [mapserver-users] substitution in a PostGIS layer .. ?

2011-07-13 Thread Julien Cigar
other words: is _validation_pattern the only way to protect against SQL injection? What it I allow a pattern that may take part in a SQL injection (like ', #, ..) ? Thanks, Julien On 07/13/2011 14:29, Julien Cigar wrote: Hello, I have the following mapfile: http://www.pastie.org/2206896

Re: [mapserver-users] substitution in a PostGIS layer .. ?

2011-07-13 Thread Julien Cigar
On 07/13/2011 15:07, Daniel Morissette wrote: On 11-07-13 08:41 AM, Julien Cigar wrote: OK.. I missed the "(must validate against DATAPATTERN)" part. I added "SPID_validation_pattern" "^[0-9]+$" in my METADATA and it works ! However, it looks a little &q

Re: [mapserver-users] substitution in a PostGIS layer .. ?

2011-07-13 Thread Julien Cigar
On 07/13/2011 15:38, Rahkonen Jukka wrote: Julien Cigar wrote: This may be a stupid question but: is there a reason why PQescapeStringConn() is not used to do the substitution? Perhaps because Mapserver does not support just PostgreSQL but also Oracle, SQL Server, MySQL, Informix, CouchDB

[mapserver-users] SLD and LABEL MINDISTANCE ..?

2011-08-09 Thread Julien Cigar
Hello, I'm using SLD with a section for labeling my polygons (this is what I have at the moment http://www.pastie.org/2344427). It works well except that I miss the MINDISTANCE of the LABEL section and wondered if there is a way to do it in the SLD ..? Does Mapserver supports some that are

Re: [mapserver-users] SLD and LABEL MINDISTANCE ..?

2011-08-10 Thread Julien Cigar
On 08/09/2011 13:23, Julien Cigar wrote: Hello, I'm using SLD with a section for labeling my polygons (this is what I have at the moment http://www.pastie.org/2344427). It works well except that I miss the MINDISTANCE of the LABEL section and wondered if there is a way to do it in th

Re: [mapserver-users] WFS Spatial Filter Problem

2011-08-10 Thread Julien Cigar
Perhaps the problem comes from the HTTP server (wrong (Fast)CGI config, ...) ? Take a look at your your error.log On 08/10/2011 14:35, Bryan Hempen wrote: Hi David, I enabled debugging using the following settings: CONFIG "MS_ERRORFILE" "/home/bhempen/ms_error.txt" DEBUG 5 CONF

[mapserver-users] SLD ignored with mode=map .. ?

2011-08-29 Thread Julien Cigar
Hello, everything is in the title :) : I wondered if it's normal that my SLD is ignored when mode=map (it works perfectly with WMS)? I use an URL like: http://home.bebif.be/mapserver?map=/path/to/mapfile.map&layer=metzger&mode=map&SLD=http://some.host.be/nobanis/mysld.xml Thank you, Julien

Re: [mapserver-users] Issue with run-time substitution?

2011-08-30 Thread Julien Cigar
On 08/30/2011 13:43, Stephen Davies wrote: I am running mapserver 6.0.1 with map files migrated from 5.6.3. One of my map files has stopped working properly and I suspect that it may be a bug in the 6.0.1 run-time substitution code. The relevant map file layer sections look like this: LAYE

Re: [mapserver-users] SLD ignored with mode=map .. ?

2011-09-01 Thread Julien Cigar
, Aug 30, 2011 at 11:08 AM, Daniel Morissette wrote: Yes, that's the expected behavior: SLDs are supported only in WMS requests. On 11-08-29 07:39 AM, Julien Cigar wrote: Hello, everything is in the title :) : I wondered if it's normal that my SLD is ignored when mode=map (it works

Re: [mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread Julien Cigar
couldn't you use WHERE ST_GeometryType(col) = "ST_Point" ? On 09/02/2011 13:50, kaipi wrote: I have a PostGIS database with polygon, line and point features. I want to make a Mapserver layer, that only displays the point features. AFAIK without such filtering Mapserver would render in a Point-Ty

Re: [mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread Julien Cigar
On 09/02/2011 14:02, Julien Cigar wrote: couldn't you use WHERE ST_GeometryType(col) = "ST_Point" ? also note that to avoid a seqscan you should create an appropriate index: CREATE INDEX your_index ON your_table(ST_GeometryType(geom)) WHERE ST_GeometryType(geom) = 'ST_

[mapserver-users] how to use STYLES .. ?

2011-09-06 Thread Julien Cigar
Hello, I have the following layer http://www.pastie.org/2490986 with the following SLD http://www.pastie.org/2490993 Is it possible to mix a SLD= with a STYLES= .. ? Any idea why with the following request (STYLES=bar): http://my.server/mapserver?map=/my/mapfile.map&LAYERS=eea&TRANSPARENT=TRUE

Re: [mapserver-users] how to use STYLES .. ?

2011-09-06 Thread Julien Cigar
OK.. it looks like I cannot use STYLES= and SLD= at the same time .. Does anyone have an idea how to put a simple text constant (copyright) and a graphic image (logo) at the bottom of a map (*in SLD*)? Thanks, Julien On 09/06/2011 13:50, Julien Cigar wrote: Hello, I have the following layer

[mapserver-users] PostGIS query

2012-01-31 Thread Julien Cigar
Hello, Is there a way to (deeply) modify the SQL query in a PostGIS layer? I would like to add some JOIN, additional WHERE clauses, etc As I'm afraid that "Run-time Substitution" isn't flexible enough for this case ... is there any other possibility, other than mapscript? I guess there is no p

Re: [mapserver-users] PostGIS query

2012-02-01 Thread Julien Cigar
unnecessary JOIN Cheers from México IC Carlos Ruiz *From:* Julien Cigar *To:* "mapserver-users@lists.osgeo.org" *Sent:* Tuesday, January 31, 2012 6:38 AM *Subject:* [mapserver-users] PostGIS query Hello, Is ther

Re: [mapserver-users] Really slow map creation from POSTGIS DB

2012-04-28 Thread Julien Cigar
On 04/28/2012 14:44, Matt McClelland wrote: Hi All I have a set of contours in a SHP file If I point my map file to the SHP file I can generate a WMS image in under 1 second Shp file is just shy of 200MB I then use shp2pgsql to load the same dataset into the DB I added an index for the_geom A