How can I call a given WebMapping Service
0
Customer asks to implement a local avaliable map with layer in Mendix As an example next map service has been built which can be called: http://172.24.78.243:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=4.5,55.20000000000000284,4.599999999999999645,55.60000000000000142&CRS=EPSG:4326&WIDTH=944&HEIGHT=237&LAYERS=regeling&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE) This map shows a line in a slope between 2 points. How can I implement this in Mendix? I have been looking at the Leaflet and the ArcGIS plug-Ins but did not find how to use it Calling next link to retrieve the defined capabilities produces the xml below: http://172.24.78.243:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities <?xml version="1.0" encoding="UTF-8"?> <WMS_Capabilities xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://mapserver.gis.umn.edu/mapserver http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&service=WMS&version=1.3.0&request=GetSchemaExtension" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sld="http://www.opengis.net/sld" xmlns="http://www.opengis.net/wms" version="1.3.0"> <!-- MapServer version 7.0.7 (MS4W 3.2.7) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --> <Service> <Name>WMS</Name> <Abstract>This demonstration server Peter.</Abstract> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> <ContactInformation> </ContactInformation> <MaxWidth>4096</MaxWidth> <MaxHeight>4096</MaxHeight> </Service> <Capability> <Request> <GetCapabilities> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </GetCapabilities> <GetMap> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>image/png; mode=8bit</Format> <Format>application/x-pdf</Format> <Format>image/svg+xml</Format> <Format>image/tiff</Format> <Format>application/vnd.google-earth.kml+xml</Format> <Format>application/vnd.google-earth.kmz</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </GetMap> <GetFeatureInfo> <Format>text/plain</Format> <Format>application/vnd.ogc.gml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </GetFeatureInfo> <sld:DescribeLayer> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </sld:DescribeLayer> <sld:GetLegendGraphic> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>image/png; mode=8bit</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </sld:GetLegendGraphic> <ms:GetStyles> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Get> <Post> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> </Post> </HTTP> </DCPType> </ms:GetStyles> </Request> <Exception> <Format>XML</Format> <Format>INIMAGE</Format> <Format>BLANK</Format> </Exception> <sld:UserDefinedSymbolization RemoteWCS="0" InlineFeature="0" RemoteWFS="0" UserStyle="1" UserLayer="0" SupportSLD="1"/> <Layer> <!-- WARNING: The layer name 'infra data' might contain spaces or invalid characters or may start with a number. This could lead to potential problems. --> <Name>infra data</Name> <Abstract>This demonstration server Peter.</Abstract> <CRS>EPSG:4326</CRS> <CRS>EPSG:4269</CRS> <CRS>EPSG:3857</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-180</westBoundLongitude> <eastBoundLongitude>180</eastBoundLongitude> <southBoundLatitude>-90</southBoundLatitude> <northBoundLatitude>90</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxy="180" maxx="90" miny="-180" minx="-90" CRS="EPSG:4326"/> <Layer cascaded="0" opaque="0" queryable="1"> <Name>regeling</Name> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>55.2</westBoundLongitude> <eastBoundLongitude>55.6</eastBoundLongitude> <southBoundLatitude>4.5</southBoundLatitude> <northBoundLatitude>4.6</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxy="55.6" maxx="4.6" miny="55.2" minx="4.5" CRS="EPSG:4326"/> <Style> <Name>default</Name> <LegendURL height="23" width="83"> <Format>image/png</Format> <OnlineResource xlink:href="http://127.0.0.1:8182/cgi-bin/mapserv.exe?MAP=../../apps/openlayers-4.6.5/examples/map/wms-infradata.map&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=regeling&format=image/png&STYLE=default" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> </Layer> </Layer> </Capability> </WMS_Capabilities>
asked
Jan Joost Duijvestijn
1 answers
0
answered
Marcus Groen 🚀