[mapserver-users] copyright, logos, etc

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Wed Feb 11 07:25:15 PST 2015


> 
> It's a little ugly but it works with:
> https://gist.github.com/silenius/f0b0fb856b82a7c70eaa

Being on PostGIS I'd suggest using the native driver with something like that:

  CONNECTIONTYPE postgis
  DATA "geom FROM (select id, name, now() as generated_date, st_GeomFromText('POINT(-5 70)') AS geom FROM map WHERE id=%MYID%) AS tmp USING SRID=-1 USING UNIQUE id"
  CLASS
    LABEL
      TEXT "Species 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
      END
    END
  END


More information about the mapserver-users mailing list