Find the geonetwork database. This is a file called gn.h2.db but where it lives is dependent on what webserver you are using.
On windows the path should not have colons in it- eg C:\path\to\database will look like C/path/to/database
Find the geonetwork database. This is a file called gn.h2.db but where it lives is dependent on what webserver you are using.
On windows the path should not have colons in it- eg C:\path\to\database will look like C/path/to/database
| net localgroup > C:\tmp\localgroups.txt | |
| add multiple groups from a list (admin command prompt): | |
| FOR /f %G IN (D:\Astun\gislocalgroups.txt) DO NET LOCALGROUP %G /COMMENT:"iShareGIS local group %G" /ADD | |
| add user to all groups: | |
| FOR /f %G IN (D:\Astun\gislocalgroups.txt) DO NET LOCALGROUP %G username /ADD |
| # Extract gml files | |
| find -type f -iname '*.gz' -exec gunzip --force --keep '{}' \; | |
| # Update gml so ogr can read it | |
| find -type f -iname '*.gml' -exec sed -i -e 's/os:Transaction/os:FeatureCollection/' -e 's/os:insert/os:featureMember/' '{}' \; | |
| # Have ogr create default .gfs files for each gml | |
| find -type f -iname '*.gml' -exec ogrinfo -ro -so '{}' \; | |
| I think you'll need to update your ogr_cmd, replace $file_path with /vsigzip/$file_path |
| ## basic setup | |
| git clone https://github.com/geonetwork/core-geonetwork.git core-geonetwork32 | |
| cd core-geonetwork32 | |
| git checkout 3.2.x | |
| git submodule init | |
| git submodule update | |
| ## cherry-pick fixes for ol3 | |
| git cherry-pick 8d9db018535caf3331ac26dd0fb2af6bb9e2e3a8 |
| ## basic setup | |
| git clone https://github.com/geonetwork/core-geonetwork.git core-geonetwork32 | |
| cd core-geonetwork32 | |
| git checkout 3.2.x | |
| git submodule init | |
| git submodule update | |
| ## cherry-pick fixes for ol3 | |
| git cherry-pick 8d9db018535caf3331ac26dd0fb2af6bb9e2e3a8 |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc.
| Open rivers needs startnode and endnode converting to integer (currently double, but that's not needed) | |
| Open roads- all identifiers for start node and end node are suffixed with an L, why? Can't convert to integer as will lose the leading 0's |
| #!/bin/sh | |
| gitbook build /path/to/markdown --output=/path/to/markdown/_book | |
| cd /path/to/markdown/_book | |
| git init | |
| git commit --allow-empty -m 'update book' | |
| git checkout -b gh-pages | |
| touch .nojekyll | |
| git add . | |
| git commit -am "update book" |