Posts

Showing posts from October, 2016

Accessing GeoServer in a Local Network in Windows

Image
Using these following installers: step1. insert following xml nodes into ../webapps/geoserver/WEB-INF/web.xml <filter> <filter-name>cross-origin</filter-name> <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class> </filter> <filter-mapping> <filter-name>cross-origin</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> step2. unzip Jetty-bundles-repository-9.0.5.v20130815, and find two jar files in ./lib dir: jetty-util-9.0.5.v20130815.jar, jetty-servlets-9.0.5.v20130815.jar (because “org.eclipse.jetty.servlets.CrossOriginFilter” is in jetty-servlets-9.0.5.v20130815.jar package, which depends on jetty-util-9.0.5.v20130815.jar package) step3. copy these to jar files to “.../geoserver/WEB-INF/lib”. step4. restart GeoServer. ALL DONE! The above instruction will allow you to use WFS, of course, you need to enable the service in ...

Offline GIS App using Cordova Part I

Image
OVERVIEW  The application needs inputs from the user such as his/her location (this is optional), estimated amount of rainfall (rainfall intensity) and lastly the estimated time the rain has started.  The estimated time the rain has started is an important input from the user as it is the basis in computing when the flood water will arrive on the area. After providing the data, depending on the selected rainfall amount, the application will check if this data is present on the phone memory, otherwise, it will be downloaded. After a successful download, the user can now draw on the map. It can either be points, polygon or multipolygon. The drawn layer will be assessed by the application, if it is affected, it will provide the above information with rainfall amount and its location and it will be saved onto the phone memory for future reference, if not, throws a prompt that the area is not flooded.     Software/program used: mbutil TileMill Cygwin Term...