Re: [mapserver-users] Question about importing xml/json data from api

2021-01-04 Thread Travis Kirstine
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)  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@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] Question about importing xml/json data from api

2021-01-01 Thread CHEN, LIRON (PGT)
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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users