Re: [mapserver-users] Show traffic on roads.

2020-02-26 Thread Mohit Sindhwani

On 2020-2-26 8:48 am, Erik H wrote:
Depends on your requirements. If you just want to visualize typical 
traffic conditions, MapServer can do the job, it's pretty 
straightforward. Just join your road geometries with the congestion 
data (actual speed / free-flow speed), apply some filters (SQL 
conditions) on road class and maybe congestion (omitting non-congested 
roads), and render that in the appropriate color.


If, on the other hand, you have a feed with speeds that vary 
frequently, it gets tricky because you can't really use a regular tile 
cache. I ended up abandoning MapServer for this - the problem was not 
so much the rendering, but PostGIS was getting overwhelmed. If you get 
your speed data from a company like HERE or INRIX, you should be able 
to use their tilers. If not, you have a nice challenge.


How is the data created and stored? How large is the area? We do a bunch 
of things as a traffic services company, and have found that different 
things work better for different scenarios. MapServer and GeoServer have 
both worked for us in the past. The challenge is always on how pretty 
you want it to be, how much compute you're willing to spend, how often 
the data updates, etc.


It's correct that the regular tile cache doesn't expire data in the best 
way to support this :)


Best Regards,
Mohit.
2020-2-27 | 1:44 pm.


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

Re: [mapserver-users] Bewbie question about MapServer and WPS

2020-02-26 Thread Jeff McKenna

Hi Petros,

Since you are examining WPS, I recommend ZOO-Project 
(http://zoo-project.org/), from the MapServer family, which supports 
writing services in many languages (C, Python, PHP, JavaScript, ...), as 
well as creating GDAL/OGR services, and even outputting dynamic 
MapServer WMS services on-the-fly (meaning: it creates a MapServer 
mapfile that serves the result through a web map service).


But here is a great working example:

- MapServer is serving the background data (spatialite database) here 
through GeoJSON/WMS and the application leverages ZOO-Project to execute 
spatial commands (buffer etc).  Give it a try at 
https://ms4w.dev/zoo-project/demo/


If you check Developer Tools in your browser, you will see at call to 
the ZOO loader (https://ms4w.dev/cgi-bin/zoo_loader.cgi) and sending a 
request such as https://pastebin.com/nhpyc2jx


And the response from MapServer in GeoJSON: https://pastebin.com/G2VEVYRF

All thanks to the power of ZOO-Project WPS !!!

Hope that opens doors for you.

-jeff



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



On 2020-02-26 8:43 a.m., petros.liki...@scb.se wrote:

Hi all,

I have to warn you that I am entirely new to GIS and all the terminology 
so my questions might be strange. Nevertheless, my company wish to 
expose a service that receives a polygon as input and outputs 
statistical data about the area defined by the polygon. For instance, it 
could be the number of residents in different age groups, the average 
income, the number of companies divided by industry, etc.


The service will aggregated the statistical data on the fly according to 
input polygon. Then it will then preform some type of disclosure control 
of the aggregated data before it is send back to the caller. I guess 
that this service should be exposed as a WPS service or is there any 
other type of service that is more appropriate if it should be 
consumable from other GIS-applications?


If it should be a WPS will I be able to expose it through MapServer? If 
MapServer can do this or am I bound to use a specific programing 
language or can MapServer start an arbitrary program that dose the 
processing?


Kind regards

Petros



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

Re: [mapserver-users] Bewbie question about MapServer and WPS

2020-02-26 Thread Travis Kirstine
Petros

I'm not sure if MapServer is what you are looking for as I is generally
used the the creation and transfer of maps and it sounds like you are only
concerned with retrieval of statistical information.  MapServer probably
could be used for the application you describe but it would be easier to
simply use a WPS  service of some sort (https://pywps.org/).  Alternatively
you could look at using postgresql with the geo-spatial postgis extension
to perform your analysis any develop your own interface using whatever
language you prefer.





On Wed, 26 Feb 2020 at 07:51,  wrote:

> Hi all,
>
> I have to warn you that I am entirely new to GIS and all the terminology
> so my questions might be strange. Nevertheless, my company wish to expose a
> service that receives a polygon as input and outputs statistical data about
> the area defined by the polygon. For instance, it could be the number of
> residents in different age groups, the average income, the number of
> companies divided by industry, etc.
>
> The service will aggregated the statistical data on the fly according to
> input polygon. Then it will then preform some type of disclosure control of
> the aggregated data before it is send back to the caller. I guess that this
> service should be exposed as a WPS service or is there any other type of
> service that is more appropriate if it should be consumable from other
> GIS-applications?
>
> If it should be a WPS will I be able to expose it through MapServer? If
> MapServer can do this or am I bound to use a specific programing language
> or can MapServer start an arbitrary program that dose the processing?
>
> Kind regards
>
> Petros
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Bewbie question about MapServer and WPS

2020-02-26 Thread Petros.Likidis
Hi all,
I have to warn you that I am entirely new to GIS and all the terminology so my 
questions might be strange. Nevertheless, my company wish to expose a service 
that receives a polygon as input and outputs statistical data about the area 
defined by the polygon. For instance, it could be the number of residents in 
different age groups, the average income, the number of companies divided by 
industry, etc.
The service will aggregated the statistical data on the fly according to input 
polygon. Then it will then preform some type of disclosure control of the 
aggregated data before it is send back to the caller. I guess that this service 
should be exposed as a WPS service or is there any other type of service that 
is more appropriate if it should be consumable from other GIS-applications?
If it should be a WPS will I be able to expose it through MapServer? If 
MapServer can do this or am I bound to use a specific programing language or 
can MapServer start an arbitrary program that dose the processing?
Kind regards
Petros

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

[mapserver-users] Mapcache : Incompatible libpng version in application and library

2020-02-26 Thread Johannes Paul
Hello,
I've compiled Mapcache from source, and the installation worked just fine,
without any error, however when I run mapcache_seed, I get the following
error :

libpng warning: Application was compiled with png.h from libpng-1.5.13
libpng warning: Application  is  running with png.c from libpng-1.2.56
libpng error: Incompatible libpng version in application and library

Mapcache has been compiled correctly using libpng 1.5.13, however I don't
understand why mapcache_seed is trying to run with libpng 1.2.56 which is
not even installed !

Any idea ?
Thanks,
Johannes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users