[mapserver-users] mapserver-users Digest, Vol 156, Issue 3

CHEN, LIRON (PGT) l.chen.18 at abdn.ac.uk
Thu Jan 7 10:32:49 PST 2021


Hi Travis,

Thank you for your response! I can connect to different data types with OGR or XSLT  for XML, however the problem is that the API only supplies in (non Geo-) JSON or an XML format mapserver doesnt like. Its the MetOffice datapoint; I am branching out to more sources but I will want to include them. Thats why Im looking for some way to convert them as an intermediate step. Ill dig deeper into OGR to see if it can connect to that API and maybe still get useable data from it.

Regards,
Liron
________________________________
From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of mapserver-users-request at lists.osgeo.org <mapserver-users-request at lists.osgeo.org>
Sent: 04 January 2021 20:00
To: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org>
Subject: mapserver-users Digest, Vol 156, Issue 3

CAUTION: External email. Ensure this message is from a trusted source before clicking links/attachments. If you are concerned forward this email to spam at abdn.ac.uk


Send mapserver-users mailing list submissions to
        mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
        mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
        mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: Question about importing xml/json data from api
      (Travis Kirstine)


----------------------------------------------------------------------

Message: 1
Date: Mon, 4 Jan 2021 14:55:24 -0500
From: Travis Kirstine <traviskirstine at gmail.com>
To: "CHEN, LIRON (PGT)" <l.chen.18 at abdn.ac.uk>
Cc: "mapserver-users at lists.osgeo.org"
        <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] Question about importing xml/json data
        from api
Message-ID:
        <CALtm4h11NDiJQgAPRHgwrKOb+7EbpEvk4ccW11JGKGBMifOeDA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Liron,

Since MapServer is built with GDAL / OGR you connect to most common formats
without parsing, see https://www.mapserver.org/input/vector/ogr.html.
However this does not include hand rolled JSON / XML, if possible retrieve
GeoJSON or some other GDAL / OGR supported format from the API.  You may
want to go through an extra step(s) of converting the data to a format that
supports spatial indexing (like shapefile or geopackage) if working with
large datasets.  Most of this can be done using a shell / batch scripting
and command line tools (ogr2ogr and shptree).  BTW ogr does support direct
connection to some API - like an ESRI feature server which can make the
conversion "easy", however not all OGR supported formats work with MapServer

https://gdal.org/drivers/vector/index.html

Regards







On Fri, 1 Jan 2021 at 18:35, CHEN, LIRON (PGT) <l.chen.18 at abdn.ac.uk> wrote:

> Hi and happy New Year!
>
> Im completely new to MapServer and not from a development background, but
> I hope its ok to ask for help here. Im a GIS postgraduate with some
> programming skill and Im trying to teach myself to set up a service that
> generates maps or layers when called on; but I want the service to generate
> them using the most recently published data from other web sources through
> their respective APIs. They mostly provide XML or JSON formatted spatial
> data.
>
> Ill inevitably need to read up and practice a lot and thats fine. But can
> anyone point me towards the apps or functionalities that will eventually
> allow me to do this? Just because Im comfortable with C++ I had a look if I
> could import with libcurl and parse with that to something mapserver could
> use but I think thats taking a very long way round.. any help appreciated.
>
> Kind regards,
> Liron Chen
>
>
> The University of Aberdeen is a charity registered in Scotland, No
> SC013683.
> Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir.
> SC013683.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210104/1ba7237c/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


------------------------------

End of mapserver-users Digest, Vol 156, Issue 3
***********************************************


The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. SC013683.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210107/93f86983/attachment.html>


More information about the mapserver-users mailing list