Re: [mapserver-users] Color ramps with polygons vs raster

2015-12-08 Thread Jörg Thomsen

Am 07.12.2015 um 23:17 schrieb Heidi Ochis:

Can you give a polygon file (values 1 - 50) a graduated color ramp using
a class expression?


more or less, this works:

CLASS
  NAME 'roads'
STYLE
  WIDTH 3
  COLORRANGE 0 0 255 255 0 0   #color start RGB and end RGB
  DATARANGE 0 50  #the data range is normally set to the class expression 
range
  RANGEITEM "maxspeed" # maxspeed­value in osm­dataset
END
  END


Jörg



Heidi
Computer Terrain Mapping, Inc
420 21st Ave, Suite 114
Longmont, CO 80501
303-444-1670
h...@ctmap.com 






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




---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

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

Re: [mapserver-users] create wms service with mapserver

2015-11-23 Thread Jörg Thomsen
Hi,

nothing went wrong. The problem under windows is, that apache(?) names
the capabilities-document mapserv.exe. Save it, open it in an editor and
see your capabilities!

Perhaps anyone reading this can tell us how to configure the
windows-instrallation, so that the capabilities-doc is not named .exe? I
don't know.

Jörg



Am 23.11.2015 um 10:30 schrieb rishi:
>
> i am trying to create wms service using postgres data in mapserver my
> map file(wms.map) is
>
> MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947
> TRANSPARENT on IMAGETYPE png size 150 500
>
> |web metadata |
>
> "wms_title" "Customer Airports" "wms_onlineresource"
> "http://localhost:8085/cgi-bin/mapserv.exe?; "wms_enable_request" "*"
> "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type"
> "text/html" "wms_format" "image/png"
>
> |end end |
>
> LAYER CONNECTIONTYPE postgis
> CONNECTION "user=postgres password=abcd dbname=sample port=5432
> host=localhost" DATA "geom FROM district_old using unique gid"
>
> |STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END
> labelitem 'district' class style #color 55 230 51 outlinecolor 90 90
> 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201
> 14 position auto END end |
>
> END
>
> END
>
> in the browser when i paste the url
> "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map=WMS=GetCapabilities;
>
> it is not displaying the xml file instead it is downloading the
> mapserv.exe file
>
> please correct my code also tell me the requirements to work with wms
>
>
>
> ___
> 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] html tags in GetFeatureInfo

2015-09-18 Thread Jörg Thomsen
Hello Sören,

I guess the html-tags are escaped by mapserver, try to use the raw-output:
> [attribute name],[attrribute name_esc],[attribute item name_raw]
>...
> By default the attributes are encoded
> especially for HTML representation. In addition the escaped version
> (for use in URLs) as well as the raw data is available.

http://mapserver.org/mapfile/template.html

Jörg

Am 18.09.2015 um 11:13 schrieb Horn, Sören:
> Hi,
> 
> 
> 
> I'm using the GetFeatureInfo to show some column values from a 
> database.
> 
> Everything works just fine.
> 
> 
> 
> But now I want to use html tags, such as ,  and  for
>  styling my output text.
> 
> So I tried to write my content with the html syntax, like
> 
> "some-strong-contentnormal-textsome-emphasized-text",
>
>
> 
in a PostGIS column description (with datatype 'text').
> 
> 
> 
> Code snippet from my Getfeatureinfo html:
> 
> ...
> 
> 
> 
> Content
> 
> [description]
> 
> 
> 
> ...
> 
> 
> 
> But the GetFeatureInfo do not interpret the html tags and write the 
> exact column value (with all html tag).
> 
> 
> 
> Is there a possibility to use html tags in a PostGIS database that 
> are interpreted by MapServers GetFeatureInfo?
> 
> 
> 
> 
> 
> OS:  Debian GNU/Linux 7.8 (wheezy)
> 
> kernel: 3.2.0-4-amd64
> 
> 
> 
> MapServer: 6.4
> 
> PostGIS: 1.5
> 
> 
> 
> 
> 
> 
> 
> Best regards,
> 
> Sören Horn
> 
> 
> 
> __
> 
> *Landesvermessung und Geobasisinformation Brandenburg***
> 
> Dezernat 43 – GDI, Kontaktstelle, INSPIRE-Zentrale
> 
> Herr Sören Horn
> 
> Heinrich-Mann-Allee 103 - Haus 19, 14473 Potsdam
> 
> 
> 
> Mail: soeren.h...@geobasis-bb.de 
> 
> Tel.: (03 31) 88 44 - 247
> 
> http://www.geobasis-bb.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] map server (map script mode) zoom in and zoom out like google zooming

2015-07-10 Thread Jörg Thomsen
Hello,

MapServer does not provide any zoom-functionality, it only generates
maps or maptiles (and some other geodata). any interaction has to be
done client-sided. I think you need sth like OpenLayers or Leaflet.

 but i am also want to made the same as in ms4w(map script mode)
can you point us to the exact example?

Jörg

Am 10.07.2015 um 09:25 schrieb ankur chitranshi:
 Dear Vladimir 
 
 that is ok, 
 
 but i am also want to made the same as in ms4w(map script mode) also
 
 Kindly help me out, for improving my map server(map script ) Zoom In 
 Zoom Out , work as similar to google map, zooming ..
 
 On Fri, Jul 10, 2015 at 11:57 AM, Vladimir f...@inbox.ru
 mailto:f...@inbox.ru wrote:
 
 Hi Ankur,
 
 Why don' t you use client-side interaction?
 For example Openlayers has this ability out-of-box.
 
 
 Dear All, 
 
  Kindly help me out, for improving my map server(map script )
 Zoom In  Zoom Out , work as similar to google zooming ..
 
 thanks in advance
 
 -- 
 thanks  regards
 Ankur Chitranshi
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http:///compose?To=mapserver%2dus...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 -- 
 thanks  regards
 Ankur Chitranshi
 
 
 ___
 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] (no subject)

2015-07-07 Thread Jörg Thomsen

http://lmgtfy.com/?q=mapserver+download

Am 07.07.2015 09:10, schrieb sowmiya san:

please send mapserver download link


___
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

2015-06-23 Thread Jörg Thomsen
Hi,

I geuess it's the 'Missing required parameter CRS'

in wms 1.3.0 srs=EPSG: has changed to crs=EPSG:

Jörg


m 23.06.2015 um 15:13 schrieb hosain mohammadi:
 Hi every one
 
 i have a problem according to 
 when run URL bellow 
 
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.mapSERVICE=WMSVERSION=1.3.0REQUEST=GetMapLAYERS=tehranLAYERS=newlayerSRS=EPS%E2%80%8C%E2%80%8BG:32639BBOX=530813.672387891,3955659.51937927,536046.413657126,3958686.85164527WIDTH=400HEIGHT=300FORMAT=image/png
 
 
 the error apear
 This XML file does not appear to have any style information associated
 with it. The document tree is shown below.
 ServiceExceptionReport xmlns=http://www.opengis.net/ogc; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.3.0 
 xsi:schemaLocation=http://www.opengis.net/ogc
 http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd;
 ServiceException code=MissingParameterValue
 msWMSLoadGetMapParams(): WMS server error. Missing required parameter CRS
 /ServiceException
 /ServiceExceptionReport
 
 
 what is 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] wfs service

2015-06-11 Thread Jörg Thomsen
Hi,

yes I know, because MapServer tells it:

 WFS request not enabled. Check wfs/ows_enable_request settings.

- http://bfy.tw/Hbq
-
http://mapserver.org/ogc/wfs_server.html#configuring-your-mapfile-to-serve-wfs-layers

 wfs_enable_request *  # necessary

If this does not help, please show us your mapfile.

Jörg


Am 11.06.2015 um 11:22 schrieb hosain mohammadi:
 Hi
 
 i want to do WFS service  
 
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.mapSERVICE=WFSVERSION=1.0.0REQUEST=getfeatureTypeName=tehran
 
 but the result appear 
 
 This XML file does not appear to have any style information associated
 with it. The document tree is shown below.
 ServiceExceptionReport xmlns=http://www.opengis.net/ogc; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.2.0 
 xsi:schemaLocation=http://www.opengis.net/ogc
 http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd;
 ServiceException code=InvalidParameterValue locator=request
 msWFSDispatch(): WFS server error. WFS request not enabled. Check
 wfs/ows_enable_request settings.
 /ServiceException
 /ServiceExceptionReport
 
 
 some one know where i worng
 
 
 
 
 
 
 ___
 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] no result with getFeatureInfo text/plain

2015-06-10 Thread Jörg Thomsen
Hello,

in my WMS getFeatureInfo works fine with info_format html [1] and gml,
but I don't get a result with text/plain [2]. And I found similar a
example on mapserver.org... [3]  [4].

Why does getFeaturInfo for text/plain not work?

[1]
http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/htmlEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;

[2]
http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/plainEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;

[3]
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280

[4]
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/htmlX=229Y=280

Jörg

and here's my mapfile:
   WEB
 IMAGEPATH '/tmp/'
 IMAGEURL '/tmp/'
 
 METADATA
   'ows_title'   'Flächennutzungsplan der Stadt Luckau und seinen 
 Ortsteilen'
   'ows_onlineresource'  
 'http://geoportal.luckau.de/ows/flaechennutzungsplaene'
   'ows_srs' 'EPSG:4326  EPSG:25832 EPSG:25833 EPSG:325833 
 EPSG:4528 EPSG:4839'
   'ows_abstract''WMS-Dienst zur Dartellung von 
 Flächennutzungspläne im Stadtgebiet Luckau mit seinen Ortsteilen'
   'ows_accessconstraints' 'none'
   'ows_fees' 'none'
   'ows_keywordlist' 'Luckau, Flächennutzungspläne, WMS'
   'ows_include_items' 'all'
   'ows_encoding' 'ISO-8859-1'
   'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
   'gml_include_items' 'all'
   include  './includes/contact_information.inc.map'
 END
   END
 
 ### Layer 
 
   LAYER
 NAME 'FNP01_Grenze'
   CLASS
NAME 'plan_grenze' 
STYLE
  SYMBOL 0 
width 3
  OUTLINECOLOR 0 0 255
  #COLOR 220 54 199
END
 END
 DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp'
 METADATA
   'ows_title' 'FNP 01 Grenze'
   'ows_abstract' 'Umring Flächennuntzungsplan Luckau, Teil 1, Kümmritz, 
 Uckro, Paserin'
 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 
 EPSG:4839'
 gml_include_items all
   gml_featureid ID
   ows_enable_request *
 END
 STATUS ON
 PROJECTION
   init=epsg:325833
 END
   TYPE POLYGON
 DUMP true
 HEADER './templates/fnp_legende_header.html'
 TEMPLATE './templates/fnp_legende.html'
 FOOTER './templates/footer.html'
   END


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

Re: [mapserver-users] no result with getFeatureInfo text/plain

2015-06-10 Thread Jörg Thomsen
Am 10.06.2015 um 16:22 schrieb Lars Schylberg:
 I think You should have a
 
 wms_include_items all
 
 in the LAYER METADATA section.

yeees, thanks! I thought 'ows_include_items' 'all' in the header should
be enough.

 Same comment as I had last week.
for last weeks problem this was not the solution.

Jörg


 /Lars
 
 Jörg Thomsen skrev den 2015-06-10 16:00:
 Hello,

 in my WMS getFeatureInfo works fine with info_format html [1] and gml,
 but I don't get a result with text/plain [2]. And I found similar a
 example on mapserver.org... [3]  [4].

 Why does getFeaturInfo for text/plain not work?

 [1]
 http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/htmlEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;


 [2]
 http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/plainEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;


 [3]
 http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280


 [4]
 http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/htmlX=229Y=280


 Jörg

 and here's my mapfile:
WEB
  IMAGEPATH '/tmp/'
  IMAGEURL '/tmp/'

  METADATA
'ows_title'   'Flächennutzungsplan der Stadt Luckau
 und seinen Ortsteilen'
'ows_onlineresource' 
 'http://geoportal.luckau.de/ows/flaechennutzungsplaene'
'ows_srs' 'EPSG:4326  EPSG:25832 EPSG:25833
 EPSG:325833 EPSG:4528 EPSG:4839'
'ows_abstract''WMS-Dienst zur Dartellung von
 Flächennutzungspläne im Stadtgebiet Luckau mit seinen Ortsteilen'
'ows_accessconstraints' 'none'
'ows_fees' 'none'
'ows_keywordlist' 'Luckau, Flächennutzungspläne, WMS'
'ows_include_items' 'all'
'ows_encoding' 'ISO-8859-1'
'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
'gml_include_items' 'all'
include  './includes/contact_information.inc.map'
  END
END

 ### Layer 

LAYER
  NAME 'FNP01_Grenze'
 CLASS
 NAME 'plan_grenze'
 STYLE
   SYMBOL 0
  width 3
   OUTLINECOLOR 0 0 255
   #COLOR 220 54 199
 END
  END
  DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp'
  METADATA
'ows_title' 'FNP 01 Grenze'
'ows_abstract' 'Umring Flächennuntzungsplan Luckau, Teil 1,
 Kümmritz, Uckro, Paserin'
   'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833
 EPSG:4528 EPSG:4839'
   gml_include_items all
gml_featureid ID
ows_enable_request *
  END
  STATUS ON
  PROJECTION
 init=epsg:325833
  END
 TYPE POLYGON
  DUMP true
  HEADER './templates/fnp_legende_header.html'
  TEMPLATE './templates/fnp_legende.html'
  FOOTER './templates/footer.html'
END

 ___
 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] no result with getFeatureInfo text/plain

2015-06-10 Thread Jörg Thomsen
Hello Jukka,

it is definitely a feature. It's nice to define different outputs, all
items for text/plain an only a formatted subset in html.

But wouldn't it be nice too, if we only had to configure it in the
header with an overwrite-option in the layer-section?

Jörg

Am 10.06.2015 um 16:26 schrieb Rahkonen Jukka (MML):
 Hi,
 
 You must have either wms_include_items or ows_include_items in the 
 LAYER-METADATA. Now you have only gml_include_items at LAYER level. You do 
 have ows_include_items at MAP level but it does not have any effect there. 
 On the other hand, ows_include_items does not have any effect on the 
 text/html output but that can only be adjusted by editing the template. For 
 sending out the same information with text/plain and text/html the Mapserver 
 admin must make edits in two different places - ows_include_items and the 
 template. I am not sure if this should be considered as a bug or a feature 
 but at least it is confusing.
 
 Tested with Mapserver 7.0-beta1.
 
 -Jukka Rahkonen-
 
 Jörg Thomsen wrote:
 
 
 Hello,
 
 in my WMS getFeatureInfo works fine with info_format html [1] and gml, but I 
 don't get a result with text/plain [2]. And I found similar a example on 
 mapserver.org... [3]  [4].
 
 Why does getFeaturInfo for text/plain not work?
 
 [1]
 http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/htmlEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;
 
 [2]
 http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1REQUEST=GetFeatureInfoSERVICE=WMSLAYERS=FNP10_GrenzeQUERY_LAYERS=FNP10_GrenzeWIDTH=650HEIGHT=450SRS=EPSG:25833BBOX=392406,5730396.807692308,434593,5759603.192307692STYLES=FORMAT=image/pngINFO_FORMAT=text/plainEXCEPTIONS=application/vnd.ogc.se_xmlX=369Y=359FEATURE_COUNT=100;
 
 [3]
 http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280
 
 [4]
 http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/htmlX=229Y=280
 
 Jörg
 
 and here's my mapfile:
   WEB
 IMAGEPATH '/tmp/'
 IMAGEURL '/tmp/'

 METADATA
   'ows_title'   'Flächennutzungsplan der Stadt Luckau und seinen 
 Ortsteilen'
   'ows_onlineresource'  
 'http://geoportal.luckau.de/ows/flaechennutzungsplaene'
   'ows_srs' 'EPSG:4326  EPSG:25832 EPSG:25833 EPSG:325833 
 EPSG:4528 EPSG:4839'
   'ows_abstract''WMS-Dienst zur Dartellung von 
 Flächennutzungspläne im Stadtgebiet Luckau mit seinen Ortsteilen'
   'ows_accessconstraints' 'none'
   'ows_fees' 'none'
   'ows_keywordlist' 'Luckau, Flächennutzungspläne, WMS'
   'ows_include_items' 'all'
   'ows_encoding' 'ISO-8859-1'
   'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
   'gml_include_items' 'all'
   include  './includes/contact_information.inc.map'
 END
   END

 ### Layer 

   LAYER
 NAME 'FNP01_Grenze'
  CLASS
NAME 'plan_grenze' 
STYLE
  SYMBOL 0 
   width 3
  OUTLINECOLOR 0 0 255
  #COLOR 220 54 199
END
 END
 DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp'
 METADATA
   'ows_title' 'FNP 01 Grenze'
   'ows_abstract' 'Umring Flächennuntzungsplan Luckau, Teil 1, Kümmritz, 
 Uckro, Paserin'
'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 
 EPSG:4839'
gml_include_items all
   gml_featureid ID
   ows_enable_request *
 END
 STATUS ON
 PROJECTION
  init=epsg:325833
 END
  TYPE POLYGON
 DUMP true
 HEADER './templates/fnp_legende_header.html'
 TEMPLATE './templates/fnp_legende.html'
 FOOTER './templates/footer.html'
   END
 
 
 ___
 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] db connection through Mapserver fails

2015-06-10 Thread Jörg Thomsen
hello,

I hope you did not provide your real connection params?

It is a PG-'poblem', try to close some open connections (old and still
running ms-processes, PG-Admin, ..) or increase the max_connections
configuration of your PostgreS.

Jörg




Am 10.06.2015 um 16:18 schrieb Ahmet Temiz:
 hello
 
 My postgis raster db connection through Mapserver fails.
 
 here is the message coming from WildFly:
 
 db connection data PG: dbname=tr22 host=localhost user=orkun
 password=22 port=5432 schema=public table=o_4_trdem2where=
 ST_Intersects(rast,  ST_MakeEnvelope( 29.90 , 40.42 , 31.49 , 40.99,
 4326  )) mode=2
 
 ERROR 1: PQconnectdb failed: FATAL:  remaining connection slots are
 reserved for non-replication superuser connections
 
 Can you tell me why ?
 
 regards
 
 
 
 -- 
 Ahmet Temiz
 Jeoloji Müh.
 Afet ve Acil Durum Yönetimi Başkanlığı
 Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu
 
 
 
 
 Ahmet Temiz
 Geological Eng.
 Information Systems - GIS Group
 Disaster and Emergency Management
 of Presidency
 
 
 ___
 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] on the fly projection

2015-06-08 Thread Jörg Thomsen
hello,

ist does. you have to define the output projection within the metadata:
http://mapserver.org/de/ogc/wms_server.html#setting-up-a-wms-server-using-mapserver

Reprojection is fast, but if you know which projection your users need,
it is faster to reproject the rasters in your data storage.

Jörg

Am 08.06.2015 um 11:08 schrieb Ahmet Temiz:
 hello
 
 I am wondering if a map file  enables us to on the fly projection.
  
 I have input raster data in epsg :4326 storing in postgis  but output raster
 map should be in epsg:3857 as tif.
 
 
 
 regards
 
 
 
 -- 
 Ahmet Temiz
 Jeoloji Müh.
 Afet ve Acil Durum Yönetimi Başkanlığı
 Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu
 
 
 
 
 Ahmet Temiz
 Geological Eng.
 Information Systems - GIS Group
 Disaster and Emergency Management
 of Presidency
 
 
 ___
 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 service problem with mapserver mapfile layer classes

2015-06-04 Thread Jörg Thomsen
Hi Goran,

 I would like from you confirmation url that you gave

http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapGODINA=2013;

yes that's what I meant yesterday for testing it in qgis, but if you
want provide your url to others you should have a look at
http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url

Jörg


Am 03.06.2015 um 17:59 schrieb gorank:
 Hi Jorg,
 It works with you help. Thanks. Actually I had problem to show
 municipalities in qgis but your suggestion to add YEAR in service url,
 solves the problem. I use shapefile with Year as attribute name (time series
 from 2009 to 2013) so in openlayers I select year from dropdown list and in
 the map show values from the shossen column.
 
 I would like from you confirmation url that you gave 
 http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapGODINA=2013;
 
 is final WMS url that users should have from our side, to access our WMS
 service?





 Goran
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208979.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] WMS service problem with mapserver mapfile layer classes

2015-06-04 Thread Jörg Thomsen
Am 04.06.2015 um 13:00 schrieb gorank:
 I have changed it, actually deleted validation statement on CLASS level and
 add in LAYER METADATA 
 
 *default_godina 2010*
 
 and now the map for 2010 is shown.
 
 My question is, what should have the user to get map for year 2011 or 2013,
 because, I suppose, that always when I call the mapfile I will receive map
 for year 2010 (as default value) .

The user has to add the GODINA Paramater to the url, it will overwrite
the default. That's why it is called default ;)

If you want to tell the user what to, you could use a default which is
not in your data (e.g. 1000) and create an annotation (label) within
this class where you decribe that he needs the GODINA parameter for
proper work of the wms.

the OGC-Way would be to include the paramater in the Capabilities XML
(s.
http://cite.opengeospatial.org/OGCTestData/wms/1.1.1/spec/wms1.1.1.html#basic_elements.params.vsps).
But I don't know how to do that.

Jörg

 
 Any suggestions?
 
 Goran
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209115.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] WMS service problem with mapserver mapfile layer classes

2015-06-03 Thread Jörg Thomsen
Hi Goran,

problem solved? it seems to work...?

these two requests result in different maps:

http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:7269FORMAT=image/pngLAYERS=Opstini%2CRegioni%2CDrzGran%2CEzeraBBOX=436350.358101,4509075,688350.358101,4698075WIDTH=800HEIGHT=600GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:7269FORMAT=image/pngLAYERS=Opstini,Regioni,DrzGran,EzeraBBOX=436350.358101,4509075,688350.358101,4698075WIDTH=800HEIGHT=600GODINA=2013

http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:7269FORMAT=image/pngLAYERS=Opstini%2CRegioni%2CDrzGran%2CEzeraBBOX=436350.358101,4509075,688350.358101,4698075WIDTH=800HEIGHT=600GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:7269FORMAT=image/pngLAYERS=Opstini,Regioni,DrzGran,EzeraBBOX=436350.358101,4509075,688350.358101,4698075WIDTH=800HEIGHT=600GODINA=2009

What I don't understand is your classification. The validation only
allows 4-digit values and there's only one class that fits ( EXPRESSION
([%godina%] = 20 and [%godina%]  1)).

Or do you only wnat to know why your WMS does not work with qgis?
There you have to add your vendor parameter to the base url:
http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapGODINA=2013;

*AND* you have to check the option 'ingnore getMap-URI from
Capabilities' (or sth like that, don't know the english expression).

Jörg


Am 02.06.2015 um 23:30 schrieb gorank:
 Here is image of all layers defined in mapfile and called with URL
 
 http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:7269FORMAT=image/pngLAYERS=Opstini%2CRegioni%2CDrzGran%2CEzeraGODINA=2009BBOX=436350.358101,4509075,688350.358101,4698075WIDTH=800HEIGHT=600
   
 
 http://osgeo-org.1560.x6.nabble.com/file/n5208769/WMS_Browser.png 
 
 Here is image of QGIS with all layers called plus Google Maps. All defined
 layers in mapfile are shown except of layer Opstini (means municipalities). 
 
 http://osgeo-org.1560.x6.nabble.com/file/n5208769/WMS_QGis.png  
 
 Why I cannot see the layer with municipalities and few classes?
 
 Goran
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208769.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] color range fade to transparent.

2015-06-03 Thread Jörg Thomsen
Hi Bob,

this cannot work I think. A colorrange from 255 0 0 to 254 254 254
renders a map with many colors. In  best case only data values at 300
will be rendered 254 254 254 (perhaps you can check that with a
color-picker? perhaps a clean 254 254 254 is never reached).

But I think you would like to have a layer where the smallest value is
not transparent, the highest value is totally transparent and the values
between are a bit transparent, right? I think you only can set the
opacity for the whole layer.

Jörg

 Am 03.06.2015 um 00:33 schrieb Basques, Bob (CI-StPaul):
 All,
 
 My solution below turned out to not be correct either.  It just ramps
 down from RED to the color WHITE, no transparency.
 
 Here is the layer block I’m using that I’m trying to fade to a
 transparent feature:
 
 MAP
 
 TRANSPARENT true
 IMAGECOLOR 254 254 254
 
 more stuff
 
 LAYER
 METADATA
  ows_title bbox
  gml_include_items all
 END
 GROUP 'users'
 NAME 'bbox'
 STATUS ON
 TYPE LINE
 
 
 DB connections stuff
 
 
 ## the following greabs a 5 min chunk of data (BBOX geoms  from the
 database from 28 hrs ago and assigns a seq and elapsed time column to
 the result.
 DATA bbox from (
 
 SELECT
 row_number() over (order by accessed_at nulls last) as seq,
 date_part('epoch', (now() - INTERVAL '28 hours' -
 accessed_at)::interval) as elapsed,
 id, accessed_at, bbox
 FROM
 layer_metrics
 Where
 accessed_at  (NOW() - INTERVAL '28 hours')
 AND
 accessed_at = (NOW() - INTERVAL '28
 hours' - INTERVAL '5 minute')
 
  ) as subquery using unique id
 using srid=200068
 
 LABELITEM elapsed
 
 CLASS
 #NAME 5 Minute Trail
 EXPRESSION ([elapsed] = 0 AND [elapsed]  300) ## 0-5min 
 STYLE
 OUTLINECOLOR 0 0 0
 OUTLINEWIDTH 1
 #COLOR 0 255 0
 COLORRANGE 255 0 0 254 254 254 ##red to opaque (see IMAGECOLOR in the
 MAP block above)
 DATARANGE 0 300
 RANGEITEM elapsed
 
 END
 END
 END
 END
 
 
 bobb
 
 
 
 On Jun 2, 2015, at 4:27 PM, Ben Madin b...@ausvet.com.au
 mailto:b...@ausvet.com.au wrote:

 Bob,

 Nice, I never knew that such a colorrange option existed (at least, I
 couldn’t find it documented anywhere?) but I would have presumed maybe
 you could specify the colour using the alpha like any other colour?

 COLORRANGE 255 0 0 255 255 255 255  0 ## red - transparent



 Alternatively, if you had a common background colour, you could fade
 to that?

 cheers

 Ben



 On 2015-06-03, at 04:48 , Basques, Bob (CI-StPaul)
 bob.basq...@ci.stpaul.mn.us mailto:bob.basq...@ci.stpaul.mn.us wrote:

 All,

 Anyone know how to use a transparent color on one end of the coloring
 option?

 COLORRANGE 255 0 0 ??? ??? ??? ## red - transparent

 It there a RGB color to use for Transparency to fade to?  I basically
 want to fade a line based on age to nothing.

 Thanks

 bobb



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


 -- 

 Ben Madin

 t : +61 8 6102 5535
 m : +61 448 887 220
 e : b...@ausvet.com.au mailto:b...@ausvet.com.au

 AusVet Animal Health Services
 Western Australia

 AusVet's website:  http://www.ausvet.com.au

 This transmission is for the intended addressee only and is
 confidential information. If you have received this transmission in
 error, please delete it and notify the sender. The contents of this
 email are the opinion of the writer only and are not endorsed by
 AusVet Animal Health Services unless expressly stated otherwise.
 Although AusVet uses virus scanning software we do not accept
 liability for viruses or similar in any attachments. Thanks for reading.

 
 
 
 ___
 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] RE GetFeatureInfo on an WFS-Client-Layer

2015-06-02 Thread Jörg Thomsen


Am 02.06.2015 um 14:59 schrieb steve.tout...@inspq.qc.ca:
 I'm confused , do you mean that you have a WFS layer that you want to
 publish as a WMS?
 Could you send the layer definition of your mapfile?
 Also have a look at TEMPLATE and DUMP in the layer def

this is my mapfile:
http://tib.osmct.de/berlin_boris_wfs.map

it has a template and dump is deprecated as I know.

Jörg

 *Jörg Thomsen j...@mapmedia.de@lists.osgeo.org*
 Envoyé par : mapserver-users-boun...@lists.osgeo.org
 
 2015-06-02 08:51
 Veuillez répondre à
 j...@mapmedia.de
 
 
   
 A
   mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
 cc
   
 Objet
   Re: [mapserver-users] RE  GetFeatureInfo on an WFS-Client-Layer
 
 
   
 
 
 
 
 
 
 
 Hello  Steve,
 
 Am 02.06.2015 um 14:08 schrieb steve.tout...@inspq.qc.ca:
 GetFeatureInfo is a WMS request, not WFS.
 More details would help, to help..
 
 I am confused, does GetFeatureInfo on an WFS-Client-Layer work?
 The Capablites say the layer ist queryable, but the request-answer ist
 'no object fond'.
 
 you are right. But my problem is a WFS-*client* Layer: My datasource is
 a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but
 not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always
 'no object found'.
 
 I would like to know if this generally should work, because I think
 mapserver only requests the gml temporarily to render the map and then
 there is no geodata for answering a later featureinfo-request.
 
 I tested with 6.4
 
 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] GetFeatureInfo on an WFS-Client-Layer

2015-06-01 Thread Jörg Thomsen
Hi,

I am confused, does GetFeatureInfo on an WFS-Client-Layer work?
The Capablites say the layer ist queryable, but the request-answer ist
'no object fond'.

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

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

2015-04-23 Thread Jörg Thomsen
Hallo Markus,

I remember this thread:
http://mapserver-users.umn.narkive.com/sUT3WyaT/wrong-different-legend-generation
but I don't know the ending...

In your legend definition you are using wrap, as I remember you have to
use html 'br /' for legends (in the class name). Additionally you
should use an offset to shift the text upward.

In one of my projects I had to use up to three lines for the description
in the legend and I added dummy classes with white symbols an nbsp; as
name between each real class to have enough space for my text.

perhaps this works for you too.

Jörg

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


Re: [mapserver-users] mapserver 6.4.1 - special characters in legend

2015-04-15 Thread Jörg Thomsen
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


Re: [mapserver-users] mapserver 6.4.1 - special characters in legend

2015-04-15 Thread Jörg Thomsen
Hi,

- be sure use a ttf for the labeling of your legend
- use the encoding key within the label-block of your legend-block
- safe your mapfile with the correct encoding - the same you define in
the mapfile

It has nothing to do with the apache encoding, because mapserver creates
the legend-graphic, apache only serves the raster-file.

I hope it helps, Jörg


Am 15.04.2015 um 12:36 schrieb Carmen Delia Hernández Pérez:
 Hi!
 
  
 
 I am installing Mapserver 6.4.1 on CentOS 7 for publish  WMS services. I
 have been installing all dependencies and I compiled mapserver.
 Mapserver works. The WMS services work well except with legends 
 generation . In layers with one special character ( accent, ñ ) in its
 title, legend is wrong.
 
  
 
 For example:
 
 LAYER
 
   NAME Campos_futbol
 
   STATUS ON
 
   METADATA
 
ows_title  Campos de
 fútbol
 
  
 
   ...
 
  
 
 When I do one GetLegendGraphic query it returns Campos de f.tbol in
 layer description because the u character  accented is wrong.
 
  
 
 I don´t know where is the problem because when I do one GetFeatureInfo
 query  or  one GetCapabilities query,  these characters are show
 correctly. My apache has  ISO-8859-1 encoding by default.
 
 --
 
  
 
 GetFeatureInfo results:
 
  
 
 Layer 'Campos_futbol'
 
   Feature 38: 
 
 NOMBRE = 'Campo de Fútbol de La Matanza'
 
  
 
 --
 
 GetCapabilities results:
 
  
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
  
 
 
 
  
 
 Layer queryable=1 opaque=0 cascaded=0
 
 NameCampos_futbol/Name
 
 TitleCampos de fútbol/Title
 
  
 
 --
 
 --
 
  
 
  
 
 *Someone has idea where can be the problem? Can it be I have some
 library incorrect?*
 
  
 
 My Mapserver  is configured so:
 
  
 
 # mapserv -v
 
  
 
 MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
 SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=JPEG
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
  
 
  
 
 Thanks in advance!!
 
  
 
 Carmen
 
 
 
 ___
 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 there a way to convert a QGIS layout into a .map file?

2015-03-18 Thread Jörg Thomsen
Am 18.03.2015 um 13:20 schrieb Jeff McKenna:
 Hi Michael,
 
 I am with you on how important QGIS is for our workflow.
 
 I am aware of a MapServer plugin that is designed for QGIS 2.x, however
 I use the standalone QGIS always, so I have yet to be able to test it
 (it is however available with OSGeo4W apparently).  Give it a try:
 https://plugins.qgis.org/plugins/rt_mapserver_exporter/

it works for file-datasources and there is a wrong definition for
postgis-connections ('USING UNIQUE epsg' instead of 'USING SRID epsg').
But you should have to look at the mapfile in any case.

For finding and using the extension in qgis you have enable the
experimantal plugins.

Jörg

 
 The code for it lives on GitHub
 (https://github.com/faunalia/rt_mapserver_exporter), so maybe some
 passionate MapServer devs can contribute.
 
 -jeff
 

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


Re: [mapserver-users] map file with connection to postgis

2015-01-07 Thread Jörg Thomsen
Hi,

Am 07.01.2015 um 16:33 schrieb geo.grae...@web.de:
 When I leave out schema=public in the string of DATA in my map file
 then i get the following message:
  
 ëPNG
 →
 IHDR  ♥Þ  ♥Þ☺♥   wmFº   ♥PLTE   ºz=┌   ☺tRNS @µÏf   æIDATx£Ý┴1☺   ┬á§Om
 ?á
 ¥♠ý? ☺°1ù!IEND«B`é

looks like this is a png-image. Have you tried to open this file with an
image-viewer?

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

Re: [mapserver-users] Beschriftung Objekte mit gleicher Lage

2015-01-06 Thread Jörg Thomsen
hello and a happy new year!

here you can find a multilabel-example:
http://mapserver.org/development/announce/6-2.html#complex-multi-label-symbol-symbology

https://github.com/mapserver/msautotest/blob/branch-6-2/renderers/multilabel.map


If you don't want a fixed position of the labels you can collect the
attributes / labels in one text-line and use a wrap-character:
CLASS
  NAME blah
  TEXT ([schild1]![schild12]![schild3])
  LABEL
WRAP !
TYPE truetype
FONT 'verdana'

  END
END


both will cause blank lines. To avoid them, my only idea is to use a
view if your data is in a database. You'll have to use conidtions like

SELECT schild1 || schild2 FROM

(SELECT
   CASE
  WHEN schild1 NOT NULL THEN schild1 || !
  ELSE 
  END AS schild1,
   CASE
  WHEN schild2 NOT NULL THEN schild2 || !
  ELSE 
  END AS schild2
FROM table)

Jörg

Am 06.01.2015 um 13:10 schrieb mark kellermann:
 
 Hallo,
 
 ich möchte Punkte (Schilder) beschriften mit Ihrer Nummer.
 An manchen Standorten (Masten) hängen teilweise vier Schilder.
 Wenn ich die Schilder Beschriftung erzwinge (FORCE TRUE), liegt die
 Beschriftung übereinander!
 
 Wie kann ich dies ändern, dass man die Beschriftung aller Punkte lesen kann?
 
 MfG
 Mark Kellermann
 
 
 
 ___
 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] browse mode no longer saves images?

2014-12-16 Thread Jörg Thomsen
Hi Seth,

are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please
check. Also you can use debug-mode to see where mapserver wants to write
the image and perhaps cannot.
the directory has to be writable, but with windows this should not be a
problem.

And you have to define the alias in apache for the tmp-directory like
ALIAS /tmp C:/Mapserver/apps/pms/tmp
Directory C:/Mapserver/apps/pms/tmp
  
/Directory

Jörg

Am 16.12.2014 um 14:03 schrieb geographika:
 Hi list,
 
 Until now I have been using MapServer as a WMS server. I've only
 recently been trying out the CGI controls, which would be very handy for
 a reporting application.
 
 The MapServer tutorials refer several times to saving temporary images
 using the mode=browse. At
 http://demo.mapserver.org/tutorial/section3.html the map images
 generated in these tutorials refer to image files on the web server (so
 are not generated dynamically). E.g.
 http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png
 
 I've tried to set this up in MapServer 6.4 without success. I've set up
 parameters in the WEB section as follows:
 
 WEB
 IMAGEPATH C:/Mapserver/apps/pms/tmp
 # Also tried tmp/
 IMAGEURL tmp/
 TEMPLATE reports/test.html
 
 However no images are ever created in this folder when using a request
 such as http://localhost/mapserver/?LAYERS=mylayermode=browse
 https://localhost/mapserver/?LAYERS=mylayermode=browse
 The template contains file names such as tmp/MyMap14187343292752.png but
 these never seem to be written to disk. How can these images be persisted?
 I know I could use mode=map to generate an image, but I want to create
 legends etc. all with a single request.
 
 Regards,
 
 Seth
 
 --
 web:http://geographika.co.uk
 twitter: @geographika
 
 
 
 
 ___
 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 Jörg Thomsen
Hello Francesco,

no error-message, only a blank image?
What's in the error-log? The MS_ERRORFILE ist set in httpd.conf?

I think symbol is veryvery small. Try = 1.

You can use a csv-file in MapServer via OGR :)
http://mapserver.org/input/vector/ogr.html

Jörg

Am 16.10.2014 um 17:04 schrieb Francesco Palermo:
 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] Label background style

2014-07-01 Thread Jörg Thomsen
Am 01.07.2014 10:15, schrieb Dejan Gambin:
 Hi,
 
 Is it possible to place a label text, for polygon feature, inside a
 circle, like on the picture attached (K1)? I know I can use
 GEOMTRANSFORM labelpoly and get a background rectangle, but I need a
 circle instead.

Hi,

I think you could use LABELTRANSFORM labelpnt and place a circle-symbol.

 label
text K1
color 0 0 0
type truetype
size 15
position cc
font default
style
  geomtransform labelpnt
  symbol circle
  size 18
  color 254 254 254
end
 end

Jörg


 Thanks
 
 regards, dejan
 
 
 
 ___ 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 and WMS

2014-06-13 Thread Jörg Thomsen
Hi Paul,

Am 13.06.2014 14:20, schrieb Malm Paul:
 Hi list!
 
 Is it possible to combine configuration for both WFS and WMS in a mapfile?

yes. you can combine wms_* and wfs_* in metadata-section or use ows_* if
the metadata is the same for wms and wfs.

Jörg

 
  
 
 Thanks,
 
 /Paul
 
 
 
 ___
 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 to use ANNOTATION layer in combination with RASTER data?

2014-06-03 Thread Jörg Thomsen
Hi Jorrit,

you want to label you raster dataset with what?

Regards, Jörg

Am 03.06.2014 14:01, schrieb Jorrit Goddijn:
 Hi all,
 
  
 
 I try draw an ANNOTATION type layer based on RASTER type layer.  When
 doing this based on a shape file I would set the LABEL item on the
 ANNOTATION layer to be attribute used in the shapefile.
 
  
 
 What LABELITEM should I use when using RASTER data?
 
  
 
 I posted the Mapfile I have so far hereunder.
 
  
 
 Thank you for your help.
 
  
 
 Bye
 
  
 
 Jorrit
 
  
 
 #
 
 #grib wave direction layer example
 
 #
 
 LAYER
 
 NAME grib_data
 
 TYPE RASTER
 
  
 
 DATA
 /var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2
 #Current direction @ Mean sea level
 
 PROCESSING BANDS=1
 
 PROCESSING SCALE=0,360 #scale all degrees
 
  
 
 PROJECTION
 
 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360
 
 END
 
 END
 
  
 
 #---
 
 # the annotation layer
 
 #---
 
   LAYER
 
 NAMEgrib_label
 
 DATAgrib_data
 
 STATUS  OFF
 
 TYPEANNOTATION
 
 CLASSITEM   CLASS # do I need it?
 
 LABELITEM   VAR_10-1-0_L101 #what variable name to use?
 
  
 
 CLASS
 
   EXPRESSION [VAR_10-1-0_L101] #gives parse error
 
   STYLE
 
 COLOR  -1 -1 -1
 
   END
 
  
 
   LABEL
 
 COLOR 132 31 31
 
 TYPE TRUETYPE
 
 FONT arial-bold
 
 SIZE 12
 
 ANTIALIAS TRUE
 
 POSITION CL
 
 PARTIALS FALSE
 
 MINDISTANCE 300
 
 BUFFER 4
 
   END # end of label
 
 END # end of class
 
   END # annotation 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] Problems with mapserver gmap

2014-04-30 Thread Jörg Thomsen
Hello Manuel,

please show us lines 65-67 of your gmap75.phtml.

Jörg

Am 30.04.2014 05:02, schrieb Manuel Castro:
 Greetings to all.
 
 Install in MS4W - MapServer 4 Windows - version 3.0.6 on Windows 7
 professional and I generated the following problem with GMap (PHP
 MapScript Sample Application):
 
 Parse error: syntax error, unexpected 'else' (T_ELSE) in
 C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 66.
 
 Request cooperation to solve the problem.
 
 Thank you.
 
 -- 
 Manuel Castro Prado.
 http://signet-siglibre.blogspot.com/
 San José, Costa Rica.
 Escribe texto o la dirección de un sitio web, o bien, traduce un
 documento https://translate.google.co.cr/?tr=fhl=es.
 Cancelar https://translate.google.co.cr/?tr=thl=es
 Traducir del: gallego javascript:void(0)
 SIGWEB Consultants.
 
 
 ___
 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 shows all nodes on a GeometryCollection

2014-04-16 Thread Jörg Thomsen
moin,

I don't see anything, that could cause the problem. Your architecture is
hard to understand without knowing the whole structure, viewing the
reuslts and access to the database. In my mapserver and postgis
trainings I'm always telling the participants you *can* mix
geometry-types and in in most cases it works

So I would suggest to break it down to little pieces and rebuild your
WMS step by step:
- create a wms with only the problematic layer
- use the shape-file as data source
- import the shape-file to an new table with only the point-geometries
- 

it's not a lot of fun, but at any step the behaviour will switch from
right to wrong (or wrong to right) and at this point point it will be
much easier to find the problem. Certainly you may post to the list
again and I am sure many of us want to know the solution. So when it
works don't forget the list :)

Jörg


Am 16.04.2014 08:40, schrieb drobins:
 Hi Jörg,
 
 I have lines, points and polygons stored in my table. The table has various
 columns, one which I filter the elements on (element_type).
 One of those elements is a Voorziening, but Voorziening has points, lines
 and polygon objects.
 
 My LINE layer works fine. It only displays the lines on filter element_type
 = Voorziening
 My POLYGON layer works fine. It only displays the polygons on filter
 element_type = Voorziening
 However, my POINT layer does display the specific point objects, but also
 all nodes on the line/polygon objects with element_type = Voorziening
 
 When I set DEBUG 5 on the point layer and execute that query from the log
 file into pgadmin, it only displays one result.
 
 One thing I tried last night is to use 2 filters; one for the main
 element_type and another that described the object - objective. I was able
 to filter out most of these extra points that way. Unfortunately, objective
 also has point and line objects with the same name, so in a few cases I
 still see the extra points.
 
 
 Added the mapfile via Upload a file, hope it adds correctly
 The layer that's problematic is called 
 NAME elements_voorzieningpoint
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135307.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 shows all nodes on a GeometryCollection

2014-04-15 Thread Jörg Thomsen
Hello,

correct. MapServer does not check the geometry-type, you can visualize a
polygon-layer as points showing the vertices for example.

If you only want to show the points of your geometry-colletcion, you
have to select the points of your geometry only:

select ST_CollectionExtract(geom, 1) as geom ...

Regards, Jörg


Am 15.04.2014 08:56, schrieb drobins:
 Hello,
 
 I am loading a point LAYER in mapserver which requests data from a
 geometrycollection table from my PostGIS database.
 The table has point, line and polygon objects.
 
 Whenever I enable my point layer, it also displays all nodes from the lines
 and polygons.
 When loading the same table into QGIS, these nodes don't show.
 
 I am using Mapserver version 6.4.1 and PostgreSQL version 9.1.12
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064.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] No GetLegendGraphic from RASTER?

2014-04-15 Thread Jörg Thomsen
Hi again,

do you use have a class-section within your raster-layer? KEYIMAGE
should be placed there. Usually it's an 'empty' class, you only need a
name and the key image.

Jörg

Am 15.04.2014 10:22, schrieb drobins:
 Hello,
 
 When I load RASTER layers on my map, no icons will show for these layers in
 the dynamic legend.
 I have tried using the KEYIMAGE to display a legendicon for these layers but
 unfortunately does not seem to work.
 When I use KEYIMAGE for a VECTOR layer, it works fine.
 
 It appears to me this might be a bug? Has anyone else experienced this or
 knows how to fix it?
 
 Thanks.
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081.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] No GetLegendGraphic from RASTER?

2014-04-15 Thread Jörg Thomsen
should work, sorry, perhaps anyone else has an idea?

Jörg


Am 15.04.2014 11:02, schrieb drobins:
 Hi Jörg,
 
 Yes I added it to an empty class-section:
 CLASS
   NAME '2013'
   KEYIMAGE /var/www/apps/gisportalen/shared/keyimage/luchtfoto.png
 END
 
 When I use the same image on a vector layer it displays but with a raster
 layer it doesn't show.
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081p5135085.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 shows all nodes on a GeometryCollection

2014-04-15 Thread Jörg Thomsen
Am 15.04.2014 13:28, schrieb drobins:
 Hello Jörg,
 
 I have tried to get the correct # of points in my query but it keeps
 returning me more than I have.
 There are 293 points in my table, yet the query shows 779 which also appear
 on my map.
 The 293 are the ones I want, the others seem to be the nodes from the
 polygons and/or lines. Is there a way to exclude these?

I am not sure what you are doing, in
select ST_CollectionExtract(geom, 1) as geom ...
the '1' is for poin-geomtries, (2 - lines 3 - polygons)

Jörg

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

Re: [mapserver-users] Mapserver shows all nodes on a GeometryCollection

2014-04-15 Thread Jörg Thomsen
hm..

- lines and points are stored in the same table you said?
- do you get the correct result if you do the data-query in postgis /
pgadmin?
- what happens if you use your point-shape-file as data-source in mapserver?
- if you only request the line-layer the points don't appear?
- could you post the whole mapfile?

Jörg

Am 15.04.2014 13:50, schrieb drobins:
 Let my add a screenshot from my problem
 http://osgeo-org.1560.x6.nabble.com/file/n5135121/error.png 
 
 I have 2 layers enabled in my map: a point layer and a line layer.
 The line layer works correct.
 The point layer shows points that are not in my source data (shape file
 which I inserted into postgis). 
 At every end of a line, somehow a point is added, which isn't in my source
 data.
 
 When I load the same area in QGIS, these points do not appear. 
 
 I hope this makes my problem more clear.
 
 Thanks
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135121.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] Combine GetFeatureInfo for layers with same data source

2014-03-27 Thread Jörg Thomsen
Hi,

okay, join is not what you need, sorry.
Would it work for you if only one of the two layers is queryable?

At the moment I have no idea...

Jörg

Am 27.03.2014 11:57, schrieb TDS:
 Hello,
 
 I've read this and I'm confused of how it can work...
 ONE-TO-ONE or ONE-TO-MANY or ... I want to have a solution *scream* If
 both layers are queried it should be one table, because the date is the
 same. Only the class item differs.
 
 
 Example Mapfile:
 LAYER
 STATUSon
 NAMETrinkwasserversorgung
 TYPEPOLYGON
 DATAwv_wilster_84.shp
 DUMPtrue
 TOLERANCE3
 TOLERANCEUNITSpixels
 CLASSITEMTW
 
 HEADERtemplates/header.html
 TEMPLATEtemplates/template.html
 FOOTERtemplates/footer.html
 
 JOIN
 NAME Wasser
 TABLE wv_wilster_84.dbf
 FROM Id
 TO Id
 TYPE ONE-TO-ONE
 END
 
CLASS
 NAME  Trinkwasser
 EXPRESSION  Trinkwasser
 STYLE
 COLOR   130  192  255
 END
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END
 
 CLASS
 NAME  Selbstversorger
 STYLE
 SYMBOL im_schraffur
 END   
 EXPRESSION  Selbstversorger
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END
 
 PROJECTION
 init=epsg:4326
 END
 
 METADATA
 wms_titleVerbandsgebiet
 wms_title metadata
 wms_include_itemsall
 wms_srsEPSG:4326 EPSG:54004 EPSG:41001
 EPSG:31467 EPSG:31468
 END
 END
 
 LAYER
 STATUSon
 NAMEAbwasserentsorgung
 TYPEPOLYGON
 DATAwv_wilster_84.shp
 DUMPtrue
 TOLERANCE3
 TOLERANCEUNITSpixels
 CLASSITEMAW
 
 HEADERtemplates/header.html
 TEMPLATEtemplates/template.html
 FOOTERtemplates/footer.html
 
 JOIN
 NAME Wasser
 TABLE wv_wilster_84.dbf
 FROM Id
 TO Id
 TYPE ONE-TO-ONE
 END
 
 CLASS
 NAME  Abwasser
 EXPRESSION  Abwasser
 STYLE
 COLOR   255 128 0
 END
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END
 
 CLASS
 NAME  Diverse Abwasseraufgaben
 STYLE
 SYMBOL schraffur_orange
 END
 EXPRESSION  Diverse Abwasseraufgaben
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END
 
 CLASS
 NAME  Kein Abwasser
 EXPRESSION  Kein Abwasser
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END
 
 PROJECTION
 init=epsg:4326
 END
 
 METADATA
 wms_titleAbwasser
 wms_title metadata
 wms_include_itemsall
 wms_srsEPSG:4326 EPSG:54004 EPSG:41001
 EPSG:31467 EPSG:31468
 END
 END
 
 
 
 Bye, TDS
 
 mailto:t...@tds-net.de
 
 1+1=10
 You have a question? - 42 or RTFM.
 Am 26.03.2014 21:50, schrieb j...@mapmedia.de:

 Hi,

 Referring to your signatur: rtfm ;)

 Try http://mapserver.org/de/mapfile/join.htm

 Join streets_main with the dbf of streets_sub. Read the doc carefuly,
 it's a bit tricky.

 You may find a working example under
 http://mapmedia.de/downloads/viewcategory/5-vortraege (

 Workshop_umn...)

 Jörg

  

 On Wed, 26 Mar 2014 20:58:17 +0100, TDS wrote:

 Hello,


 is it possible to join two layers in GetFeatureInfo with same
 template and same shape file to output only one combined html file?

 Example:
 Streets_Main = streets.shp = template.html
 Streets_Sub = streets.shp = template.html

 OUTPUT:

 Current:
 Output for Streets_Mains
 Output for Streets_Sub

 Wish:

 Streets_Mains unique id Streets_sub (e.g. main street and sub street
 have both id=1 in shape file)


 -- 
 Bye, TDS
 
 mailto:t...@tds-net.de
 
 1+1=10
 You have a 

Re: [mapserver-users] Combine GetFeatureInfo for layers with same data source

2014-03-27 Thread Jörg Thomsen
hello again,

some PHP could help, call the script from your client instead of
mapserv-cgi:
 ELSEIF ($_GET['REQUEST'] == GetFeatureInfo or $_GET['request'] == 
 GetFeatureInfo) {
   IF ($_GET['QUERY_LAYERS'] == 'Abwasser,Verbandsgebiet' OR 
 $_GET['QUERY_LAYERS'] == 'Verbandsgebiet,Abwasser' ) {
   $url = str_replace('Abwasser,Verbandsgebiet', 
 'Abwasser', $url)
   $url = str_replace('Verbandsgebiet,Abwasser', 
 'Abwasser', $url)
   }
$answer = file_get_contents($url);
$answer = utf8_decode($answer);
ECHO $answer;
 }

(whole script attached)

Jörg

Am 27.03.2014 14:03, schrieb TDS:
 Hello,
 
 that's the problem. The user should select one or both of them. If both,
 all two layer names are send in the QUERY_LAYERS inquiry - like it should.
 
 Bye, TDS
 
 mailto:t...@tds-net.de
 
 1+1=10
 You have a question? - 42 or RTFM.
 Am 27.03.2014 13:58, schrieb Jörg Thomsen:
 Hi,

 okay, join is not what you need, sorry.
 Would it work for you if only one of the two layers is queryable?

 At the moment I have no idea...

 Jörg

 Am 27.03.2014 11:57, schrieb TDS:
 Hello,

 I've read this and I'm confused of how it can work...
 ONE-TO-ONE or ONE-TO-MANY or ... I want to have a solution *scream* If
 both layers are queried it should be one table, because the date is the
 same. Only the class item differs.


 Example Mapfile:
 LAYER
 STATUSon
 NAMETrinkwasserversorgung
 TYPEPOLYGON
 DATAwv_wilster_84.shp
 DUMPtrue
 TOLERANCE3
 TOLERANCEUNITSpixels
 CLASSITEMTW

 HEADERtemplates/header.html
 TEMPLATEtemplates/template.html
 FOOTERtemplates/footer.html

 JOIN
 NAME Wasser
 TABLE wv_wilster_84.dbf
 FROM Id
 TO Id
 TYPE ONE-TO-ONE
 END

CLASS
 NAME  Trinkwasser
 EXPRESSION  Trinkwasser
 STYLE
 COLOR   130  192  255
 END
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END

 CLASS
 NAME  Selbstversorger
 STYLE
 SYMBOL im_schraffur
 END   
 EXPRESSION  Selbstversorger
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END

 PROJECTION
 init=epsg:4326
 END

 METADATA
 wms_titleVerbandsgebiet
 wms_title metadata
 wms_include_itemsall
 wms_srsEPSG:4326 EPSG:54004 EPSG:41001
 EPSG:31467 EPSG:31468
 END
 END

 LAYER
 STATUSon
 NAMEAbwasserentsorgung
 TYPEPOLYGON
 DATAwv_wilster_84.shp
 DUMPtrue
 TOLERANCE3
 TOLERANCEUNITSpixels
 CLASSITEMAW

 HEADERtemplates/header.html
 TEMPLATEtemplates/template.html
 FOOTERtemplates/footer.html

 JOIN
 NAME Wasser
 TABLE wv_wilster_84.dbf
 FROM Id
 TO Id
 TYPE ONE-TO-ONE
 END

 CLASS
 NAME  Abwasser
 EXPRESSION  Abwasser
 STYLE
 COLOR   255 128 0
 END
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END

 CLASS
 NAME  Diverse Abwasseraufgaben
 STYLE
 SYMBOL schraffur_orange
 END
 EXPRESSION  Diverse Abwasseraufgaben
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END

 CLASS
 NAME  Kein Abwasser
 EXPRESSION  Kein Abwasser
 STYLE
 OUTLINECOLOR   120 120 120
 WIDTH 2
 ANTIALIAS TRUE
 END
 END

 PROJECTION
 init=epsg:4326
 END

 METADATA
 wms_titleAbwasser
 wms_title metadata
 wms_include_itemsall
 wms_srsEPSG:4326 EPSG:54004 EPSG:41001
 EPSG:31467 EPSG:31468
 END
 END



 Bye, TDS
 
 mailto:t...@tds-net.de
 
 1+1=10
 You have

[mapserver-users] join shp with csv

2014-03-13 Thread Jörg Thomsen
hi again,

I am still preparing my MapServer workshop for FOSGISS in Berlin next
week. Last topic is a join-example and I cannot get it to work :(

this is my join in the layer:
   JOIN
 NAME test
 CONNECTIONTYPE CSV
 TABLE ./shapes_join/join.csv
 FROM osm_id
 TO 1
 #TO 0
 #TO tab_1
 #TO osm_id
 TYPE ONE-TO-ONE
   END

the first lines of the csv:
 osm_id;name_join
 21484050;Karlshorst
 21484076;Schmöckwitz
 21484102;Adlershof
 27380127;Bohnsdorf
 28094136;Schöneberg

and here is the featureonfo-output:
GetFeatureInfo results:

Layer 'places'
  Feature 137:
osm_id = '560483810'
name = 'Neu-Hohenschönhausen'
type = 'suburb'
population = '''

no 'name_join' :(

tried upper und lower cases for column-names

funny: the only output in errorlog (level5) is:
 [Thu Mar 13 10:48:52 2014].209278 msSearchDiskTree(): Search returned no 
 results. Unable to open spatial index for 
 /home/user/data/mapserverIIWS/./shapes_join/places_join.qix. In most cases 
 you can safely ignore this message, otherwise check file names and 
 permissions.
 [Thu Mar 13 10:48:52 2014].209678 freeLayer(): freeing layer at 0x9451cd8.
'Search returned no results.' but there are results


$ ogrinfo join.csv lookup -summary
 INFO: Open of `join.csv'
   using driver `CSV' successful.
 FAILURE: Couldn't fetch requested layer lookup!

This is my only hint but unfortunatly I don't know what ogr wants to
tell me.

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


Re: [mapserver-users] join shp with csv

2014-03-13 Thread Jörg Thomsen
Hi,

Here's the whole stuff:
http://mapmedia.de/mmcloud/public.php?service=filest=183cade70207677cda0e32c146ff3a3c

 ogrinfo join.csv join -summary
this works.

Jörg


Am 13.03.2014 11:41, schrieb Rahkonen Jukka (Tike):
 Hi,
 
 Could you send the whole LAYER section? And if you can put a small shapefile 
 to download I can have a try.
 About ogrinfo, your command is searching for layer lookup from csv file 
 join.csc. It does not have such layer, it has exactly one layer and it is 
 join. So do
 ogrinfo join.csv join -summary
 
 This is not your fault, obviously the one who wrote the documentation 
 remembers all the GDAL commands with eyes shut but author did not remember 
 that documentation is meant for wider audience. I would have written the 
 command without layer name but used the generally working switch -al (all 
 layers) instead.
  
 ogrinfo -al -so lookup.csv
 
 -Jukka Rahkonen-
 
 
 Jörg Thomsen wrote:
 
 
  
 hi again,

 I am still preparing my MapServer workshop for FOSGISS in Berlin next week.
 Last topic is a join-example and I cannot get it to work :(

 this is my join in the layer:
   JOIN
 NAME test
 CONNECTIONTYPE CSV
 TABLE ./shapes_join/join.csv
 FROM osm_id
 TO 1
 #TO 0
 #TO tab_1
 #TO osm_id
 TYPE ONE-TO-ONE
   END

 the first lines of the csv:
 osm_id;name_join
 21484050;Karlshorst
 21484076;Schmöckwitz
 21484102;Adlershof
 27380127;Bohnsdorf
 28094136;Schöneberg

 and here is the featureonfo-output:
 GetFeatureInfo results:

 Layer 'places'
   Feature 137:
 osm_id = '560483810'
 name = 'Neu-Hohenschönhausen'
 type = 'suburb'
 population = '''

 no 'name_join' :(

 tried upper und lower cases for column-names

 funny: the only output in errorlog (level5) is:
 [Thu Mar 13 10:48:52 2014].209278 msSearchDiskTree(): Search returned no
 results. Unable to open spatial index for
 /home/user/data/mapserverIIWS/./shapes_join/places_join.qix. In most cases
 you can safely ignore this message, otherwise check file names and 
 permissions.
 [Thu Mar 13 10:48:52 2014].209678 freeLayer(): freeing layer at 0x9451cd8.
 'Search returned no results.' but there are results


 $ ogrinfo join.csv lookup -summary
  INFO: Open of `join.csv'
using driver `CSV' successful.
  FAILURE: Couldn't fetch requested layer lookup!

 This is my only hint but unfortunatly I don't know what ogr wants to tell me.

 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
 

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


Re: [mapserver-users] join shp with csv

2014-03-13 Thread Jörg Thomsen
Hello Jeff,

yes, this looks better.
 $ ogrinfo ./shapes_join/join.csv join -summary
 INFO: Open of `./shapes_join/join.csv'
   using driver `CSV' successful.
 
 Layer name: join
 Geometry: None
 Feature Count: 208
 Layer SRS WKT:
 (unknown)
 osm_id: String (0.0)
 name_join: String (0.0)

but the join in mapserver still doesn't work.

Jörg


Am 13.03.2014 13:39, schrieb Jeff McKenna:
 On 2014-03-13, 9:36 AM, Jeff McKenna wrote:
 On 2014-03-13, 7:07 AM, Jörg Thomsen wrote:


 $ ogrinfo join.csv lookup -summary
  INFO: Open of `join.csv'
using driver `CSV' successful.
  FAILURE: Couldn't fetch requested layer lookup!

 This is my only hint but unfortunatly I don't know what ogr wants to
 tell me.


 You seem to be following my examples very closely from
 http://www.mapserver.org/mapfile/join.html#example-3-join-from-shape-dataset-to-csv-file
 which is good, but be careful, lookup in my example is the OGR
 layername; in your case it will be different.  You should just try
 ogrinfo join.csv to get a list of available layers through OGR.  See
 some examples of that in action:
 http://mapserver.org/input/vector/ogr.html#how-to-use-ogrinfo

 
 Ah but I almost forgot the most important switch for layernames:
 ogrinfo join.csv -summary
 
 Good luck there!
 
 -jeff
 
 
 
 

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


Re: [mapserver-users] join shp with csv

2014-03-13 Thread Jörg Thomsen
Am 13.03.2014 14:39, schrieb Rahkonen Jukka (Tike):
 Hi,
 
 I have had no time to look at your files but I see that ogrinfo reports 
 osm_id as a string. Write .csvt file http://www.gdal.org/ogr/drv_csv.html for 
 converting it to integer, perhaps join requires same data types.

good idea, thanks.
But doesn't help.

I have updated the online files, perhaps you'll have some time within
the next few days.

Jörg

 
 -Jukka Rahkonen-
 
 Jörg Thomsen wrote:
 
 Hello Jeff,

 yes, this looks better.
 $ ogrinfo ./shapes_join/join.csv join -summary
 INFO: Open of `./shapes_join/join.csv'
   using driver `CSV' successful.

 Layer name: join
 Geometry: None
 Feature Count: 208
 Layer SRS WKT:
 (unknown)
 osm_id: String (0.0)
 name_join: String (0.0)

 but the join in mapserver still doesn't work.

 Jörg


 Am 13.03.2014 13:39, schrieb Jeff McKenna:
 On 2014-03-13, 9:36 AM, Jeff McKenna wrote:
 On 2014-03-13, 7:07 AM, Jörg Thomsen wrote:


 $ ogrinfo join.csv lookup -summary
  INFO: Open of `join.csv'
using driver `CSV' successful.
  FAILURE: Couldn't fetch requested layer lookup!

 This is my only hint but unfortunatly I don't know what ogr wants to
 tell me.


 You seem to be following my examples very closely from
 http://www.mapserver.org/mapfile/join.html#example-3-join-from-shape-
 dataset-to-csv-file which is good, but be careful, lookup in my
 example is the OGR layername; in your case it will be different.  You
 should just try ogrinfo join.csv to get a list of available layers
 through OGR.  See some examples of that in action:
 http://mapserver.org/input/vector/ogr.html#how-to-use-ogrinfo


 Ah but I almost forgot the most important switch for layernames:
 ogrinfo join.csv -summary

 Good luck there!

 -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
 

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


Re: [mapserver-users] join shp with csv

2014-03-13 Thread Jörg Thomsen
boah, your right, thanks!

so the join only works with html-templates / text/html output. with
text/plain I only see the attributes of the shapefile.
(And I tested with text/plain)

You saved my day, Jörg

Am 13.03.2014 16:59, schrieb Brent Fraser:
 Jörg,
 
 According to the JOIN doc (mapserver.org/mapfile/join.html) on CSV, your
 template should use
 
 name_join: [test_2]/br
 
 where [test_2] is a concatenation of your JOIN NAME (test) and the
 column id (2) in the CSV file.
 
 Best Regards,
 Brent Fraser
 
 On 3/13/2014 8:09 AM, Jörg Thomsen wrote:
 Am 13.03.2014 14:39, schrieb Rahkonen Jukka (Tike):
 Hi,

 I have had no time to look at your files but I see that ogrinfo
 reports osm_id as a string. Write .csvt file
 http://www.gdal.org/ogr/drv_csv.html for converting it to integer,
 perhaps join requires same data types.
 good idea, thanks.
 But doesn't help.

 I have updated the online files, perhaps you'll have some time within
 the next few days.

 Jörg

 -Jukka Rahkonen-

 Jörg Thomsen wrote:

 Hello Jeff,

 yes, this looks better.
 $ ogrinfo ./shapes_join/join.csv join -summary
 INFO: Open of `./shapes_join/join.csv'
using driver `CSV' successful.

 Layer name: join
 Geometry: None
 Feature Count: 208
 Layer SRS WKT:
 (unknown)
 osm_id: String (0.0)
 name_join: String (0.0)
 but the join in mapserver still doesn't work.

 Jörg


 Am 13.03.2014 13:39, schrieb Jeff McKenna:
 On 2014-03-13, 9:36 AM, Jeff McKenna wrote:
 On 2014-03-13, 7:07 AM, Jörg Thomsen wrote:

 $ ogrinfo join.csv lookup -summary
   INFO: Open of `join.csv'
 using driver `CSV' successful.
   FAILURE: Couldn't fetch requested layer lookup!

 This is my only hint but unfortunatly I don't know what ogr wants to
 tell me.

 You seem to be following my examples very closely from
 http://www.mapserver.org/mapfile/join.html#example-3-join-from-shape-
 dataset-to-csv-file which is good, but be careful, lookup in my
 example is the OGR layername; in your case it will be different.  You
 should just try ogrinfo join.csv to get a list of available layers
 through OGR.  See some examples of that in action:
 http://mapserver.org/input/vector/ogr.html#how-to-use-ogrinfo

 Ah but I almost forgot the most important switch for layernames:
 ogrinfo join.csv -summary

 Good luck there!

 -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

 ___
 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] Complex Multi Label/Symbol Symbology

2014-03-11 Thread Jörg Thomsen
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


Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Jörg Thomsen
Hi,

please have a look at your path:
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg


Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
 Hello!!
 
 I'am having my mapfile place in /home/mapdata folder whereas I also keep
 a couple of other mapfiles too. 
 I'm trying to load it in the following form on the
 browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map
 
 and all I get is a blank page. No errors no nothing. 
 
 Then I created an html template in order to click it from there by
 creating a simple link (and not a from) in the following hyperlink:  a
 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
 This link /a
 
 And I get the following error: msLoadMap(): Unable to access file.  
 
 Last time this happened I was invoking Mapserver through a form but this
 time it's just a simple link. 
 
 Why is it happening ? 
 
 The weird thing is that all the other mapfiles that are seem to be
 working are are having the same permission settings with the
 current: -rw-r--r-- 
 
 Thanks a lot! 
 
 
 ___
 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 can't read mapfile

2014-02-10 Thread Jörg Thomsen
once again: I have never seen a blank screen when calling mapserver.
I bet there is a withe image try a right-click in your browser-window.

What exactly did you do? Only copying shp-files into the data-folder?
changing the map-file that worked before? creating a new mapfile?

Jörg



Am 10.02.2014 16:49, schrieb Stefanos Anastasiou:
 Sorry fellows...  indeed there is a typo but in this e-mail... I checked
 my files again and they seem correct... 
 
 If I type on my browser:
  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map 
  all I get is a blank page. The data folder has full permissions:
  drwxrwxrwx 
 
 All other shapefiles are working correctly but yesterday I just added
 two more in the folder and all I get is a blank screen... (?)
 
 
 
 Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen
 j...@mapmedia.de έγραψε:
 Hi,
 
 please have a look at your path:
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
 and
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map
 
 I guess the first one is correct and that's why you get the error-msg
 with the 2nd one. So, what exactly is the result of the request
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map?
 it sounds like a white image, not nothing. In this case you should check
 the bboxes and srs first.
 
 regards, Jörg
 
 
 Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
 Hello!!

 I'am having my mapfile place in /home/mapdata folder whereas I also keep
 a couple of other mapfiles too.
 I'm trying to load it in the following form on the
 browser:
 http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.mapmode=map

 and all I get is a blank page. No errors no nothing.

 Then I created an html template in order to click it from there by
 creating a simple link (and not a from) in the following hyperlink:  a

 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
 This link /a

 And I get the following error: msLoadMap(): Unable to access file. 

 Last time this happened I was invoking Mapserver through a form but this
 time it's just a simple link.

 Why is it happening ?

 The weird thing is that all the other mapfiles that are seem to be
 working are are having the same permission settings with the
 current: -rw-r--r--

 Thanks a lot!
 


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

 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org mailto: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 oder class nicht drucken

2013-12-16 Thread Jörg Thomsen
Hi,

I'm not sure if this is the german mailimg-list?

 gibt es eine Möglichkeit einen Layer so einzurichten, dass dieser
 nicht gedruckt werden kann?
- is it possible to configure a layer as not printable?

No. perhaps you can configure it via your client and using a proxy which
does not allow a direct access to the wms. But if you can load the image
into your Browser or any other client, you can print it.

Jörg

Am 16.12.2013 11:44, schrieb mark kellermann:
 Hallo,
 
 gibt es eine Möglichkeit einen Layer so einzurichten, dass dieser nicht
 gedruckt werden kann?
 
 mfG
 
 Mark Kellermann
 
 
 
 ___
 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] [Cluster:FeatureCount] is string?

2013-09-13 Thread Jörg Thomsen
Hi,

I wonder if the [Cluster:FeatureCount] value is a string?
I have a mapfile with three classes like

 EXPRESSION 1
 EXPRESSION (([Cluster:FeatureCount]  1) and ([Cluster:FeatureCount]  
 51)
 EXPRESSION ([Cluster:FeatureCount]  50 )

As result I get mixed symbols, each feature that has a
cluster:featurecount beginning with 2,3,4,or 5 is symbololized with the
styel of the 2nd class (even 101 or 455) and each feature that has a
cluster:featurecount beginning with 6,7,8,or 9 is symbololized with the
styel of the 3. class (even 7 or 9).
An Expression like
 EXPRESSION ([Cluster:FeatureCount]  50 )
(no quotes) does not work.

For a better understanding, here is the resulting image:
http://mapmedia.de/tmp/mapserv.png)

Furthermore it is not posible to calculate with it, sth. like
 SIZE [Cluster:FeatureCount] / 10
does not work.

Thats why I think mapserver treats featurecount as string.
Or am I doing it wrong?

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


Re: [mapserver-users] MapServer .map file security question

2013-02-19 Thread Jörg Thomsen
Hello Mark,

have a look at
http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url

If using 'Apache SetEnvIf' you could redirect to different
cgi-directories and there use allow-from / deny-from rules.

Regards, Jörg

Am 19.02.2013 16:45, schrieb Mark Volz:
 Hi,
 
 I have a server that I would like to run both internal and external 
 applications on it.  I know I can use apache to limit who can access internal 
 web pages.  However, is there any mechanism to stop an external user from 
 drawing an internal actual .map file?  For example, what would stop someone 
 from changing the requested map from: 
 http://myserver/cgi-bin/mapserv.exe?map=External.map.  To:  
 http://myserver/cgi-bin/mapserv.exe?map=Internal.map.
 
 I could see this as an issue if I want to enable wms.
 
 Thanks
  
 Mark Volz
 GIS Specialist
 
 
 ___
 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] msLoadMap(): Unable to access file.

2012-11-29 Thread Jörg Thomsen
Hi,

mapserver tells you what's wrong:
 msLoadMap(): Unable to access file.
 (/home/sangitas/softwares/ex1/world_mapfile.map)

as your online-resource contains 'mapserv.exe' i think you are working
on windows. The path to your mapfile looks like unix-path. On windows it
should look like

c:\path to your mapfile\yourmapfile.map

regards, Jörg


 while opening the following link from the browser
  
 http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map
  
 where as http://10.210.43.209/cgi-bin/mapserv
 http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map
  link
 works as expected.
  
 I made the changes in the map file as followes
  
  *'wms_onlineresource' 
 'http://localhost/cgi-bin/mapserv.exe?map=/home/sangitas/softwares/ex1/world_mapfile.map;'*
 
  
 
 LAYER
 
 NAME 'world_raster'
 
 TYPE RASTER
 
 *DATA '/home/sangitas/softwares/ex1/img/world_raster.tif'*
 
 ** 
 
 LAYER
 
 NAME 'world_adm0'
 
 TYPE POLYGON
 
 *DATA '/home/sangitas/softwares/ex1/data/world_adm0.shp'*
 
  
  
 Also added following in httpd.conf
  
 Directory /home/sangitas/softwares/ex1
 Options Indexes MultiViews FollowSymLinks
 AllowOverride all
 Allow from all
 Order allow,deny
 /Directory
 Directory /home/sangitas/softwares/ex1/img
  AllowOverride all
 Allow from all
 /Directory
 Directory /home/sangitas/softwares/ex1/data
 AllowOverride all
 Allow from all
 /Directory
  
 Request you to guide me to run this so that I can move further  try the
 same application with openlayers.
 
  
 
  
 
 *Thanks  Regards,*
 
 *Sangita *
 
 
 ~~Disclaimer~~~
 Information contained and transmitted by this e-mail is confidential and
 proprietary to iGATE and its affiliates and is intended for use only by
 the recipient. If you are not the intended recipient, you are hereby
 notified that any dissemination, distribution, copying or use of this
 e-mail is strictly prohibited and you are requested to delete this
 e-mail immediately and notify the originator or mailad...@igate.com
 mailto:mailad...@igate.com. iGATE does not enter into any agreement
 with any party by e-mail. Any views expressed by an individual do not
 necessarily reflect the view of iGATE. iGATE is not responsible for the
 consequences of any actions taken on the basis of information provided,
 through this email. The contents of an attachment to this e-mail may
 contain software viruses, which could damage your own computer system.
 While iGATE has taken every reasonable precaution to minimise this risk,
 we cannot accept liability for any damage which you sustain as a result
 of software viruses. You should carry out your own virus checks before
 opening an attachment. To know more about iGATE please visit
 www.igate.com http://www.igate.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] Positioning of point symbols

2012-06-06 Thread Jörg Thomsen
Hi Jason,

perhaps the offset parameter can help? Move the point half of the height
of the symbol
http://mapserver.org/mapfile/style.html?highlight=offset

Jörg

Am 06.06.2012 14:37, schrieb Jason Jackson:
 I am using mapserver 5.6.7 and it appears that when using a pixmap
 symbol to represent a point geometry on the map, the image is placed
 with its center on the point. Is there a way to adjust the image so
 its bottom center is placed on the point instead?
 
 Thank you,
 Jason
 ___
 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] Extract Layer Names from MapFile

2012-02-15 Thread Jörg Thomsen
Hi,

what about parsing the capabilities-xml?

Jörg

Am 15.02.2012 17:05, schrieb Dash:
 Is there a way to obtain a list of layer names from a mapfile.  I need to
 compare a user defined list of layers with available layers in a mapfile.  I
 would like to makes this dynamic but I don't see an easy way of returning a
 list of layer names from the mapfile.  Any input would be greatly
 appreciated.
 
 Thanks.
 
 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/Extract-Layer-Names-from-MapFile-tp4472664p4472664.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


-- 
~~~
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


Re: [mapserver-users] WFS with several SRS?

2011-11-08 Thread Jörg Thomsen
hi,

1st: there is no definition of the srs of the source data.
2nd: have you tried putting the line
 WFS_SRSEPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284 EPSG:32632
 EPSG:25832 EPSG:21781
into your metadata-layer-section?

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


Re: [mapserver-users] Re: WFS with several SRS?

2011-11-08 Thread Jörg Thomsen
hello Andreas,

Am 08.11.2011 14:08, schrieb sulu:
 ad 1st:
 something like 
 PROJECTION
   init=epsg:31254
 END #end projection
 ??

yes

 I intentionally left it out because my impression is that WFS does not like
 any SRS-Definitions on the layer level.

mapserver has to know the source srs to transform the data into another
srs i think.

 What i'm really searching is a mapfile which works with different SRS.

this one works with both srs, 4326 and 3035:
 MAP
NAME Bundelaender
EXTENT 3957944 2678000 4749055 3568000
SYMBOLSET symbols/test.sym
FONTSET fonts/fonts.txt
IMAGECOLOR 255 255 255
 
LEGEND
   
END
WEB
   IMAGEPATH temp
   METADATA
  ows_encoding UTF-8
  wms_title Bundesländer Verwaltungsgrenzen
  wfs_title Bundeslaänder Verwaltungsgrenzen
  ows_abstract WMS der Bundesländer der Bundesrepublik
  wms_srs EPSG:4326 EPSG:3035
  ows_onlineresource http://.;
   END
END
PROJECTION
   init=epsg:3035
END
 
 # BUNDESLAENDER
LAYER
   NAME Bundeslaender_1000
   STATUS ON
   TYPE POLYGON
   METADATA
  ows_title Bundesländer Verwaltungsgrenzen
  ows_extent 5.8659987449646 47.1703590393066 15.0415315628052 
 55.0473768615723
  ows_featureid id
  ows_srs EPSG:4326 EPSG:3035
  gml_include_items all
   END
   DATA the_geom from ... using srid=4326
   CONNECTIONTYPE POSTGIS
   CONNECTION user=xx password=xx host=xx port=5432 dbname=bkg_geodaten
   MINSCALEDENOM 25
   OPACITY 100
   DUMP true
   LABELCACHE on
   SIZEUNITS pixels
   LABELITEM gen
   PROJECTION
  init=epsg:4326
   END
   CLASS
  STYLE 
 OUTLINECOLOR 100 100 100
 WIDTH 1
  END
  NAME Bundesländer
  LABEL
 FONT vera
 COLOR 50 50 50
 OUTLINECOLOR 240 240 240
 TYPE truetype
 SIZE 9
 ANTIALIAS true
 POSITION cc
 MINDISTANCE 500
  END
   END
END # Layer
 END # Map File

Grüße in die Berge,
Jörg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: VS: [mapserver-users] WFS with Filter

2011-11-02 Thread Jörg Thomsen
Hi,

and thanks to Lars!
(kriegst 'n Kaffee und 'n Kuchen, wenn Du mal wieder hier bist)

it was a configuration-problem. we changed the srs of the geodata and I
set a comment before the extend in the mapfile. So the SQL from
MapServer to the DB had a bbox -1-1-1-

I was sure, that the extend is not mandatory and all other requests
(wms, WFS without filter) worked well, so I wonder if this behaviour is
wanted?

Jörg

Am 31.10.2011 17:39, schrieb Rahkonen Jukka:
 Hi,
 
 Seems to work with my Mapserver 6.0.1 with PostGIS data. I do not have 
 shapefile layers to compare with.
 
 http://188.64.1.61/cgi-bin/osm-mapserver_i?SERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=POI_pub_restaurantSRSNAME=EPSG:4326maxfeatures=10FILTER=%3Cogc%3AFilter%3E%3Cogc%3APropertyIsLike+wildCard%3D%27%2A%27+singleChar%3D%27.%27+escape%3D%27%21%27%3E%3Cogc%3APropertyName%3Ename%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3E%2ABossa%2A%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsLike%3E%3C%2Fogc%3AFilter%3E
 
 SRSNAME part does not work but is is not supported by WFS 1.0.0 so do not 
 bother about that.
 
 -Jukka Rahkonen-
 
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Jörg 
 Thomsen [j...@mapmedia.de] puolesta
 Lähetetty: 31. lokakuuta 2011 18:14
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] WFS with Filter
 
 Hello,
 
 I have found some older list-entries concerning this topic, but no final
 solution.
 I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice
 XML I can use e.g. in QGIS, so everything seems to be fine. But when I
 use a filter in my request like
 http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.mapSERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=Bundeslaender_1000SRSNAME=EPSG:4326;
 FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E
 
 I get the following answer:
 wfs:FeatureCollection .
gml:boundedBy
   gml:nullmissing/gml:null
/gml:boundedBy
 /wfs:FeatureCollection
 
 Using the same PG-DB with Mapserver 5.6 the request works.
 
 In former threads I found the questions if it does work with geodata
 based on shape-files:
 1. it dos not
 2. I have to use PG
 
 Anyone any idea?
 
 Jörg
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
~~~
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] WFS with Filter

2011-10-31 Thread Jörg Thomsen
Hello,

I have found some older list-entries concerning this topic, but no final
solution.
I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice
XML I can use e.g. in QGIS, so everything seems to be fine. But when I
use a filter in my request like
 http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.mapSERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=Bundeslaender_1000SRSNAME=EPSG:4326;
 FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E

I get the following answer:
 wfs:FeatureCollection .
gml:boundedBy
   gml:nullmissing/gml:null
/gml:boundedBy
 /wfs:FeatureCollection

Using the same PG-DB with Mapserver 5.6 the request works.

In former threads I found the questions if it does work with geodata
based on shape-files:
1. it dos not
2. I have to use PG

Anyone any idea?

Jörg


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


Re: [mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)

2011-10-30 Thread Jörg Thomsen
Hi,

perhaps it is the 'status OFF?'

Jörg

Am 30.10.2011 16:16, schrieb Chrishelring:
 Hi,
 
 below is a snipped part of the map file. I´ve removed the layers that is
 working but kept the one which is not (the orto2011 layer). If you need the
 complete map file I´ll send it.
 
 The layer is a ECW raster file (complete mosaiced ECW of the municipality
 i´m working in). When I try to use the WMS service in ArcGIS og Mapinfo the
 layer is just showing white / nothing.
 
 The map-file is auto-generated in our webgis solution.
 
  
 map
 name ''
 status ON
 size 830 475
  
 projection
  init=epsg:25832
 end
 shapepath
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\data\shp'
 units meters
 maxsize 1
 extent 713000 6173000 72 618
 fontset
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/fonts/fontset.txt'
 symbolset
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/symbols/symbols3_5.txt'
 imagecolor 255 255 255
 datapattern '.*'
 templatepattern '.*'
 imagetype png24
  
 outputformat
   name 'jpeg24'
   mimetype image/jpeg
   driver agg/JPEG
   imagemode RGB
   extension jpeg
   formatoption QUALITY=80 INTERLACE=ON
 end
  
 outputformat
   name 'jpeg24_gd'
   mimetype image/jpg
   driver GD/JPEG
   imagemode RGB
   extension jpg
   formatoption QUALITY=90
 end
  
 outputformat
   name 'png24'
   mimetype image/png
   driver AGG/PNG
   imagemode RGB
   extension png
 end
  
 outputformat
   name 'gif'
   mimetype image/gif
   driver GD/GIF
   imagemode PC256
   extension gif
   transparent ON
 end
  
 outputformat
   name 'imagemap'
   mimetype text/html
   driver imagemap
 end
  
 web
   template
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\tmp/mapserver.html'
   minscale 100
   imagepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\tmp\'
   log
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\log\mapserver.log'
   empty '[cbinfo.emptypage]'
  
   metadata
  wms_title  Rødovre Kommunes WMS service - Test 
wms_onlineresource
 http://test-webgis:9180/wms?servicename=rk-wms; 
wms_srs epsg:32632 epsg:23032 epsg:25832 
wms_feature_info_mime_type text/xml
wms_server_version 1.1.1
wms_extent 713000 6173000 72 618
   end
 end
  
 querymap
   status ON
   style SELECTED
 end
  
 legend
   status OFF
   keysize 15 10
   position ul
   imagecolor 255 255 255
  
   label
 type TRUETYPE
 antialias true
 font arial
 size 8
 color 0 0 0
   end
 end
  
 reference
   status OFF
   size 140 96
 
  #extent708960.416667 6167500.00 720189.58
 6175200.00/extent
   extent 713000 6173000 72 618
   color -1 -1 -1
   outlinecolor 210 136 0
   image
 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot/images/custom/test/oversigt1.gif'
 end
  
 scalebar
   status OFF
   imagecolor 255 255 255
  
   label
 type BITMAP
 outlinecolor 255 255 255
 size medium
 color 0 0 0
   end
   size 200 5
   color 255 255 255
   backgroundcolor 0 0 0
   outlinecolor 0 0 0
   intervals 5
   position ll
   transparent false
   units meters
 end
 
  #Imported from
 E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\config\themes\custom\theme-orto-2011-gwc.xml
  
 layer
   name 'orto2011'
   status off
   type RASTER
  
   class
 name 'Luftfoto 2011'
   end
   data 'E:\spatialsuite\data\ortofoto\orto2011\Kommune\Rodovre_2011.ecw'
   transparency 100
  
   metadata
  wms_extent 713000 6173000 72 618
 wms_title orto2011
 wms_group_title orto2011
 wms_srs EPSG:25832
   end
   group 'theme-orto-2011-gwc'
  
   projection
  init=EPSG:25832
   end
 end
 end
 
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6945688.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


-- 
~~~
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


Re: [mapserver-users] Use of wms_style_default_legendurl_href parameter

2011-10-28 Thread Jörg Thomsen
Hello Yves,

perhaps because wms_style requires
wms_style_style’s_name_legendurl_width and you have mistyped this?
wms_style_defaultDEFAULT_width 264

And what says the capabilities-xml about the legend-url? Perhaps your
client ignores it uses the wrong url.

Jörg

Am 28.10.2011 14:17, schrieb Yves Jacolin:
 Hello,
 
 I am trying to use wms_style_default_legendurl_href parameter (with his 
 little 
 friends wms_style, wms_style_default_legendurl_width and height).
 
 The GetLegendGraphic request is not working (I get wrong legend), log doesn't 
 show anything event if I set up DEBUG 5 in mapfile.
 
 The layer used is a vector layer with one class. The legend showed is the 
 legend of the class, not the one from the url of 
 wms_style_default_legendurl_href.
 
 Some parts of the MapFile:
 /**
   LEGEND
   STATUS ON
   KEYSIZE 18 12
   LABEL
   FONT Vera
   TYPE truetype
   SIZE 8
   COLOR 0 0 89
   END
   END
 
   LAYER
 NAME departement
 TYPE POLYGON
 STATUS ON
 DATA geoFla
 TEMPLATE foo
 DUMP true
 DEBUG 5
 CLASS
   NAME Départements
   STYLE
 WIDTH 1
 OUTLINECOLOR  0 0 0
 COLOR   255 255 192
   END
 END
 METADATA
   wms_titleDépartement   ##required
   wms_srs EPSG:27572
wms_name Departement
wms_server_version 1.1.1 #obligatoire
wms_style default
wms_style_default_legendurl_height 37
wms_style_defaultDEFAULT_width 264
wms_style_default_legendurl_format image/png
wms_style_default_legendurl_href 
 http://yjacolin.meije/ifremer/legende_chla.png;
 END
   END
 ***/
 
 Any idea?
 
 Y.


-- 
~~~
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] getFeatureInfo html with special characters in datasource

2011-09-09 Thread Jörg Thomsen

hi,

I'd like to get a html-feature-info like

Niedersachsen
167

I get both, 'Niedersachsen' and '167' from the same table-column of the 
database and I need the line break between them. When I use 
'Niedersachsenbr167' in the Atrributes, mapserver changes the brackets 
into the html-entities and i get

'Niedersachsenlt;brgt;167'
which is shown as 'Niedersachsenbr167' in the browser-window.

Are there any special-characters I can use in the database or is there 
an other solution?


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


Re: [mapserver-users] wms_style_xxx_legendurl_href

2011-03-16 Thread Jörg Thomsen

Hi,

o.k., it was not the best moment to ask my question, because at the same 
time the mapserver beta 6 was announced ;)


so here a 'repost', it would be nice if anyone could give me a hint:


Hi,

I'm using the wms_style-parameters in the layer metadata section to tell
the client to use a special legend-url:
'wms_style' 'Farbwerte'
'wms_style_Farbwerte_legendurl_height' '218'
'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png'
'wms_style_Farbwerte_legendurl_format' 'png'
'wms_style_Farbwerte_legendurl_width' '300'

This works fine with only one style. But what do I have to do, if I have
defined different styles / classgroups? one should use a pre-defined image,

 the other ones should be generated by mapserver.

When defining
'wms_style' 'Farbwerte'
the capabilities only shows this style, even if there are more styles
(classgroups) defined.

Any idea?

Jörg

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


[mapserver-users] wms_style_xxx_legendurl_href

2011-03-09 Thread Jörg Thomsen

Hi,

I'm using the wms_style-parameters in the layer metadata section to tell 
the client to use a special legend-url:

'wms_style' 'Farbwerte'
'wms_style_Farbwerte_legendurl_height' '218'
'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png'
'wms_style_Farbwerte_legendurl_format' 'png'
'wms_style_Farbwerte_legendurl_width' '300'

This works fine with only one style. But what do I have to do, if I have 
defined different styles / classgroups?

When defining
'wms_style' 'Farbwerte'
the capabilities only shows this style, even if there are more styles 
(classgroups) defined.


Any idea?

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


Re: [mapserver-users] How to achieve GetFeature request over a web proxy script PHP

2010-06-22 Thread Jörg Thomsen

Hello David,

David Alda Fernandez de Lezea wrote:

Hi list,

I'm trying to get data from a GetFeature request sent to MapServer,
but when I do it through a php script, I get the error:

!-- MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ
SUPPORTS=AGG 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 SUPPORTS=RGBA_PNG
INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE --  BODY BGCOLOR=#FF  mapserv(): Web
application error. Traditional BROWSE mode requires a TEMPLATE in the
WEB section, but none was provided.

But if I do it directly from JavaScript, without using the script, I
get the data back without any problems??

Here is my proxy-php-script:

?php  $strURL = $_REQUEST[url]; $strMethod = $_REQUEST[method];
$strData = $_REQUEST[data]; /*echo Data --  .$strData; echo URL
--  .$strURL; echo Method --  .$strMethod;*/

$ch = curl_init($strURL); curl_setopt($ch, CURLOPT_URL, $strURL); if
($strMethod == POST){ curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData); } $data =
curl_exec($ch); curl_close($ch); ?

It seems that if I use the script, MapServer thinks that I'm
requesting the data through a web browser, but if I do it directly
from JavaScript, no. I'm confused.


no, browse means an old non-ogc-method of requesting maps from 
mapserver, nothing to do with internet browser 
(http://www.mapserver.org/mapfile/template.html). Usually you get this 
message if any WMS-request-parameter is missing, so mapsverver cannot 
identify your request as a wms-request. Might be the 'SERVICE=WMS'.



Does anybody know how to achieve this task??


let php echo the whole request, you will see what is missing.

Jörg



Thanks one more time.



Un saludo,

··

 David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila /
Dpto. de Territorio y Biodiversidad

IKT Granja Modelo s/n · 01192 · Arkaute (Araba)

··



Tlfnos.: 945-00-32-95 Fax: 945-00.32.90

··



email: da...@ikt.esweb: www.ikt.es

··



___

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] changing projection of a polygon

2010-06-17 Thread Jörg Thomsen

hello,

ahmet temiz wrote:

hello

I there any way to change projection of a polygon from  UTM to geographic .

something like from EPSG:32636 to EPSG:4326.


yes.

if you want to save the file with the new projection you might use
http://www.gdal.org/ogr2ogr.html

If you are asking for a reprojection on-the-fly, mapserver can do it:


LAYER
  ...
  PROJECTION
   init=epsg:32636 # projection of your src-data
  END
  METADATA
wms_srs EPSG:4326 EPSG:32636 # request am map in any of 
these proejctions
...
  END
END



Jörg




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



--
~~~
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


Re: [mapserver-users] how pass parameters to map file

2010-06-04 Thread Jörg Thomsen

salas wrote:

Hi, in this moment i have working with mapserver and geomoose framework
, and I need make a filter dynamic but I don´t know how pass the
parameters to map file.
how implement this ?


http://mapserver.org/mapfile/variable_sub.html

Jörg


best regards , Salas



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



--
~~~
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


Re: [mapserver-users] Styling a mapfile with SLD?

2010-06-01 Thread Jörg Thomsen

Hi,

and thanks for the 2nd try with a readable mail ;)

paalkr wrote:


Hi all!

I'm trying to sett up a MapService that uses OGC SLD to override the regular
MapServer rendering rules (classes and styles). For some reason MapServer
does not seem to pick up the SLD, because the resulting map uses the default
drawing rules defined in the map-file rather then the SLD.


1.
be sure that your umn can access the sld via http, how do you call it 
within the url?


2.
the problem is, that umn does not provide any error-message if a sld 
does not work, umn has no access to it or the sld has errors. In this 
cases the map is rendered with the style-parameters of the mapfile.


If I try to load
http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml
in Opera I get one syntax-error in line 41, in StyledLayerDescriptor 
the '/' is missing. And having a dedicated look, I find a lot of tags 
which should be closing-tags but don't have a backslash...



And BTW, is it possible to assign a SLD to a layer internally in a map-file,

no

or do I need to provide the SLD as a parameter in the WMS GetMap request?

yes

Regards, Jörg



The layer in the mapfile looks like this:

   LAYER
 NAME PolbndA
 TYPE POLYGON
#TYPE LINE
 STATUS OFF
DEBUG 5
 MAXSCALEDENOM 190
   CONNECTIONTYPE postgis
   CONNECTION host=xx port=5432 dbname=xx password=xx user=xx
   DATA shape from euroerm.polbnda USING UNIQUE objectid USING
SRID=4326
   PROCESSING CLOSE_CONNECTION=DEFER
 METADATA
   wms_title Administrativie area
   wms_extent-15 28 47 82
   #wms_sld_url http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml;
   #wms_sld_body AUTO
 END
 PROJECTION
   init=epsg:4326
 END

 #LABELITEM f_code
CLASSITEM f_code

 CLASS
   NAME F_CODE
   STYLE
 OUTLINECOLOR 255 100 0
 SIZE 2
   END
   LABEL
 COLOR 0 0 0
 FONT verdana
 TYPE TRUETYPE
 SIZE 10
 PARTIALS false
 POSITION lc
   END
 END
   END

The corresponding SLD document that I try to apply:

?xml version=1.0 encoding=utf-8?
StyledLayerDescriptor version=1.1.0
  schemaLocation=http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd;
  xmlns=http://www.opengis.net/sld;
  xmlns:ogc=http://www.opengis.net/ogc;
  xmlns:se=http://www.opengis.net/se;
  xmlns:xlink=http://www.w3.org/1999/xlink;
  xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:sld=http://www.opengis.net/sld;
   !--Area features.--
   NamedLayer
 NamePolbndAName
 UserStyle
   Nameerm:Style1Name
   TitleDefault StylerTitle
   FeatureTypeStyle
 !--FeatureTypeNameWFS_ERM:Fcode_FA001_AFeatureTypeName--
 NamePolbndAName
 TitletitleTitle
 AbstractabstractAbstract
 !--SemanticTypeIdentifiergeneric:allSemanticTypeIdentifier--
 Rule
   TitleAdministrative AreaTitle
   NameAdministrative AreaName
   ogc:Filter
 ogc:PropertyIsEqualTo
   ogc:PropertyNamef_code/ogc:PropertyName
   ogc:LiteralFA001/ogc:Literal
 /ogc:PropertyIsEqualTo
   /ogc:Filter
   PolygonSymbolizer
 Fill
   SvgParameter name=fill#E6SvgParameter
   SvgParameter name=fill-opacity1SvgParameter
 Fill
   PolygonSymbolizer
 Rule
   FeatureTypeStyle
 UserStyle
   NamedLayer
StyledLayerDescriptor

-

Regards,
Pål Kristensen



--
~~~
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


Re: [mapserver-users] Do MINSCALEDENOM and MAXSCALEDENOM effect the Scale for MINSIZE and MAXSIZE

2010-04-29 Thread Jörg Thomsen

hello,

Lime, Steve D (DNR) wrote:

Hi Astrid: Nope they don't. MINSCALEDENOM and MAXSCALEDENOM only control layer 
visibility.


Just a mark: that's not all, it also controls the scale where the 
getfeatureinfo returns a result. It is new and logical, but I spent some 
hours last week with searching for this after updating an old installation.


Jörg


SYMBOLSCALE and the computed SCALE are combined to form
a scale factor that is applied to a symbol's SIZE. Once that's done, the 
MINSIZE/MAXSIZE values are applied to make sure the final computation is in 
range.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Astrid Emde 
[astrid.e...@wheregroup.com]
Sent: Monday, April 26, 2010 10:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Do MINSCALEDENOM and MAXSCALEDENOM effect the Scale 
for MINSIZE and MAXSIZE

Hello list,

in my mapfiles I often use

SYMBOLSCALEDENOM in combination with

SIZE
MINSIZE
MAXSIZE

For some layer the features are only visible between MINSCALEDENOM and
MAXSCALEDENOM.

Does MapServer takes regard for MINSCALEDENOM and MAXSCALEDENOM when the
size for the objects are calculated?

--

Best regards

Astrid Emde



___
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



--
~~~
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


Re: [mapserver-users] Dynamically generated Raster images in mapfile

2010-04-08 Thread Jörg Thomsen

Hello Heiko,

Heiko Schröter wrote:

i need to create Raster images on the fly and place them on a map generated 
with Mapserver.
The time needed for generating these images is not crucial.
An external script is triggered to generate these images.

1) Is it possible to define in a mapfile a data/image source coming from a 
script ?


I don't think, that it would work with
DATA 'anyscript'
because this is reading the source, not executing it.

But a WMS is doing what you are asking for:
 create Raster images on the fly
so perhaps you could use your script as WMS and call it with
CONNECTIONTYPE WMS
CONNECTION http://.../yourscript;

you could add the parameters your script needs directly to the 
connection-string.

CONNECTION http://.../yourscript?param1=gtfgt2=...;

Regards, Jörg





or
2) Is it possible to rediret the output of the script as input to mapserver ?

Stepping through the docs the only solution i can think of in the moment is to 
generate a temp.img (and temp.tlw)and pass that filename as variable to the 
DATA tag inside the mapfile.
Any pointer to some more infos is highly appreciated.

Preprocessing is not a solution since we have dozends of options for generating 
the images.

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



--
~~~
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] keyimage / getlegendgraphic

2010-03-22 Thread Jörg Thomsen

huhu,

does really nobody have an idea how to solve this? :(


since an update from mapserver 4.x to 5.6 we have a problem with the
keyimage of rasterlayers. The keyimage is unusually large, but with
the old version it worked.

the original imagine is 451*1949 px the keysize in the mapfile is
given with

KEYSIZE 450 1950


The image which is now delivered has a size of 472*1960px, most of
this picture is white canvas, the original graphic is very small and
placed at the lower left corner.

Any suggestions?


I found an older post meanwhile, so I am not the only one having this 
problem:

http://lists.osgeo.org/pipermail/mapserver-users/2009-December/063947.html

Regards, Jörg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] keyimage / getlegendgraphic

2010-03-18 Thread Jörg Thomsen

hello,

since an update from mapserver 4.x to 5.6 we have a problem with the 
keyimage of rasterlayers. The keyimage is unusually large, but with the 
old version it worked.


the original imagine is 451*1949 px
the keysize in the mapfile is given with

KEYSIZE 450 1950


The image wich is now delivered has a size of 472*1960px, most of this 
picture is white canvas, the original graphic is very small and placed 
at the lower left corner.


Ad suggestions?

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