Hot answers tagged

7 votes
Accepted

TypeError when converting shapefiles to KMLs using PyQGIS

According to the documentation the first argument should be a QgsVectorLayer, which is why you are getting the unexpected type error. You are also missing the QgsCoordinateReferenceSystem parameter. ...
  • 10.5k
6 votes
Accepted

Converting Pandas column with featurecollection to GeoJSON

You can use the following code. Just specify json_string_column and output file path. import json import pandas as pd import geopandas as gpd # df = YOUR DATAFRAME json_string_column = "...
3 votes

What format is this geometry and how to convert it into a shapefile?

This is the format from Oracle Spatial SDO_Geometry the data is organized this way: {SDO_GTYPE, SDO_SRID,SDO_POINT,SDO_ELEM_INFO[],SDO_ORDINATES[]}
1 vote
Accepted

Convert JSON data to geometry

This is a great opportunity to try out some python. This script will convert your json columns into 2 new columns - 1 for the centroid wkt (the lat/lng part of the json) and 1 column for the poly wkt....
  • 6,705
1 vote

Calculate TMS tile coordinates (XYZ) for a given Lat/Lng pair in EPSG:27700 projection?

One possible way to get tile (x, y, z) coordinates for specific [lat, lng] coordinate and specific projection is to 'misuse' generic Leaflet L.TileLayer layer and 'tileload' layer event. Procedure ...
  • 19.7k
1 vote

Converting a raster file to a format supported by QField

See Documentation on supported data types and advice on raster formats here https://docs.qfield.org/reference/data-format/
  • 1,178
1 vote

Convert datum of elevation data in PostGIS

You will need to inject PROJ_NETWORK set to ON into your PostgreSQL start-up environment. And your PostgreSQL user will need write access to its home directory probably too. See https://proj.org/usage/...
  • 19.6k

Only top scored, non community-wiki answers of a minimum length are eligible