{"id":1310,"date":"2017-12-07T14:25:29","date_gmt":"2017-12-07T14:25:29","guid":{"rendered":"https:\/\/max-drake.cc\/?p=1310"},"modified":"2020-07-10T21:04:03","modified_gmt":"2020-07-10T21:04:03","slug":"openmaint-gis-localhost-part-2-partial-success","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=1310","title":{"rendered":"OpenMAINT and GIS on Localhost. Part 2"},"content":{"rendered":"<h3>&nbsp;Part 2.<\/h3>\n<p>At the end of<a href=\"https:\/\/max-drake.cc\/openmaint-gis-localhost-no-success-date\/\"> part 1<\/a> I was left with openMAINT not recognising postGIS.<\/p>\n<p>At the end of part 2 I have the map in openMAINT, but no building icon on the map, or plan of building either, but there is a progression.<\/p>\n<p>After configuring openMAINT as per the CMDBuild documentation, I decided to go exploring in other areas and investigate PostGIS and GeoServer. So Mr YouTube was my friend.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=XQEXI90x6Gg&amp;feature=youtu.be\">This first video<\/a>, in Arabic, but just watch the process shows a couple of things:<\/p>\n<ol>\n<li>The fact that PostGIS needs to be activated as an EXTENSION in PostgreSQL database<\/li>\n<li>The link between geoserver &amp; postGIS<\/li>\n<li>How to start up and link the 2 together.<\/li>\n<\/ol>\n<p>Item 1\/ Above, I went looking on the<a href=\"http:\/\/postgis.net\/install\/\"> postGIS website&nbsp; insta<\/a>ll section and saw that there was an activation process, as it says, do not do in the <strong>posgres<\/strong> database.<img decoding=\"async\" class=\"wp-image-1314 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-10.png\" alt=\"\" width=\"731\" height=\"947\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-10.png 714w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-10-232x300.png 232w\" data-sizes=\"(max-width: 731px) 100vw, 731px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 731px; --smush-placeholder-aspect-ratio: 731\/947;\" \/><\/p>\n<p>I used the first line:&nbsp;<em> &#8212; Enable PostGIS (includes raster) CREATE EXTENSION postgis;<\/em><\/p>\n<p>Testing it in SQL in pgADMIN3.<br \/>\n<img decoding=\"async\" class=\"wp-image-1315 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-11.png\" alt=\"\" width=\"771\" height=\"1144\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-11.png 1063w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-11-202x300.png 202w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-11-768x1139.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-11-690x1024.png 690w\" data-sizes=\"(max-width: 771px) 100vw, 771px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 771px; --smush-placeholder-aspect-ratio: 771\/1144;\" \/><\/p>\n<p>I have chosen a deatabase&nbsp; &#8220;omback&#8221; to run the SQL query on. And got an ERROR.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-1317 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-12.png\" alt=\"\" width=\"1903\" height=\"1332\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-12.png 1903w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-12-300x210.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-12-768x538.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-12-1024x717.png 1024w\" data-sizes=\"(max-width: 1903px) 100vw, 1903px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1903px; --smush-placeholder-aspect-ratio: 1903\/1332;\" \/><\/p>\n<p>It is looking for the postgis.control file in a directory share\/postgresql\/extension<\/p>\n<p>Whereas in my setup this file is sitting in a directory share\/extension<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1316 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-13.png\" alt=\"\" width=\"2895\" height=\"1815\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-13.png 2895w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-13-300x188.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-13-768x481.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-13-1024x642.png 1024w\" data-sizes=\"(max-width: 2895px) 100vw, 2895px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2895px; --smush-placeholder-aspect-ratio: 2895\/1815;\" \/><\/p>\n<p>So, I copied a lot of the files from the <strong>share\/extension<\/strong> directory to&nbsp; <strong>share\/postgresql\/extension <\/strong>and got a further error inv that it couldn&#8217;t find a <strong>$lib&nbsp;<\/strong>directory.<\/p>\n<p>I searched online about this issue and the common theme was that I loaded up the programme wrong.<\/p>\n<p>My original load was PostGreSQL 9.3 then loaded after postGIS.<\/p>\n<p>From the <a href=\"https:\/\/www.youtube.com\/watch?v=XQEXI90x6Gg&amp;feature=youtu.be\">video tutorial above<\/a> I saw that the process was a single download of postgreSQL with Stackbuilder which installed postGIS for postgreSQL, as it downloads the version that is compatible.<\/p>\n<p>So I went back and downloaded the combined installer <a href=\"https:\/\/www.enterprisedb.com\/downloads\/postgres-postgresql-downloads#windows\">here<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1319 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-14.png\" alt=\"\" width=\"2999\" height=\"1223\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-14.png 2999w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-14-300x122.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-14-768x313.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-14-1024x418.png 1024w\" data-sizes=\"(max-width: 2999px) 100vw, 2999px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2999px; --smush-placeholder-aspect-ratio: 2999\/1223;\" \/><\/p>\n<p>Follow link, chose version, choose operating system and then download.<\/p>\n<h3>BACKUPS &amp; More BACKUPS<\/h3>\n<p>So I backed up all my databases, remember to backup &#8220;alfresco&#8217; too!!!<\/p>\n<p>Also, I backed up INDIVIDUALLY<\/p>\n<ol>\n<li>public schema<\/li>\n<li>gis schema<\/li>\n<li>shark schema<\/li>\n<\/ol>\n<p>Make sure you back them all up as you may be using these later.<\/p>\n<p>Then I deleted my postgreSQL installation and reinstalled it. I deleted the original directory.<\/p>\n<p>You may have to reboot a couple of times and check your postgres SERVER is off in your windows task manager), then I created the same directory and installed postgreSQL back into it (then the tomcat maps to it as per the original if all the directories\/sub directories are the same).<\/p>\n<p>If you don&#8217;t put it in same directory I think you may need to set up openMAINT from scratch (not absolutely sure on that though)<\/p>\n<p><img decoding=\"async\" class=\"wp-image-1321 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-15.png\" alt=\"\" width=\"785\" height=\"986\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-15.png 1017w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-15-239x300.png 239w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-15-768x964.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-15-816x1024.png 816w\" data-sizes=\"(max-width: 785px) 100vw, 785px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 785px; --smush-placeholder-aspect-ratio: 785\/986;\" \/><\/p>\n<p>I then created a blank database and restored my Database for GIS\/Public\/Shark (the openmaint setup) then tried to install the extension postGIS but again had problems.<\/p>\n<p>So I installed the postGIS extension first and then loaded up the other schemas (public\/gis\/shark) and then&nbsp; ran openMINT, and again it did NOT recognise the postGIS installation!!!! <strong>AAAAAgghh.<\/strong><\/p>\n<p>In fact, you have to run the SQL on all the extensions above, then it works:<\/p>\n<pre class=\"sql\">-- Enable PostGIS (includes raster)\nCREATE EXTENSION postgis;\n-- Enable Topology\nCREATE EXTENSION postgis_topology;\n-- Enable PostGIS Advanced 3D \n-- and other geoprocessing algorithms\n-- sfcgal not available with all distributions\nCREATE EXTENSION postgis_sfcgal;\n-- fuzzy matching needed for Tiger\nCREATE EXTENSION fuzzystrmatch;\n-- rule based standardizer\nCREATE EXTENSION address_standardizer;\n-- example rule data set\nCREATE EXTENSION address_standardizer_data_us;\n-- Enable US Tiger Geocoder\nCREATE EXTENSION postgis_tiger_geocoder;<\/pre>\n<p>Now, as I was in multiple installation mode, I only setup my restore database partially.&nbsp; I just wanted to test to see if the GIS section could be activated, and it was.<\/p>\n<h3>The OpenMAINT initialisation<\/h3>\n<p>(<em>Note in image below I have latitude and longitude the wrong way around.<\/em> )<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1323 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-16.png\" alt=\"\" width=\"2989\" height=\"1796\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-16.png 2989w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-16-300x180.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-16-768x461.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-16-1024x615.png 1024w\" data-sizes=\"(max-width: 2989px) 100vw, 2989px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2989px; --smush-placeholder-aspect-ratio: 2989\/1796;\" \/><\/p>\n<p>This is for initialising the GIS<\/p>\n<p>Then go to item 6 above<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1324 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-17.png\" alt=\"\" width=\"2995\" height=\"1827\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-17.png 2995w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-17-300x183.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-17-768x468.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-17-1024x625.png 1024w\" data-sizes=\"(max-width: 2995px) 100vw, 2995px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2995px; --smush-placeholder-aspect-ratio: 2995\/1827;\" \/><\/p>\n<p>The icons I used are from Freepik on the flaticon.com website. You are allowed to use for free but have to acknowledge the author. Thankyou Freepik.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1325 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-18.png\" alt=\"\" width=\"2970\" height=\"1485\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-18.png 2970w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-18-300x150.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-18-768x384.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-18-1024x512.png 1024w\" data-sizes=\"(max-width: 2970px) 100vw, 2970px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2970px; --smush-placeholder-aspect-ratio: 2970\/1485;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1330 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-19.png\" alt=\"\" width=\"3000\" height=\"1786\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-19.png 3000w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-19-300x179.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-19-768x457.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-19-1024x610.png 1024w\" data-sizes=\"(max-width: 3000px) 100vw, 3000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 3000px; --smush-placeholder-aspect-ratio: 3000\/1786;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1329 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-20.png\" alt=\"\" width=\"2996\" height=\"1778\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-20.png 2996w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-20-300x178.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-20-768x456.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-20-1024x608.png 1024w\" data-sizes=\"(max-width: 2996px) 100vw, 2996px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2996px; --smush-placeholder-aspect-ratio: 2996\/1778;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1328 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-21.png\" alt=\"\" width=\"2979\" height=\"1782\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-21.png 2979w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-21-300x179.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-21-768x459.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-21-1024x613.png 1024w\" data-sizes=\"(max-width: 2979px) 100vw, 2979px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2979px; --smush-placeholder-aspect-ratio: 2979\/1782;\" \/><\/p>\n<p>For item 5 I am using a shape file that I generated in QGIS. So see below for the explanation of how that was created\/saved.<\/p>\n<p>Also, in the <a href=\"https:\/\/www.youtube.com\/watch?v=XQEXI90x6Gg&amp;feature=youtu.be\">video at the start<\/a>, it shows how he uses a plugin in postgres&nbsp; to import a SHP file into postGIS database (into a new table). I am still figuring all this out.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1326 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-23.png\" alt=\"\" width=\"2889\" height=\"1639\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-23.png 2889w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-23-300x170.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-23-768x436.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-23-1024x581.png 1024w\" data-sizes=\"(max-width: 2889px) 100vw, 2889px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2889px; --smush-placeholder-aspect-ratio: 2889\/1639;\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>openMAINT Administration Module<\/h3>\n<p>So, as far as setting up goes, I have done a preliminary setup , and on the Administration panel I have, the map.<\/p>\n<p>Unfortunately I cannot stick pins into it. So map with no content.<\/p>\n<p>The&nbsp; main tab has a map icon in the top right corner now.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1327 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-22.png\" alt=\"\" width=\"3000\" height=\"1793\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-22.png 3000w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-22-300x179.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-22-768x459.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-22-1024x612.png 1024w\" data-sizes=\"(max-width: 3000px) 100vw, 3000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 3000px; --smush-placeholder-aspect-ratio: 3000\/1793;\" \/><\/p>\n<p>clicking on the map icon shows you the map and a data box to the right with 3 tabs.<\/p>\n<p>Where the map icon was is a grid with list, click on that and it takes you back to the previous image.<\/p>\n<p>The thematism next to the the list icon. See this <a href=\"https:\/\/youtu.be\/pJek0l-o_UM\">video from CMDBuild<\/a> where they talk about it ( go to about 15 minutes into the video)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1334 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-26.png\" alt=\"\" width=\"2995\" height=\"1780\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-26.png 2995w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-26-300x178.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-26-768x456.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-26-1024x609.png 1024w\" data-sizes=\"(max-width: 2995px) 100vw, 2995px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2995px; --smush-placeholder-aspect-ratio: 2995\/1780;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1335 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-25.png\" alt=\"\" width=\"2999\" height=\"1832\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-25.png 2999w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-25-300x183.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-25-768x469.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-25-1024x626.png 1024w\" data-sizes=\"(max-width: 2999px) 100vw, 2999px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2999px; --smush-placeholder-aspect-ratio: 2999\/1832;\" \/><\/p>\n<p>The 3 tabs are shown in these 3 images, I&#8217;m still trying to figure out what they mean.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1332 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-24.png\" alt=\"\" width=\"2995\" height=\"1811\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-24.png 2995w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-24-300x181.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-24-768x464.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-24-1024x619.png 1024w\" data-sizes=\"(max-width: 2995px) 100vw, 2995px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2995px; --smush-placeholder-aspect-ratio: 2995\/1811;\" \/><\/p>\n<p>So, at this point, I have a map in openMAINT without any map icons in the map relating to my buildings. Note, as I deleted my original database setup currently I have basic openMAINT data but have not got shark workorders or Alfresco running in this instance.<\/p>\n<p>This is fine at present, as I am just trying to understand the GIS part, but it all needs to come together so all components work.<\/p>\n<h3>Geoserver, part 2. Connecting to postGIS schema<\/h3>\n<p>Now I want to go and look at some of the Geoserver items.<\/p>\n<p>As I was trying to figure the map in openMAINT out I came across information about Geoserver. I am still not sure if its needed for pins in map, or if its only used for overlaying Vector information (rooms\/plans etc) onto the map, but as this is all part of the GIS stuff I will put down what I have found.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1349 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-28.png\" alt=\"\" width=\"2968\" height=\"1834\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-28.png 2968w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-28-300x185.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-28-768x475.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-28-1024x633.png 1024w\" data-sizes=\"(max-width: 2968px) 100vw, 2968px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2968px; --smush-placeholder-aspect-ratio: 2968\/1834;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1348 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-29.png\" alt=\"\" width=\"3000\" height=\"1228\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-29.png 3000w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-29-300x123.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-29-768x314.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-29-1024x419.png 1024w\" data-sizes=\"(max-width: 3000px) 100vw, 3000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 3000px; --smush-placeholder-aspect-ratio: 3000\/1228;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1347 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-30.png\" alt=\"\" width=\"2978\" height=\"1797\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-30.png 2978w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-30-300x181.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-30-768x463.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-30-1024x618.png 1024w\" data-sizes=\"(max-width: 2978px) 100vw, 2978px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2978px; --smush-placeholder-aspect-ratio: 2978\/1797;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1346 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-31.png\" alt=\"\" width=\"2693\" height=\"1406\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-31.png 2693w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-31-300x157.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-31-768x401.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-31-1024x535.png 1024w\" data-sizes=\"(max-width: 2693px) 100vw, 2693px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2693px; --smush-placeholder-aspect-ratio: 2693\/1406;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1345 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-32.png\" alt=\"\" width=\"2469\" height=\"1534\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-32.png 2469w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-32-300x186.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-32-768x477.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-32-1024x636.png 1024w\" data-sizes=\"(max-width: 2469px) 100vw, 2469px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2469px; --smush-placeholder-aspect-ratio: 2469\/1534;\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-1344 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33.png\" alt=\"\" width=\"2499\" height=\"1500\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33.png 2499w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33-300x180.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33-768x461.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33-1024x615.png 1024w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-33-2000x1200.png 2000w\" data-sizes=\"(max-width: 2499px) 100vw, 2499px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2499px; --smush-placeholder-aspect-ratio: 2499\/1500;\" \/><\/p>\n<h3>QGIS.<\/h3>\n<p>Within the whole GIS area there is a lovely programme called QGIS, which is a pretty impressive programme that is free. <a href=\"https:\/\/max-drake.cc\/mapping-condition-over-time-part-1\/\">I had played with it before for another exercise<\/a>.<\/p>\n<p>Download it<a href=\"https:\/\/qgis.org\/en\/site\/\"> here<\/a>. A basic beginners guide to QGIS <a href=\"https:\/\/www.youtube.com\/watch?v=aLmMovuydqI\">here<\/a>.&nbsp; <em>I focused on layers, saving them and points (for putting flags in openMAINT) and saving SHP files.<\/em><\/p>\n<p>My objective with this programme was to create some coordinates and save them to a SHP file that I could either download into Geoserver or postGIS.<\/p>\n<p>This was successful. I created the data, it may be a bit limited and I may need to develop it further, but the zipped file can be downloaded <a href=\"http:\/\/vast.tk\/data\/points1.zip\">here<\/a>.<\/p>\n<p>Although I got the shape file into Geoserver &amp; postGIS I still was not able to have a point on the map with a flag\/icon on it. This is for a future blog. A bit more research required.<\/p>\n<p><em>Beware. Because this is a pretty sophisticated programme it needs a bit of power from the computer, so if you have a light computer it will be slow.<\/em><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1343 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27.png\" alt=\"\" width=\"2005\" height=\"1896\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27.png 2005w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27-300x284.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27-768x726.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27-1024x968.png 1024w\" data-sizes=\"(max-width: 2005px) 100vw, 2005px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2005px; --smush-placeholder-aspect-ratio: 2005\/1896;\" \/><\/p>\n<h3>Conclusion<\/h3>\n<p>At the end of this we have done the following actions:<\/p>\n<ol>\n<li>Reinstalled the postgreSQL database and postGIS add-in<\/li>\n<li>Made a postGIS set of extensions (7) for a total of 8 extensions in postgreSQL<\/li>\n<li>Used QGIS to create a SHP dataset of points that can be saved as a file<\/li>\n<li>Have Map working in OpenMAINT after a basic configuration<\/li>\n<li>Have Geoserver connected to postGIS schema? or are we linked to the database?<\/li>\n<\/ol>\n<p>What we haven&#8217;t got working, at this point because of the test environment focusing on the GIS<\/p>\n<ol>\n<li>Shark &amp; Alfresco, as we rebuilt the database<\/li>\n<li>Icons on the map in openMAINT related to the building that we want to associate it with.<\/li>\n<\/ol>\n<p>So in reality, we haven&#8217;t got too far at all. Hopefully the next installment will answer a few more questions.<\/p>\n<p>I would like to point bout that there is nothing in the openMAINT or CMDBuild about the extension requirements of postGIS in the postgreSQL database. They really are not a helpful bunch of people. I honestly do not understand why they are calling this open source if they do not give you the fundamentals to set it up. I believe that the university set this up, not tecnoteca, so they are just maintaining it to their own advantage.<\/p>\n<p>What is getting my head scratching is why is there NOT a simple Longitude\/Latitude cell to put in coordinates of the building? Floor?Room?Component?<\/p>\n<p>Do we need to create these attributes? they should logically just be in there.<\/p>\n<p>Another test I could do is to take the original database DEMO and install it to see if there are Longitude\/Latitude attributes to fill in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;Part 2. At the end of part 1 I was left with openMAINT not recognising postGIS. At the end of part 2 I have the map in openMAINT, but no building icon on the map, or plan of building either, but there is a progression. After configuring openMAINT as per the CMDBuild documentation, I decided [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1343,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,9],"tags":[16,112,113,53,54,145,144,114,143,146],"class_list":["post-1310","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-maps","category-openmaint-assettiger","category-openmaint-setup","tag-amfm-data-management","tag-cafm","tag-cmms","tag-facility-management","tag-facility-operations","tag-geoserver","tag-gis","tag-iwms","tag-openmaint-gis","tag-qgis"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27.png","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/12\/om-27.png","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/1310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1310"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/1310\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/1343"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}