From ahmettemiz88 at gmail.com Mon Sep 10 10:22:33 2018 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Mon, 10 Sep 2018 20:22:33 +0300 Subject: [OWSLib-users] Wms or wcs for raster analyses? Message-ID: Hi, I am confused on choosing between wms or wcs for further raster analyses with gdal or rasterio I will appreciate if you give me an advice. Regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomkralidis at gmail.com Mon Sep 10 11:02:17 2018 From: tomkralidis at gmail.com (Tom Kralidis) Date: Mon, 10 Sep 2018 20:02:17 +0200 Subject: [OWSLib-users] Wms or wcs for raster analyses? In-Reply-To: References: Message-ID: <383C81E7-312B-4019-800A-A56E7C302CF2@gmail.com> You would use WCS. WMS provides images of data used primarily for visual purposes. ..Tom Sent from my iPhone > On Sep 10, 2018, at 19:22, Ahmet Temiz wrote: > > Hi, > > I am confused on choosing between wms or wcs for further raster analyses with gdal or rasterio > I will appreciate if you give me an advice. > > Regards > > > -- > Ahmet Temiz > Jeoloji Müh. > Afet ve Acil Durum Yönetimi Başkanlığı > Bilgi İşlem Dairesi Başkanlığı-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > _______________________________________________ > OWSLib-users mailing list > OWSLib-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/owslib-users From ahmettemiz88 at gmail.com Tue Sep 11 01:53:10 2018 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 11 Sep 2018 11:53:10 +0300 Subject: [OWSLib-users] problem in owslib-wcs Message-ID: Hi, I am very new for owslib. I try owslib - wcs . I followed this procedure. url =' http://localhost:8080/?map=/maps/wcs1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=ivm&CRS=EPSG:3857&BBOX=4557613.741389,4574927.875099,4989786.191152,5176940.449967&WIDTH=319&HEIGHT=283&FORMAT=GTiff ' wcs = w(url=url) ivm = wcs['ivm'] print (ivm) print (wcs.identification.type) print (wcs.identification.title) print (wcs.contents) bbox='4557613.741389,4574927.875099,4989786.191152,5176940.449967' gc = wcs.getCoverage(identifier='GMap WCS Demo Server',bbox=bbox,crs='EPSG:3857',format='GeoTIFF' , WIDTH=319, HEIGHT=283 , resx=100.0, resy=100.0) it gives : OGC:WCS GMap WCS Demo Server {'ivm': } type(gc) >> b'\nMapServer Message\n\n\nmsCGILoadMap(): Web application error. CGI variable "map" is not set.\n' Can you tell me what I am doing wrong? This request works on QGIS. regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpass at bgs.ac.uk Tue Sep 11 04:50:12 2018 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Tue, 11 Sep 2018 11:50:12 +0000 Subject: [OWSLib-users] problem in owslib-wcs In-Reply-To: References: Message-ID: The URL for your service should be: http://localhost:8080/?map=/maps/wcs1.map& So something like below should give you results: import owslib.wcs as wcs my_service = "http://localhost:8080/?map=/maps/wcs1.map&" w = wcs.WebCoverageService(my_service, version='1.0.0') # Get a list of all the coverages in the service print(list(w.contents)) James From: OWSLib-users On Behalf Of Ahmet Temiz Sent: 11 September 2018 09:53 To: OWSLib-users at lists.osgeo.org Subject: [OWSLib-users] problem in owslib-wcs Hi, I am very new for owslib. I try owslib - wcs . I followed this procedure. url ='http://localhost:8080/?map=/maps/wcs1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=ivm&CRS=EPSG:3857&BBOX=4557613.741389,4574927.875099,4989786.191152,5176940.449967&WIDTH=319&HEIGHT=283&FORMAT=GTiff' wcs = w(url=url) ivm = wcs['ivm'] print (ivm) print (wcs.identification.type) print (wcs.identification.title) print (wcs.contents) bbox='4557613.741389,4574927.875099,4989786.191152,5176940.449967' gc = wcs.getCoverage(identifier='GMap WCS Demo Server',bbox=bbox,crs='EPSG:3857',format='GeoTIFF' , WIDTH=319, HEIGHT=283 , resx=100.0, resy=100.0) it gives : OGC:WCS GMap WCS Demo Server {'ivm': } type(gc) >> b'\nMapServer Message\n\n\nmsCGILoadMap(): Web application error. CGI variable "map" is not set.\n' Can you tell me what I am doing wrong? This request works on QGIS. regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ________________________________ This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Fri Sep 14 11:41:30 2018 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Fri, 14 Sep 2018 21:41:30 +0300 Subject: [OWSLib-users] problem in owslib-wcs In-Reply-To: References: Message-ID: Thank you James, I checked the mapserver for layer name. And bbox would not be string. Instead will have to be list type. Now, it worked ( faster than I expected). On Tue, Sep 11, 2018 at 11:53 AM Ahmet Temiz wrote: > Hi, > > I am very new for owslib. > I try owslib - wcs . I followed this procedure. > > url =' > http://localhost:8080/?map=/maps/wcs1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=ivm&CRS=EPSG:3857&BBOX=4557613.741389,4574927.875099,4989786.191152,5176940.449967&WIDTH=319&HEIGHT=283&FORMAT=GTiff > ' > > wcs = w(url=url) > ivm = wcs['ivm'] > > print (ivm) > > print (wcs.identification.type) > print (wcs.identification.title) > print (wcs.contents) > > bbox='4557613.741389,4574927.875099,4989786.191152,5176940.449967' > gc = wcs.getCoverage(identifier='GMap WCS Demo > Server',bbox=bbox,crs='EPSG:3857',format='GeoTIFF' , WIDTH=319, HEIGHT=283 > , resx=100.0, resy=100.0) > > it gives : > > OGC:WCS > GMap WCS Demo Server > {'ivm': } > type(gc) >> > b'\nMapServer Message\n\n BGCOLOR="#FFFFFF">\nmsCGILoadMap(): Web application error. CGI variable > "map" is not set.\n' > > Can you tell me what I am doing wrong? This request works on QGIS. > > regards > > -- > Ahmet Temiz > Jeoloji Müh. > Afet ve Acil Durum Yönetimi Başkanlığı > Bilgi İşlem Dairesi Başkanlığı-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.kralidis at gmail.com Wed Sep 19 09:32:05 2018 From: tom.kralidis at gmail.com (Tom Kralidis) Date: Wed, 19 Sep 2018 12:32:05 -0400 Subject: [OWSLib-users] OWSLib 0.17.0 released Message-ID: The OWSLib team announces the release of OWSLib 0.17.0. OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models. This release provides numerous fixes, enhancements and re-engineering of OWSLib's test framework. Thank you for all the contributions leading up to this release. Special thanks goes to Carsten Ehbrecht for taking charge and moving OWSLib forward on testing and numerous other areas. Thanks to Carsten's leadership we now have a more robust testing framework! Source and binary downloads --------------------------------------- The source code is available at https://github.com/geopython/OWSLib The package has been uploaded to https://pypi.python.org/pypi/OWSLib 0.17.0 (2018-09-19) -------------------------- A full list of commits for 0.17.0 can be found at: https://github.com/geopython/OWSLib/commits/0.17.0 - NEW: OWS Context implementation (allixender ) - ISO: - Added MD_LegalConstraints to uselimitation xpath (m431m) - Fix ISO metadata parsing for empty gmd:featureCatalogueCitation. (Roel) - OWS: - Improve remote metadata parsing (Roel) - Allow the lack of optional ows:ServiceProvider (mhugo) - WPS: - add headers, cert options (cehbrecht) - add lineage to execute (cehbrecht) - WMTS/TMS: replaced ServiceMetadata (cehbrecht) - SOS: fix encoding error (cehbrecht) - tests: move away from doctests (cehbrecht) - overall codebase: move from pep8 to flake8 Testers and developers are always welcome. The OWSLib developer team. From ahmettemiz88 at gmail.com Sat Sep 22 07:56:22 2018 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Sat, 22 Sep 2018 17:56:22 +0300 Subject: [OWSLib-users] webcoverage to gdal_array Message-ID: Hi, I got data using WCS gc = w.getCoverage(identifier='ivm',bbox=rBBOX,crs=rCRS,format='GTiff' , WIDTH=319, HEIGHT=283 , resx=100.0, resy=100.0) Then I have to convert gc to gdal_array without saving to any tif file to system. Can you give me any idea? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: