7
votes
Accepted
Open raster file with GDAL on google cloud storage bucket returns None
GCS buckets are implemented as a GDAL virtual filesystem, so you'll want to update the filepath to:
gdal.Open('/vsigs/my-bucket/1.tif')
But as @Kartograaf mentions, you may also need to set some ...
6
votes
Is it possible to install GeoServer On Google Cloud?
It can be done by using a pre-defined Geoserver Docker container.
Investing the time to learn Docker is really worthwhile as it allows you to stand up and replace your cloud Geoserver instances very ...
4
votes
Accepted
Downloading Sentinel-2 data from Google Cloud Storage with Python?
I was able to achieve it using the module google-cloud-bigquery.
You need a Google Cloud BigQuery key-file for this, which you can create by following these instructions. You also need a project from ...
4
votes
Accepted
Deploy GeoServer inside Apache Tomcat in Google Cloud Platform
Edit the Tomcat webapps/manager/WEB-INF/web.xml file, change the section like
<multipart-config>
<max-file-size>52428800</max-file-size>
<max-request-size>52428800</...
4
votes
Accepted
Google BigQuery error: "Invalid polygon: edge crosses edge"
BigQuery can now repair such polygons too, see make_valid argument to st_geogfromgeojson.
https://cloud.google.com/bigquery/docs/reference/standard-sql/geography_functions#st_geogfromgeojson
And here ...
3
votes
Accepted
Importing imagery from Google Cloud Buckets to Earth Engine
You can add them to a collection, but only by calling the createAsset endpoint yourself. https://developers.google.com/earth-engine/Earth_Engine_asset_from_cloud_geotiff
3
votes
Accepted
Importing image into Google Colab as Earth Engine asset from Google cloud storage
You cannot access imagery from Cloud Storage directly, you have to upload them as assets first. This post show how you can do that from Colab:
!earthengine --no-use_cloud_api upload image --asset_id={...
3
votes
Accepted
Getting CURL error when using rasterio on Google App Engine
rasterio 1.1.8 now depends on certifi:
- If the certifi package can be imported, its certificate store location will be passed to GDAL during import of rasterio._env
unless CURL_CA_BUNDLE is ...
3
votes
Accepted
Using Google BigQuery GIS table as a data source to QGIS
There were two solutions people described using in BQGIS group,
https://groups.google.com/d/topic/bq-gis-feedback/4lQ60053N0I/discussion
One is import plugin for QGIS,
https://github.com/unacast/...
2
votes
Read files with Python GDAL using VSIGS
Rasterio added support for gcs urls in version 1.0.15. If you're working with a recent version you can now use the following:
import rasterio
import os
#can also set these as a normal env var ...
2
votes
Accepted
Where are the GeoServer HTTP logs on Jetty server?
Jetty does support logging http requests with the requestlog module since version 9.4.15 https://www.eclipse.org/jetty/documentation/current/configuring-jetty-request-logs.html. GeoServer 2.18 bin-zip ...
2
votes
Accepted
How to get the bounding box (MultiPolygon) of a geographic region?
BigQuery has a few public datasets, including US counties, that you can directly use.
SELECT geo_id, state_fips_code, county_name, county_geom
FROM `bigquery-public-data.geo_us_boundaries.counties`
...
2
votes
Accepted
Error in exporting table from Python API service account-- Asset does not exist or doesn't allow this operation
Because you are authenticated with a service account, you cannot export assets to a personal account. You need to authenticate with your personal account.
2
votes
Earth Engine: understanding the new "cloud project" feature
This is not a fair representation of the project feature. I'll reproduce the original announcement for reference:
We are pleased to announce that you can now use Earth Engine with
Google Cloud ...
2
votes
Importing imagery from Google Cloud Buckets to Earth Engine
Six years later and Noel's answer is still true. See this link for an example:
https://developers.google.com/earth-engine/guides/ic_creating
// All the GeoTiffs are in this folder.
var uriBase = 'gs://...
1
vote
Download images to Google Cloud Storage using geemap.download_ee_image_tiles
I believe you should be able to set out_dir to gs://bucket-name/path/on/gcs or possibly /vsigs/bucket-name/path/on/gcs that way GDAL will understand the destination is not a local file. Otherwise I ...
1
vote
Accepted
Loading geospatial data from GCS to BQ - JSON parsing error
I think your BigQuery schema should have just one line, name - geometry, type - Geography.
The value for geometry field is a string, note the value is quoted:
"geometry": "{\"type\&...
1
vote
Issue using pyModis.createMosaicGDAL() on Debian
I managed to sort things out. As I suspected, the issue had to do with GCP.
If it helps anyone else out there, the slowing was due to the slow IO on the GCP disks. The speed depends on the type of ...
1
vote
Is there any STAC catalog available for Sentinel-2 data on Google Cloud?
Here you can find a list of public STAC Catalogs and there is the Google Earth Engine STAC Catalog here.
1
vote
Accepted
How can filter low cloud coverange in a region with Sentinel-2 L2A in GEE?
I've been struggling with this too. What worked for me was doing the filtering on the s2SrWithCloudMask before you turn it into an imageCollection. I also made a filter function to map to the ...
1
vote
Google BigQuery error: "Invalid polygon: edge crosses edge"
This kind of topological error can creep into a dataset depending upon how the data was created. A self intersection can be fixed using the Repair geometry tool in ArcMap.
Here is a polygon with a ...
1
vote
Accepted
Unable to export Testing and Training data as TFRecord using Google Earth Engine
An out of memory error depends on how much data you're processing. If a lot of data and processing goes into creating cloudFree, you might want to export it as an asset before doing the sampling. That ...
1
vote
How can I export images with their metadata from Google Earth Engine to Google Cloud Storage?
you could for example export a CSV file. This gives a file with the properties of the image and their corresponding values?
Export.table.toCloudStorage({
collection: ee.FeatureCollection([...
1
vote
Accepted
Querying polygon data imported from Google BigQuery GIS within R
Looks like R package does not understand and fails when it sees Geography type.
SELECT *, ST_ASTEXT(wkt) AS Geometry ... is good path, but you also need to exclude all Geography columns from query, ...
1
vote
Difference between Landsat-8 data in Earth Engine data catalog and Cloud collections?
The visualisation that you see in the code is so that it can better be represented on the map. However the data structure is still the same in both cases.
Here is the structure of 'B4'
data_type: ...
1
vote
Accepted
Manipulating polygon data imported from Google BigQuery GIS within R
If you row-bind together the list that you get when reading GeoJSON feature strings with read_sf together you get an sf data frame:
> do.call(rbind, lapply(d$geom,read_sf))
Simple feature ...
1
vote
Downloading Sentinel-2 data from Google Cloud Storage with Python?
There are about two types of manifest.safe. One is for online_path = line[7:line.find('><') - 2], the other is for online_path = line[7:line.find('><')]. For convenience, I get online_path ...
1
vote
Downloading Sentinel-2 data from Google Cloud Storage with Python?
This script worked for me after I removed "-2" in the line online_path within the function make_safe_dirs:
online_path = line[7:line.find('><')]
1
vote
Read files with Python GDAL using VSIGS
Following @metasequoia's suggestion, I'm posting the workaround I found for this issue. This doesn't actually answer the question since it relies on rasterio instead of GDAL, but it might help other ...
1
vote
Integrating Vector/Raster in Google Cloud Storage in QGIS
The Google Cloud Storage stores an object of any file type, You store objects in containers called buckets that you've created, example:
Bucket name - gs://mybucket
Object name - gs://mybucker/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-cloud × 44google-earth-engine × 18
python × 6
qgis × 4
gdal × 4
geoserver × 4
sentinel-2 × 4
google-earth-engine-javascript-api × 4
geojson × 3
export × 3
google-earth-engine-python-api × 3
geemap × 3
r × 2
sql × 2
google × 2
node-js × 2
tensorflow × 2
raster × 1
postgis × 1
qgis-3 × 1
javascript × 1
openstreetmap × 1
geotiff-tiff × 1
google-maps × 1
installation × 1