jdmorgan | 25 Sep 16:55 2014

Installing MapServer with FastCGI

Hello,

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

 

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


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

 

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

  FCGI library/component/dependency could not be found.

    HINTS:

    - disable FCGI support by adding -DWITH_FCGI=0

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

Call Stack (most recent call first):

  CMakeLists.txt:482 (report_optional_not_found)

 

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

Thanks,

<!-- /* Font Definitions */ <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-536870145 1073786111 1 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {mso-style-priority:1; mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.WordSection1 {page:WordSection1;} --> -- -- Derek
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [EXTERNAL] Leaflet + OpenMap + Mapserver WMS

Robert,

You need to set a single value in your mapfile projection block and then
set the list of allowed projections in your map web metadata block.

http://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms

Basically you need this part

WEB
  ...
    METADATA
	"wms_title"           "WMS Demo Server"
	"wms_onlineresource"  "http://my.host.com/cgi-bin/mapserv?map=wms.map&"
	"wms_srs"             "EPSG:3857 EPSG:4269 EPSG:4326"
    END
END

And note that you should use EPSG:3857 rather than 900913 (if you can).
3857 is the official code, 900913 was a hack added temporary code.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center

On 9/25/14, 7:28 AM, "Burgholzer, Robert (DEQ)"
<Robert.Burgholzer <at> deq.virginia.gov> wrote:

>Running afoul of projections conflict in the setup with the following
>error:
>"msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must
>be valid for all requested layers."
>
>All layers in my Mapfile have an EPSG of 4326, but the base layer of my
>map in Leaflet is OpenMap which I understand comes in with the google
>projection 900913?
>
>I have done the following:
>* I added the def for 900913 to the proj4 epsg file (this def was added
>after compiling mapserver but can't imagine that would matter?):
>/usr/share/proj/epsg
>* Compiled Mapserver with proj4 enabled (--with-proj4)
>* Set allowable 900913, 4326, and 4269 in my mapfile projection block
>(block shown below)
>* Set "debug 5" in my mapfile but received no other info about this issue
>(like what proj is being requested by Leaflet)
>
>
>Mapfile excerpts:
>
>PROJECTION
>    "init=epsg:900913"
>    "init=epsg:4269"
>    "init=epsg:4326"
>END
>
>
>
>Robert  Burgholzer
>Surface Water Modeler
>Virginia DEQ Office of Surface and Ground Water Supply
>804-869-3066
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users <at> lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Burgholzer, Robert (DEQ | 25 Sep 13:28 2014

Leaflet + OpenMap + Mapserver WMS

Running afoul of projections conflict in the setup with the following error:
"msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers."

All layers in my Mapfile have an EPSG of 4326, but the base layer of my map in Leaflet is OpenMap which I
understand comes in with the google projection 900913?  

I have done the following:
* I added the def for 900913 to the proj4 epsg file (this def was added after compiling mapserver but can't
imagine that would matter?): /usr/share/proj/epsg 
* Compiled Mapserver with proj4 enabled (--with-proj4)
* Set allowable 900913, 4326, and 4269 in my mapfile projection block (block shown below)
* Set "debug 5" in my mapfile but received no other info about this issue (like what proj is being requested by Leaflet)

Mapfile excerpts:

PROJECTION
    "init=epsg:900913"
    "init=epsg:4269"
    "init=epsg:4326"
END

Robert  Burgholzer
Surface Water Modeler 
Virginia DEQ Office of Surface and Ground Water Supply
804-869-3066

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

Kralidis,Tom [Ontario] | 25 Sep 13:03 2014
Picon

bash vulnerability

Echoing Oliver's tweet:
https://twitter.com/oltonn/status/515039547944869888

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271

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

Peter Freimuth | 24 Sep 16:40 2014

problems with KML output in context of WFS GetFeature

Hi Mapserver Users,

 

We have a problem with creating KML output from a PostGIS db in context of a GetFeature request version=1.1.0 outputformat=kml.

 

The problem is that not all attributes are exported and that the values are shifted, means the mapping between value ad attribute name is wrong.

 

This is the request:

 

http://localhost/cgi-bin/catalog_view.fcgi?typename=coveragepols&searchid=6ca8dd30-43b8-11e4-9804-00163e437838&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&SRS=EPSG:4326&outputformat=kml

 

This is the mapserv config:

<!-- MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

 

This is the outputformat declaration from the mapfile:

    OUTPUTFORMAT

        NAME "kml"

        DRIVER "OGR/KML"

        MIMETYPE "application/vnd.google-earth.kml.xml"

        FORMATOPTION "STORAGE=memory"

        FORMATOPTION "FORM=SIMPLE"

        FORMATOPTION "FILENAME=catalog_search_result.kml"

    END

 

This is the layer from the mapfile:

    #----------------------------------------------------------------------------------------------------------------------------#

    # This layer serves a WMS representation of the coverage polygons and a WFS for the related metadata

    #----------------------------------------------------------------------------------------------------------------------------#    LAYER

        NAME "coveragepols"

        TYPE POLYGON

        STATUS ON

        DEBUG 5

        UNITS meters #dd

        SIZEUNITS PIXELS

        TOLERANCE 3

        TOLERANCEUNITS PIXELS

        MINSCALE 1000

        MAXSCALE 10000000

        LABELITEM "label"

        LABELMAXSCALEDENOM 1400000

        PROCESSING "CLOSE_CONNECTION=DEFER"

        CONNECTIONTYPE POSTGIS

        CONNECTION"user=nnnn password=nnnn dbname=nnnn host=’localhost' port=5432"

        DATA "coverage_poly FROM (SELECT product_identifier, product_identifier||'_'||cast(acquisition_date as date)::text as label,

                                         imagetake_cat_id as it_cat_id, tile_id, spacecraft_id, cloud_cover, black_fill, acquisition_date,

                                         image_path, id as image_id, search_request_id as search_id,

                                         tileid_stack_order, roll_angle as view_angle, metadata_url,

                                         st_asewkt(st_transform(footprint,3785)::geometry) as footprint,

                                         st_transform(coveragepoly,3785) as coverage_poly

                             FROM catalog_search_view.view_service

                             WHERE search_request_id='%searchid%' AND is_visible=TRUE

                             ORDER BY product_identifier, tile_id, tileid_stack_order ASC, acquisition_date ASC, cloud_cover ASC, black_fill ASC

                             ) foo USING UNIQUE image_id USING SRID=3785"

        PROJECTION

            "init=epsg:3785" #Google Projection ( new code )

            #"init=epsg:4326"

        END

        VALIDATION

            'searchid' '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'

            'default_searchid' '5b7257a0-d9df-11e3-b7e2-b4b52fd4696c'

        END

        METADATA

            "ows_title" "Coverage Polygons"

            "ows_extent" "-20037508.34 -20037508.34 20037508.34 20037508.34"

            #"ows_extent" "-180 -89 180 89"

            "wms_srs" "EPSG:3857 EPSG:3785 EPSG:900913 EPSG:4326" #output

            "wfs_getfeature_formatlist"  "geojson,shapezip,csv"

            "wfs_featureid" "image_id"

            "wfs_getfeature_formatlist"  "geojson,shapezip,csv,kml "

            "wfs_geomtype"  "Polygon"

            "gml_include_items" "all"

            "gml_exclude_items" ""

            "gml_types" "auto"

        END

        CLASS

            NAME "Coverage Polygons"

            #STYLE

            #   COLOR 231 182 21

            #END

            STYLE

                OUTLINECOLOR 10 255 0

                WIDTH 2

            END

            LABEL

            END

        END

    END

 

 

This is the resulting KML:

 

<?xml version="1.0" encoding="utf-8" ?>

<kml xmlns="http://www.opengis.net/kml/2.2">

<Document><Folder><name>coveragepols</name>

  <Placemark>

                <name>8971800</name>

                <description>8971800_2012-04-01</description>

                <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>

                <ExtendedData><SchemaData schemaUrl="#coveragepols">

                                <SimpleData name="product_identifier">8971799</SimpleData>

                                <SimpleData name="label">2131328</SimpleData>

                                <SimpleData name="it_cat_id">0</SimpleData>

                                <SimpleData name="tile_id">2</SimpleData>

                                <SimpleData name="spacecraft_id">70</SimpleData>

                                <SimpleData name="cloud_cover">2012</SimpleData>

                                <SimpleData name="black_fill">0</SimpleData>

                                <SimpleData name="image_path">6ca8dd30-43b8-11e4-9804-00163e437838</SimpleData>

                                <SimpleData name="search_id"></SimpleData>

                                <SimpleData name="view_angle">0</SimpleData>

                </SchemaData></ExtendedData>

      <Polygon><outerBoundaryIs><LinearRing><coordinates>-53.842662603651206,-16.845382012603906 -53.8416445,-16.911957400000013 -54.050696106229296,-16.914945332724113 -54.029782739899993,-16.81954737480001 -53.842662603651206,-16.845382012603906</coordinates></LinearRing></outerBoundaryIs></Polygon>

  </Placemark>

….

 

Everything works fine with GML2,3, geojson, csv, shapezip.

This is an example of the  gml2 output:

<gml:featureMember>

<re:coveragepols fid="coveragepols.7870">

<gml:boundedBy><gml:Box srsName="EPSG:4326"><gml:coordinates>-16.914945,-54.050696 -16.819547,-53.841645</gml:coordinates></gml:Box></gml:boundedBy>

<re:msGeometry><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-16.845382,-53.842663 -16.911957,-53.841645 -16.914945,-54.050696 -16.819547,-54.029783 -16.845382,-53.842663 </gml:coordinates>

</gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></re:msGeometry>

<re:product_identifier>8971800</re:product_identifier>

<re:label>8971800_2012-04-01</re:label>

<re:it_cat_id>8971799</re:it_cat_id>

<re:tile_id>2131328</re:tile_id>

<re:spacecraft_id>RapidEye-2</re:spacecraft_id>

<re:cloud_cover>2</re:cloud_cover>

<re:black_fill>70</re:black_fill>

<re:acquisition_date>2012-04-01 14:54:13+00</re:acquisition_date>

<re:image_path>/data/browse_images/re/itt_it/2012/4/1/8971799/2131328_2012-04-01_8971799_8971800_browse.tif</re:image_path>

<re:image_id>7870</re:image_id>

<re:search_id>6ca8dd30-43b8-11e4-9804-00163e437838</re:search_id>

<re:tileid_stack_order/>

<re:view_angle/>

<re:metadata_url/>

<re:footprint>SRID=3785;MULTIPOLYGON(((-6020089.94663019 -1884323.72494587,-5993595.17046117 -1884323.72494587,-5993595.17046117 -1910982.75368706,-6020089.94663019 -1910982.75368706,-6020089.94663019 -1884323.72494587)))</re:footprint>

</re:coveragepols>

</gml:featureMember>

 

 

Any idea what I need to change to get this working properly?? Any hint or a solution is welcome.

 

Peter

BlackBridge AG | Sitz Berlin | Amtsgericht Charlottenburg - Registergericht | HRB 152785 | Aufsichtsratsvorsitzender: David Westwood | Vorstand: Ryan Johnson
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Solly Vuso | 23 Sep 13:23 2014
Picon

Re: How to add tile.xml image as a background

Hi Mapservers

I have an image as an tile.xml image and i want to use it as a background image , can someone please assist me on how to write it on the mapfile

here is the xml

http://aerial.openstreetmap.org.za/aerial-osm-org-za-tiles.xml
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Dejan Gambin | 23 Sep 12:32 2014
Picon

Label wrapping question

Hi,

I have some users wishing to use long legend labels, but they don't fit well on my site. As I can see, MapServer
is doing this - if maxlength > 0 and wrap = 'char' (usually space), insert a new line at the FIRST wrap
character found AFTER maxlength character. This is leading to some bad results (label not wrapped or
wrapped too early).

My question is - shouldn't it be better to wrap at the LAST wrap character BEFORE maxlength character? Is
this maybe implemented somewhere or there are plans for this?

Thanks very much

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

Steve.Toutant | 18 Sep 18:08 2014
Picon

WFS getfeature returns nothing if layer srs is 4326


I have a mapfile in srs 3857, using mapserv 6.1 (dev version)
In this mapfile I have
2 layers with srs 4326
1 layer with 900913
1 layer with 32198

Since 6.0 we can have several srs in a WFS I think
All layers Data source is a postgis table


GetFeatures request don't work for the 2 layers in 4326. See The getCapabilities returns bad value for WGS84BoundingBox
- <FeatureType>
  <Name>cardiologie</Name>
  <Title>cardiologie</Title>
  <DefaultSRS>urn:ogc:def:crs:EPSG::3857</DefaultSRS>
- <OutputFormats>
  <Format>text/xml; subtype=gml/3.1.1</Format>
  </OutputFormats>
- <ows:WGS84BoundingBox dimensions="2">
  <ows:LowerCorner>-25000000 -25000000</ows:LowerCorner>
  <ows:UpperCorner>25000000 25000000</ows:UpperCorner>
  </ows:WGS84BoundingBox>
  </FeatureType>

Compares with a layer in 32198. See valid values for WGS84BoundingBox
  - <FeatureType>
  <Name>chsld</Name>
  <Title>chsld</Title>
  <DefaultSRS>urn:ogc:def:crs:EPSG::3857</DefaultSRS>
- <OutputFormats>
  <Format>text/xml; subtype=gml/3.1.1</Format>
  </OutputFormats>
- <ows:WGS84BoundingBox dimensions="2">
  <ows:LowerCorner>-178.714246078922 -66.3067843156478</ows:LowerCorner>
  <ows:UpperCorner>179.855210132046 -35.1587587019759</ows:UpperCorner>
  </ows:WGS84BoundingBox>
  </FeatureType>

I created a geometry column in 32198 for these 2 layers, and the everything work

Any idea on the issue here? Why coordinates are invalid when using 4326?

thank

steve

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
TENGDA | 18 Sep 11:36 2014
Picon

STYLEITEM AUTO and LABEL ENCODING can't exist simultaneously??

Hi All,

Is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030?  NOTE: my mapserv is V5.2.1.

[PROBLEM]:
I am now using mapinfo tab files as my map data. 
Labels in the mapinfo files are in Chinese. In order to support styles within mapinfo, I use 'STYLEITEM AUTO'. 
Then style are displayed well, however, Chinese characters are not displayed properly.

[PROBLEM DESCRIPTION]:
  • Mapserver version: 5.2.1.
MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE
  • ogrinfo of tab file:
OGRFeature(2000_BJ10):4
  blank (String) = 
  Style = LABEL(t:"育",a:0.000000,s:1.380000g,c:#000000,p:1,f:"")
  POINT (1017054046.578231 612967797.60216415)

[CONFUSING]:
  • When I use STYLEITEM AUTO, I can't set 'ENCODING GB18030' for LABEL. 
  • If not using STYLEITEM AUTO, I can't set LABELITEM, because the chinese character is within Style=LABEL(t:"Chinese character"....).
Method I also tried includes:
  • Change mapfile encoding from ANSI to UTF-8
  • Change MIF/MID encoding from ANSI to UTF-8, or even to BIG5.
So, is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030?  NOTE: my mapserv is V5.2.1.

[MORE INFORMATION]:
I also have another mapinfo tab file, whose data is like this:
ENAME2000: String (50.0)
OGRFeature(省界):1
  NAME (String) = 北京市
  AREA (Real) =             1.733
  PERIMETER (Real) =             8.498
  省界_ (Real) =           9
  省界_ID (Real) =          11
  CODE2000 (Real) = 110000
  ENAME2000 (String) = Beijing Municipality
  Style = BRUSH(fc:#f0f0f0,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p
x,c:#d0d0d0,id:"mapinfo-pen-2.ogr-pen-0")
In this situation, I can use one layer with 'STYLEITEM AUTO' to display styles, and another layer with 'LABELITEM NAME' and LABEL ... END to display Labels, without any problem. Mapfile is as follow:
LAYER
##DATASOURCETYPE 0
NAME "test"
TYPE polygon
STATUS DEFAULT
OPACITY 100
SIZEUNITS pixels
DATA "省界"
CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\省界.TAB"
CONNECTIONTYPE ogr
STYLEITEM "AUTO"
PROJECTION
AUTO
END
CLASS
NAME "Untitled class"
END
END
LAYER
##DATASOURCETYPE 0
NAME "省界"
TYPE annotation
STATUS DEFAULT
OPACITY 100
SIZEUNITS pixels
DATA "省界"
CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\省界.TAB"
CONNECTIONTYPE ogr
PROJECTION
AUTO
END
LABELITEM "NAME"
CLASS
NAME "Untitled class"
LABEL
ANGLE auto
FONT "HEITI"
ENCODING "GB18030"
TYPE truetype
PRIORITY 1
SIZE 10
MAXSIZE 256
MINSIZE 4
COLOR 255 0 0
OUTLINECOLOR 0 255 255
BACKGROUNDSHADOWSIZE 1 1
POSITION cc
ANTIALIAS FALSE
FORCE FALSE
PARTIALS FALSE
END
END
END

As you can see the difference between the two kinds of tab file, 
  • one set chinese character in to LABEL(t:'') field, in which I not know how to both set STYLEITEM AUTO and set ENCODING to LABEL.
  • the other set Chinese character to the NAME field, in which I can set one layer with STYLEITEM AUTO, and another layer with LABELITEM.
Can anyone solve the problem I described in this post?
Waiting for your reply. Thanks very much.



_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Pasquale Di Donato | 16 Sep 14:20 2014
Picon

Mapserver+SLD+FE+default style

Hi All,

I'm wondering if I can send GetMap request + SLD and use default styles.
I mean, I'd like to use an SLD file just to filter some features and then style them with the defualt style in the mapfile: I'd like to avoid specifying the style in the SLD.

Is that possible?

Will appreciate any feedback,
Thanks,

Pasquale Di Donato
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Rahkonen Jukka (Tike | 15 Sep 11:27 2014
Picon

Add the easy way to get GeoJSON from WFS into documentation

Hi,

I suggest to add most parts of the mail from Michael Smith
http://lists.osgeo.org/pipermail/mapserver-users/2013-November/075559.html into Mapserver
WFS server document http://mapserver.org/ogc/wfs_server.html. It is about an easy way for making
Mapserver to serve GeoJSON from WFS. Actually, is there something that prevents GeoJSON output from
being one of the internally supported default outputformats without a need to configure it separately in
each WFS mapfile? It could be deactivated with "wfs_getfeature_formatlist" if necessary.

This is the mail I refer to:

"Peter,
You can use OGR outputformats. Add something like this to your mapfile

OUTPUTFORMAT
  NAME "geojson"
  DRIVER "OGR/GEOJSON"
  MIMETYPE "application/json; subtype=geojson"
  FORMATOPTION "STORAGE=stream"
  FORMATOPTION "FORM=SIMPLE"
END

Add to your LAYER or MAP METADATA, "wfs_getfeature_formatlist" "geojson"
And then in your WFS call add &outputformat=geojson.
This will return geojson directly in the browser, if you need it to download, you can change the
FORMATOPTION to FORM=ZIP
See http://mapserver.org/output/ogr_output.html for more detail.

Mike"

-Jukka Rahkonen-

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


Gmane