Posts

Showing posts from January, 2018

OGC CSW query examples

Image
Sometimes you need to talk machine talk to find out what data is available in a public OGC CSW compliant service. First you need to examine the GetCapabilities request response. After that you may want to know how many records are in a particular CSW catalogue. You can do that by using this query: <?xml version="1.0" encoding="UTF-8"?> <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2"  resultType=" hits ">   <csw:Query typeNames="csw:Record">   </csw:Query> </csw:GetRecords> NOTE: I highlighted the resultType because that is what determines the type of the response that you get from the service. It tells the service that you want to know the number of the results that match your query and because the query is empty it will be all records. In SQL this would look something like select count(*) from table. Then you may want to d

Self signed certificate and ssl with nginx

These pages are very useful if you want to setup https with nginx and use self signed certificates. Nginx official doc: http://nginx.org/en/docs/http/configuring_https_servers.html Tutorials: https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-nginx-for-ubuntu-14-04 https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-16-04