Re: [mapserver-users] MS4W version 4.0.0-beta1 available

2019-02-04 Thread Jeff McKenna
I forgot to highlight one of the most important parts: MS4W-4.0.0 
contains PHP 7.2.14 and the performance improvements are very 
noticeable.  -jeff




On 2019-02-04 8:46 PM, Jeff McKenna wrote:

Hello everyone,

Many Windows users will be very interested that MS4W-4.0.0-beta1 is 
available now, which will be a huge release of changes, as every library
(over 200 now) has been upgraded and built with a new compiler (Visual 
Studio 2017), and contains many great additions overall.  You can test 
the beta at:


  - installer: 
https://ms4w.com/release/experimental/ms4w-4.0.0-beta1-setup.exe 
(recommended)

  - archive: https://ms4w.com/release/experimental/ms4w_4.0.0_beta1.zip

Please see MS4W's HISTORY.txt for all of the changes, but here are some 
of the highlights:


  - Mapbox Vector Tile output through MapServer (demo included)
  - PHP7 mapscript support (using the SWIG API)
  - usual mapscripts available (Java, Python, CSharp)
  - embedded Python 3.7.0
  - running pycsw Catalogue Server
  - expanded ZOO-Project WPS support (all GDAL/OGR services, Python, 
PHP, CSharp, Java)

  - new Matomo Analytics package
  - simple map viewer on the localhost page
  - GDAL 2.4.0
  - MapServer 7.4.0-dev
  - mod_wsgi for Apache
  - and many more...

You can see that MS4W-4.0.0 will be a full SDI for Windows environments, 
with ~40+ working mapfiles and over 1.7GB of files, empowering DevOps 
and organizations worldwide.  Also note that this is a major release for 
MS4W, meaning that some things have changed dramatically (PHPmapscript 
will now use the SWIG API for example), so please follow MS4W's README 
for specific instructions for the many plugins and mapscripts.


When installing, it is very important that (if you are using the .zip) 
your server must have the C++ Redistributable installed on it 
beforehand: execute the local file /ms4w/tmp/vcredist_x86.exe 
(alternatively if you use MS4W's setup.exe installer this is done 
automatically)


Please provide your 4.0.0 testing feedback through the MS4W tracker (so 
the feedback is not lost or forgotten): http://www.ms4w.com/trac/


Thank you all for sharing your spatial information with MS4W.


-jeff





--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MS4W version 4.0.0-beta1 available

2019-02-04 Thread Jeff McKenna

Hello everyone,

Many Windows users will be very interested that MS4W-4.0.0-beta1 is 
available now, which will be a huge release of changes, as every library
(over 200 now) has been upgraded and built with a new compiler (Visual 
Studio 2017), and contains many great additions overall.  You can test 
the beta at:


 - installer: 
https://ms4w.com/release/experimental/ms4w-4.0.0-beta1-setup.exe 
(recommended)

 - archive: https://ms4w.com/release/experimental/ms4w_4.0.0_beta1.zip

Please see MS4W's HISTORY.txt for all of the changes, but here are some 
of the highlights:


 - Mapbox Vector Tile output through MapServer (demo included)
 - PHP7 mapscript support (using the SWIG API)
 - usual mapscripts available (Java, Python, CSharp)
 - embedded Python 3.7.0
 - running pycsw Catalogue Server
 - expanded ZOO-Project WPS support (all GDAL/OGR services, Python, 
PHP, CSharp, Java)

 - new Matomo Analytics package
 - simple map viewer on the localhost page
 - GDAL 2.4.0
 - MapServer 7.4.0-dev
 - mod_wsgi for Apache
 - and many more...

You can see that MS4W-4.0.0 will be a full SDI for Windows environments, 
with ~40+ working mapfiles and over 1.7GB of files, empowering DevOps 
and organizations worldwide.  Also note that this is a major release for 
MS4W, meaning that some things have changed dramatically (PHPmapscript 
will now use the SWIG API for example), so please follow MS4W's README 
for specific instructions for the many plugins and mapscripts.


When installing, it is very important that (if you are using the .zip) 
your server must have the C++ Redistributable installed on it 
beforehand: execute the local file /ms4w/tmp/vcredist_x86.exe 
(alternatively if you use MS4W's setup.exe installer this is done 
automatically)


Please provide your 4.0.0 testing feedback through the MS4W tracker (so 
the feedback is not lost or forgotten): http://www.ms4w.com/trac/


Thank you all for sharing your spatial information with MS4W.


-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/




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

[mapserver-users] styling based on attribute for MapServer derived MVTiles

2019-02-04 Thread karsten
Dear All,
 
I was working on the configuration of MapServer generated MVT tiles for a
demo country world map and had success with MS v 7.2 outputting tiles in MVT
format ( all thanks to https://github.com/sdlime/mvt-demo ).
I am trying to work on the client side style for my demo map (using
mapbox-gl.js) and defined them in a similar way as JSON as in Steve's
mvt-demo above. The whole thing is later intended to be used in a benchmark
for MapServer MVT rendering speed versus T-Rex ( see
http://blog.sourcepole.ch/2018/09/06/the-tale-of-a-vector-tile-benchmark/ )
.
 
For now I am struggling with specifying the correct style syntax for the
client side and it seem that I missing something as I was not yet able to
successfully use attribute properties to render Countries as different
colors based on an attribute field of my PostGIS source.
Below is the configuration of my 'allcountries' layer. The mapcolor7 filed
is an integer field (in the input PostGIS source) but my set-up fails to
output multiple colors , instead I am getting all default black for the
country fill color. A second layer where I specified only Italy as one
Country 'country-italy' to show up renders fine -  see
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/countries_mv
t.png
 
My complete style JSON is at
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/ms_ne_simple
.json
and the corresponding map file is here
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/ne.map
 
Would anyone know what I need to change in order to render the countries
with different colors according to the 'mapcolor7' attribute ?
To me it seems that somehow the attribute is not available to the renderer
even though in the MapServer map file I am selecting all fields in the
sub-query ...
 
Thanks
Karsten
 

{
"id": "country-fill",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"paint": {
  "fill-color": {
"property": "mapcolor7",
"stops": [
[1, "#fdaf6b"],
[2, "#fdc663"],
[3, "#fae364"],
[4, "#d3e46f"],
[5, "#aadb78"],
[6, "#a3cec5"],
[7, "#ceb5cf"]
]
  }
}
},{
"id": "country-italy",
"type": "fill",
"source": "compass",
"source-layer": "italy",
"paint": {
  "fill-color": "#fdc663"
  }
  }
 
Karsten Vennemann
Terra GIS 

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