Andrea Peri | 17 Jul 21:27 2014
Picon

The command separator in STYLEITEM blocks

Hi,

I try to replicate some example from
this link:
http://www.gdal.org/ogr_feature_style.html

But the separator seem don 't work

I try to reproduce the sample from paragraph 2.1 of the
feature-style-specs on mapserver.

The lake sample:

BRUSH(fc:#0000FF);PEN(c:#000000)

But on mapserver it is reproduce exactly as this other sample:
BRUSH(fc:#0000FF)

So I guess the mapserver seem don't accept the ';' as separator
between commands.

Perhaps MS use another char separator rather than ';' ?

Thx,

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
(Continue reading)

Gertjan van Oosten | 17 Jul 14:07 2014
Picon

WFS GetFeature sometimes returns 'missing' even when there are matching features

Hi,

A WFS GetFeature request like this one:

  <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <wfs:Query typeName="feature:Results_wfs">
      <wfs:PropertyName>FEATURE_ID</wfs:PropertyName>
    </wfs:Query>
  </wfs:GetFeature>

sometimes returns 'missing' like so:

  <?xml version='1.0' encoding="ISO-8859-1" ?>
  <wfs:FeatureCollection
     xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
     xmlns:gml="http://www.opengis.net/gml"
     xmlns:wfs="http://www.opengis.net/wfs"
     xmlns:ogc="http://www.opengis.net/ogc"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver
http://localhost/mapserv?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=feature:Results_wfs&amp;OUTPUTFORMAT=text/xml;%20subtype=gml/3.1.1
 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
     <gml:boundedBy>
	<gml:Null>missing</gml:Null>
     </gml:boundedBy>
  </wfs:FeatureCollection>

even when there is a matching feature. This happens with Mapserver 6.4.1
(Continue reading)

Andrea Peri | 17 Jul 10:49 2014
Picon

STYLEITEM working with ground units.

Hi,

I'm testing the new feature STYLEITEM with the OGRSTYLE option.

I see that the LABEL Are not scaled nevertheless the value in the
style field is:

LABEL(f:"Arial",t:"38.7",s:3g,c:#000000)

the 3g should mean size in 3 ground units.

I see that instead it work if I set the SIZEUNITS to meters it work,
but I'm not sure that is correct that it should work only setting the SIZEUNITS.

Thx,

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Moen, Paul T. | 16 Jul 18:14 2014

How to combine all included map files in to one production map file.

Is there an easy way to combine all included map files into a single map file?  The includes make it easy to organize the map file, but I want to combine all of them into one map file that will be used for debug or production.

The only thing I found related to what I want is specifically listed in the documentation at http://www.mapserver.org/mapfile/include.html, but it has no information on how to build a production map file.

Performance does not seem to be seriously impacted with limited use, however in high performance instances you may want to use includes in a pre-processing step to build a production mapfile.

Thanks,

Paul
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Leehan | 16 Jul 16:35 2014
Picon

itemquery mode with mapserver 6.4.1

Hello,

I m looking for an example of mapserver application using itemquery mode
successfully.
I'd like to study the mapfile and validation part, and the template.
Because i can't set this functionnality for now.
Can anyone help please ? 

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/itemquery-mode-with-mapserver-6-4-1-tp5151332.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

forums | 15 Jul 20:31 2014

Issues with Python Mapscript

Hi Guys:

I'm having issues with the Python implementation of mapscript.  It appears some support is missing.
I'm using mapserver 6.4.1-2 on Arch Linux.
python2 -V 2.7.8
mapscript.MS_VERSION = 6.4.1

1)  Transparency not preserved with m.draw() on a mapObj()
Individual Layer tansparency using m.draw() when inside a style object:
mStyle = ms.styleObject()
mStyle.opacity = 50

If I do:
m.save('tmp.map')
And load the resulting map with the mapserver CGI it works fine, the layer is at whatever transparency I set.
Map file:
...
CLASS
      STYLE
        COLOR 255 255 255
        OPACITY 50
        OUTLINECOLOR 0 0 0
      END # STYLE
END # CLASS
...

2) Setting labelObj().type seems to have no effect.
labelObj.type = ms.MS_TRUETYPE
labelObj.type = ms.MS_BITMAP
labelObj.type = 0
labelObj.type = 1
The resulting map definition file has:
..
TYPE BITMAP
..

3) Setting labelObj().size seems to have no effect.
the mapfile has no 'SIZE' attribute when printed out.  I do end up with a SHADOWSIZE, which I'm guessing is default, or has to do with the BITMAP type that's being forced.

4)  I can't seem to set a pattern.  It looks like mapscript.py includes the functionality, but it's giving an error.  Traceback from when my code hands it off:
...
    mStyle.pattern = "5 5 5 5"
  File "/usr/lib/python2.7/site-packages/mapscript.py", line 535, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, name, value)
  File "/usr/lib/python2.7/site-packages/mapscript.py", line 51, in _swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/usr/lib/python2.7/site-packages/mapscript.py", line 44, in _swig_setattr_nondynamic
    if method: return method(self,value)
TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double [MS_MAXPATTERNLENGTH]'
...

Am I doing something wrong, or are these issues with the library/Python implementation?

Thank you.



--
A computer without Windows is like chocolate cake without mustard.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Juanma M. R. | 14 Jul 10:58 2014
Picon

Connecting to a mapnik / renderd / mod_tile layer

Dear list,

I have a server offering OSM tiled layer based on the instructions here.

I have a openlayers using this OSM base layer and other overlay layers but I would like to make them printable as an image or PDF. After trying with client-side alternatives and failing one after another, I am trying now based on a server-side and MapServer based approach, the one I am more used to.

So, I have already configured the overlays layers in my map file and I need to include the OSM tiled layer I have directly from mod_tile data. The issue is that I can't find a way to do it. I am not familiar with mapnik, that is why I am trying with mapserv which I installed on the server. Also I would like to use mapserver to use the PDF, KML and multiple image formats supported. I have always used mapserver, but I inherit this OSM configuration and I found problems migrating or addapting it.

I have checked mapserver documentation, but following the instructions in Rendering OSM Data it fails when trying to compile mapserver-utils due to not being able to connect www.naturalearthdata.com. However, here it says no osm2pgsql estructure is supported anymore. So I am affraid I will need to load data again to be able to serve OSM layer from MapServer.

Does anyone know if it is possible to connect to this mod_tile tiles from a mapserver mapfile? 

If no, does anyone know why mapserver-utils are failing and if there is another tutorial for configuring OSM own server with MapServer?

Regards,
Juan Manuel Moreno Rivera.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
TDS | 12 Jul 10:39 2014
Picon

KML output with icons

Hello,

I can get Mapserver to output KML (below). But the icon is NULL. How to change this?
========================================
    SYMBOL
        NAME "symbol-tourism"
        TYPE PIXMAP
        IMAGE "tourism.png"
        TRANSPARENT 8
    END
========================================
LAYER
 STATUS ON
 METADATA
  "wms_srs" "EPSG:900913 EPSG:4326 EPSG:3034 EPSG:3857 EPSG:2986 EPSG:3068 EPSG:4258 EPSG:25832 EPSG:25833 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:31469 EPSG:32632 CRS:84"
  "wms_title" "pois"
  "wms_group_title" "pois"
 END
 TYPE LINE
 MINSCALEDENOM 0
 MAXSCALEDENOM 2539
 DEBUG 5
 NAME "pois_tourism18"
 GROUP "pois"
 CONNECTIONTYPE postgis
 CONNECTION "host=localhost dbname=osm user=gis password=XXX port=XXX"
 DATA "geometry from (select geometry,osm_id, name as name, type from public.osm_tourism) as foo using unique osm_id using srid=3857"
 LABELITEM "name"
 CLASSITEM "type"
 TYPE POINT
 CLASS
  STYLE
   SYMBOL "symbol-tourism"
   SIZE 16
   WIDTH 16
  END
  LABEL
   FONT sc
   TYPE TRUETYPE
   ENCODING "utf-8"
   ANTIALIAS TRUE
   COLOR "#000000"
   OUTLINECOLOR "#FFFFFF"
   OUTLINEWIDTH 1
   SIZE 8
   BUFFER 2
   PARTIALS FALSE
   POSITION AUTO
   PRIORITY 10
  END
 END
END
========================================
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Style id="LayerFolder_check">
      <ListStyle>
        <listItemType>check</listItemType>
      </ListStyle>
    </Style>
    <Style id="LayerFolder_checkHideChildren">
      <ListStyle>
        <listItemType>checkHideChildren</listItemType>
      </ListStyle>
    </Style>
    <Style id="LayerFolder_checkOffOnly">
      <ListStyle>
        <listItemType>checkOffOnly</listItemType>
      </ListStyle>
    </Style>
    <Style id="LayerFolder_radioFolder">
      <ListStyle>
        <listItemType>radioFolder</listItemType>
      </ListStyle>
    </Style>
    <name>MS</name>
    <Style id="style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff">
      <IconStyle>
        <Icon>
          <href>(null)</href>
        </Icon>
      </IconStyle>
      <LabelStyle>
        <color>ff000000</color>
      </LabelStyle>
    </Style>
    <Folder>
      <name>pois_tourism14</name>
      <visibility>1</visibility>
      <styleUrl>#LayerFolder_check</styleUrl>
      <Placemark>
        <name>Stolpersteine</name>
        <styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
        <Point>
          <coordinates>
    9.73377352,52.37656544
    </coordinates>
        </Point>
      </Placemark>
      <Placemark>
        <name>Friedrich Schiller</name>
        <styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
        <Point>
          <coordinates>
    9.73549215,52.37517865
    </coordinates>
        </Point>
      </Placemark>
      <Placemark>
        <name>Ernst-August-Denkmal</name>
        <styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
        <Point>
          <coordinates>
    9.74074584,52.37627325
    </coordinates>
        </Point>
      </Placemark>
    </Folder>
  </Document>
</kml>


--
Bye, Mathias mailto:tds <at> tds-net.de
1+1=10
You have a question? - 42 or RTFM.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Mario Jurcevic | 9 Jul 16:55 2014
Picon

mapserver wrong scale computation

Hi,
I am trying to create an image with same size as the map extent, only by 
a scale factor of 500.
The mapserver scale computation gives 500.8989383487 scale.

If I set the image inch*72.129302863661 instead of default 72 the 
mapsever scale computed is
500.00127000041.

What is the correct value for resolution?

Regards,
Mario Jurcevic

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

wiltomap | 8 Jul 11:43 2014
Picon

A particular line symbology in a mapfile

Hello all,

I have to define a markup STYLE ... END in order to represent a double line.
It could be similar to a traditional representation of a motorway (2
parallel red lines with a yellow background) but I need a transparent
background, so that I can see other lines from other mapfiles. I have pasted
below an overview of what I need.

Thanks in advance for your help and ideas !

Thomas

<http://osgeo-org.1560.x6.nabble.com/file/n5150076/foncage.png> 

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/A-particular-line-symbology-in-a-mapfile-tp5150076.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Alessandro Mazzella | 7 Jul 15:39 2014
Picon

Problem with yum installation of Mapserver 6.2.1-5 on Fedora 20

Hi all,

I'm trying to install mapserver 6.2.1-5 on my Fedora20 VM with yum, but I'm reporting a crucial problem: yum installation successfully ends, but there is no "mapserv" file on whole my filesystem. shp2img and legend files can be correctly found on /usr/bin/ directory instead.

Any suggestion ?

Thanks all

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane