How to display emission zones in xMap2?

This forum covers all questions dealing with visualization of data within the native PTV xMap interface and the
PTV Developer Raster Maps API
Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
Lauterfeld
Posts: 26
Joined: Tue Apr 14, 2015 1:19 pm

How to display emission zones in xMap2?

Post by Lauterfeld »

Hi,
Our users are missing the visualization of emission zones in xMap2. Worked fine in xMap1. How can we achieve the visualization of these zones?

Regards,
Volker
Volker Lauterfeld
Software-Entwicklung und Projekte
COS GmbH
Gesellschaft für Computersysteme,
Organisation und Softwareentwicklung mbH
Raiffeisenstraße 21
D-77704 Oberkirch
http://www.cosonline.de/
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to display emission zones in xMap2?

Post by Bernd Welter »

Hello Volker,

copy the two attached files in your /conf/profiles folder and use the "storedProfile=emissionzones".
emissionzones.xml
stored profile
(261 Bytes) Downloaded 789 times
emissionzones.ini
referenced render profile
(40.52 KiB) Downloaded 800 times
If you want to play with the ALPHA blendings you can update these keys:
[config.background.alphablending]
; Green Zone, green
29=72
; Green Zone, yellow
30=72
; Green Zone, red
31=72
Result:
based on alpha blending = 36
based on alpha blending = 36
Here's the sample request:

Code: Select all

{
  "storedProfile" : "emissionzones",
  "mapSection": {
    "$type": "MapSectionByCenter",
    "centerCoordinate": {
      "x": 8.4746598928 ,
      "y": 49.004840798
    },
    "zoom": 10
  },
  "imageOptions": {
    "width": 800,
    "height": 600
  }
}
#greenzones #emissionzones
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to display emission zones in xMap2?

Post by Bernd Welter »

I've been asked whether it is possible to request a layer that only contains the greenzones.
Here we are - OnPremise only!
Copy both files into your local /xserver.../conf/profiles and request this example
produced by the sample above
produced by the sample above
emissionzonesNotVisible.png (1.6 KiB) Viewed 8696 times
Attachments
emissionzonesNotVisible.ini
the INI file that surpressed any other content but emission zones
(42.29 KiB) Downloaded 547 times
emissionzonesNotVisible.xml
The xServer stored profile that refers to the INI file
(308 Bytes) Downloaded 565 times
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to display emission zones in xMap2?

Post by Bernd Welter »

by the way:
As mentioned in the xServer 2.30 release announcement we will offer a new technical approach to visualize Low Emission Zones through xMap2...

Image
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply