<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Zibusiso<br>
</p>
<div class="moz-cite-prefix">On 2020/02/26 13:30, Zibusiso Ncube
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHiii_aqLoKwBcaPqda8EkXGc+ynUaYHMRJYoWm23BQuSM=4uw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Good Day All,
<div><br>
</div>
<div>I am <b>new</b> to geoserver, i want to find out is there
a way of of dynamically publishing images that are added to a
folder. I have a process that generates images and writes them
to a directory on my machine. I want to be able to publish
this new image everytime it is generated.</div>
</div>
</blockquote>
<p>You will need a monitoring tool on your machine that listens to
file changes i.e <a class="moz-txt-link-freetext"
href="https://pypi.org/project/watchdog/">https://pypi.org/project/watchdog/</a></p>
<p>Once you have that in place you can use GeoServer rest API to
publish the images to Geoserver (<a class="moz-txt-link-freetext"
href="https://docs.geoserver.org/stable/en/user/rest/">https://docs.geoserver.org/stable/en/user/rest/</a>)</p>
<p>Regards</p>
<p>Admire<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAHiii_aqLoKwBcaPqda8EkXGc+ynUaYHMRJYoWm23BQuSM=4uw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div><b>[context]</b></div>
<div>I have test situation with GeoServer on Tomcat (local
machine obviously right now still testing) and PostGIS on
locally running PostgreSQL database (this is primarily for all
my vector data) and folder that stores images that are
generated from a python script.I want to be able to publish
the images generated by the script automatically without
having to sit down every-time and physically publish
them.(they are all the same in term of spatial attributes i.e.
area of coverage, resolution, projections etc etc). These will
be consumed by web application dev'ed using geoext and
openlayers ( i am new to all this). </div>
<div><br>
</div>
<div>PS - examples (especially online) of some automation via
code or similar would be much appreciated - very comfortable
with python and intermediate with JS. Been search for a long
time now i am not making headway🤦🏾♂️.</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature"><span>Regards</span><br>
<br>
<span>Zibusiso M Ncube</span><br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Africa mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Africa@lists.osgeo.org">Africa@lists.osgeo.org</a>
You can UNSUBSCRIBE at <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/africa">https://lists.osgeo.org/mailman/listinfo/africa</a></pre>
</blockquote>
</body>
</html>