Questions tagged [geography]

Geography is the science that deals with the study of the Earth and its lands, features, inhabitants, and phenomena.

Filter by
Sorted by
Tagged with
0 votes
2 answers
26 views

How do I cast a geometry type for mixed geometries (polygons & multipolygons) in 4326? `::geometry(4326) as shape` doesn't work

I'd like to update the geometry definition to include a specific SRID CREATE MATERIALIZED VIEW published.ql_cmd_cruise_layer_web TABLESPACE pg_default AS SELECT ql_cmd_cruise_layer_web.cruise_id, ...
0 votes
0 answers
43 views

Collecting the Distance between locations by city and state name

I am writing a set of python files that overall, collects the distances between two locations by citystatename and writes it as a dataframe as follows. cleveland,ohio --> south bend,indiana --> ...
0 votes
1 answer
81 views

Cross-platform solution to do geography calculations

I'm working on migrating a .Net framework application to .Net Core and I need to support running on Linux. The application needs to calculate the intersection of polygons and very long lines on the ...
  • 3,143
0 votes
0 answers
43 views

GGPLOT2 how to fill areas?

how can I fill with a solid color a area in a geographical map if the value in that area is within a certain interval of values? I'm using this right_join(prov2022, df, by = "COD_PROV") %>...
  • 169
0 votes
1 answer
38 views

Bigquery load_table_from_uri fails to insert MULTIPOLYGONS as a WKT format

I am trying to INSERT multipolygon into a BigQuery table from a CSV file. My MULTIPOLYGON is properly formed. All multipolygon with a single polygon are inserted properly, however, if I have 2 or more ...
1 vote
0 answers
46 views

Python basemap - struggling with putting a basemap on top of a satellite image

I have a satellite image taken from NWC-SAF of a certain region of the world, and 2 ndarrays that holds data about the latitudes and longitudes values of each pixel. I try to use this information and ...
  • 11
0 votes
0 answers
54 views

installing uber H3 library in google script [duplicate]

is there someone that could help me in installing uber h3 library in google script? I'm trying to implement a function that transform a couple of coordinate into an H3_9 geometry, I'm able to do it in ...
  • 29
1 vote
1 answer
82 views

How to plot circle with radius depending of a feature attribute with sf package?

I have these data representing coordinates on a map and a value for each point: require(tidyverse) df <- tribble( ~ x, ~ y, ~ N, 776025., 6990858., 100, ...
  • 1,662
0 votes
0 answers
38 views

How to calculate Moran's I and GWR when given duplicated factor data

I'm trying to do the statistical analysis by using the Moran's I, but it leads me into a serious problem. Suppose the data look like: y indep1 indep2 coord_x coord_y District y1 indep1 1 indep2 1 ...
1 vote
0 answers
65 views

What are common GIS filters that would be used in a spreadsheet-like interface

I have a spreadsheet-like application where a column may be a GEOGRAPPHY type, for example something like POINT(1 1). I haven't used GIS too much personally, and so was curious what is the most common ...
  • 107k
1 vote
0 answers
44 views

"tile_dimensions" error in Google Earth Engine

I'm trying to export the images in TFRecords format in Google Earth Engine and I got the "tile_dimensions must be specified for TfRecord export" error: Here is the code: var Regoin= ...
0 votes
0 answers
19 views

com.google.android.gms:play-services-vision not functioning in Sudan

We have a few Android apps that utilize com.google.android.gms:play-services-vision OCR library and it seem to work fine in many countries, but for some odd reason is not activated in Sudan. The app ...
1 vote
1 answer
40 views

SqlGeography does not implement IComparable interface, preventing DataSet.RejectChanges() from succeeding

I'm working on an Enterprise application that has an SQL backend, and uses System.Data.DataSet etc to represent that data in C#. Previously we turned the SqlGeography into DbGeography before putting ...
  • 21.4k
0 votes
0 answers
12 views

Pandas read_csv truncating 0s in zip code [duplicate]

I am reading in a csv file of geographies. In the actual csv file, all zip codes are 5 digits. However, when I read it using pd.read_csv, all 0s are truncated from the zip code (00834 becomes 834). I ...
1 vote
1 answer
65 views

SQL Server Geography Data Type - why do two separate Polygons Intersect?

I have two geometry variables and I want to find out if they intersect. My first variable is called @orderBounds2. DECLARE @orderBounds2 geography I set it to a value set @orderBounds2 = ...
0 votes
0 answers
105 views

How to convert WGS84 lat/long to UTM coordinates on Android?

I have LatLong objects and I want to convert them to UTM coordinates. I haven't been able to find any library that works with android. Is there any way to do this accurately in android?
  • 109
0 votes
0 answers
141 views

Plot a vector field over earth coordinate map using python

End goal: Plot of the vector field of earth's magnetic field over a part of a city map using python Prerequisites: I have taken measurements of earth's magnetic field at multiple points in the area ...
1 vote
1 answer
105 views

Appending multiple nested lists to a dataframe in R

I have a list of ambiguous addresses that I need to return full geocode information for. Only issue is that what I get is a large list of nested lists (JSON) I want to be able to get a data frame ...
  • 91
1 vote
0 answers
19 views

Progress bar in GWR in R language?

when i start a gwr process (in various libraries) i have to wait until it is done. But there is no indication (e.g progress bar or % completion indicator) as to where the processing is? for example I ...
0 votes
2 answers
93 views

Geography function over a column

I am trying to use the st_makeline() function in order to create lines for every points and the next one in a single column. Do I need to create another column with the 2 points already ? with t1 as( ...
1 vote
1 answer
175 views

convert coordinates into a point on an image in python

I have this map: and this coordinates: lat: 42.60537919708604 lon: -96.8791615271999 I would like to make a point on the map using python, anyone knows how to do that? ( on windows, would be nice if ...
2 votes
1 answer
2k views

Folium marker dimension

I would like to resize the marker of folium on a map Here the snipped I'm using for i in range(0,len(destinations)): folium.Marker( location=[destinations.iloc[i][' Lat dest'], destinations....
  • 161
0 votes
1 answer
73 views

Incorrect coordinates when converting shapefile with shp2pgsql

I have a shapefile of NYS legislative districts that seems to be formatted in the GCS_North_American_1983 coordinate system, and I want to put this in a postgres database in latitude/longitude format. ...
1 vote
0 answers
84 views

How to create segment to predict income or age using Machine Learning models

I am working on a project where I need to create segments using geography data like Geo key, Latitude, and Longitude. The segments should predict the average income per geo key. The data I have has ...
0 votes
0 answers
23 views

Dealing with exclaves in R tmap

I have a shapefile that includes an exclave (area that is not connected to the continuous main part), which causes the map to look like this I tried to work around it by creating a dummy variable for ...
0 votes
1 answer
127 views

Is there a function to convert coordinates to a list of coordinates creating a circular polygon?

Example code: def circle_to_polygon(coordinates, radius, edge_count): list = [[1,2],[3,4],[5,6],[7,8],[9,10]] return list Basically I need to create a polygon with a specific radius around a ...
0 votes
0 answers
49 views

convert geography to long and lat

I have a Geography Polygon string in SQL, I want to convert to lat and long, however I used below code, it gives me null for both lat and long. SELECT Polygon.Lat 'Latitude', Polygon.Long '...
  • 339
-1 votes
1 answer
85 views

Dataset containing countries ISO codes and images of their borders

Looking for a dataset which would contain all countries with images of their borders without any text data on it. This is closest to what I want https://www.geoboundaries.org/index.html#tabs1-css ...
1 vote
1 answer
390 views

Get centroid coordinates of a given country in BigQuery

In BigQuery, given a country in ISO-2 code I need to get its centroids coordinates (lat and long). There is a way to do this? Looking into the geography functions of BQ I did not find a way.
  • 45
0 votes
2 answers
194 views

How to draw random points from KML Multigeometry or at least Polygons?

I would like to draw random coordinates inside KML countries shapes made from Multigeometry & Polygons. I tried to get random points of states from different online APIs, such as 3geonames, but ...
  • 682
0 votes
0 answers
105 views

How can I make a U.S. map with cities represented as dots?

I have a list of 50 cities that I want to plot on a map in Stata. The data is in csv format and looks like this: New York city New York Los Angeles city California Chicago city Illinois ...
2 votes
1 answer
673 views

C# - Converting xyz tile to lat/long and vice-verse giving different results

I tried converting lat/long to XYZ tile and again using the XYZ values trying to get back the lat/long. The values of lat/long are not the same (the original one and the converted one). I referred to ...
0 votes
0 answers
92 views

Checking for intersection between an area and a set of points with heterogeneous geographical data

I have an application which deals with geographical data and, in particular, tracks. Given an area (radius around geopoint, or bounding box of geopoints) I need to find, among of all these tracks, the ...
0 votes
1 answer
161 views

Automatically resize Vega map based on lat/long or geojson

I am attempting to create a map option within a data dashboard, where the map will always be of the state of Texas. For that reason, I don't want to give the user the ability to change the scale or ...
0 votes
1 answer
107 views

How to define a geography column in a table with different columns type at SQL database

Consider I have a table with different columns types: CREATE TABLE [RentedHome] ( [HomeID] INT NOT NULL PRIMARY KEY CLUSTERED, [Address] CHAR (255) NOT NULL CHECK (LEN(Address) >= 2), ...
  • 83
1 vote
1 answer
770 views

When writing a SQL Server geography value, the shell of a polygon must be oriented counter-clockwise

Using Net Topology suite I am creating geometries and attempting to insert them into the database. I'm getting this error on some of the Polygons/Multipolygons when attempting to write them to the ...
1 vote
1 answer
552 views

Three.js: How would I add a longitude/latitude grid to a world globe?

I'm working on a simulation of the famous Prague Astronomical Clock: https://shetline.com/orloj/ I've already produced a lat/lon grid in a crude way, by 2-d drawing lines onto the image which is used ...
  • 12.1k
0 votes
1 answer
57 views

How to plot geographic data with customized legend?

Having the geographic points with values, I would like to encode the values with colormap and customize the legend position and colormap range. Using geopandas, I have written the following function: ...
  • 65.8k
1 vote
1 answer
817 views

How to use ST_UNION in BigQuery

I have a table in BigQuery, called project.dataset.table. This table, among some other columns, has an ourpolygons column, with datatype GEOGRAPHY. I am trying to apply ST_UNION to the ourpolygons ...
0 votes
1 answer
126 views

Trying to find the longitude to metres ratio given a latitude for Google Maps Static API Stitching

I'm working on a project that hopes to convert Google maps static images into larger, stitched together maps. I have created an algorithm that given a starting and ending, latitude and longitude, it ...
  • 175
2 votes
1 answer
386 views

How to convert coordinates for use in GeoPandas? (e.g., 37_N)

I have the following dataframe: import pandas as pd df_coords = pd.DataFrame({'lat': {'1010': '37_N', '1050': '32_N', '1059': '19_N', '1587': '6_S', '3367': '44_N'}, 'lon': {'1010': '65_W', ...
  • 29.2k
2 votes
2 answers
454 views

Installing Python modules (rioxarray) for QGIS -> problems with dependencies

Installing rioxarray is a pain because of a dependency on gdal... Trying to install it for QGIS's python version is even more frustrating. I need to install the module for QGIS because I want to build ...
  • 47
0 votes
1 answer
287 views

SQL Server Polygon format

SELECT TOP 1 KMLLocation FROM Polygon Result: ...
0 votes
1 answer
249 views

Convert latitude / longitude to X/Y [closed]

I'm working on a geo-localisation project. I have an image of my campus , I found the 4 Long/Lat of the 4 corners but now I'm stuck to find a way to convert this to a pixel localisation. I found a lot ...
0 votes
1 answer
170 views

Calculate a Hexagon based on a point

this is my problem: I need to determine the correct coordinates(Latitude,Longitude) of a hexagon/polygon. I have as inputs: latitude (double) longitude (double) radius (of the circle) (int) The ...
0 votes
2 answers
326 views

How to convert display coordinates to geographoc coordinates (lat, lon) using cartopy?

I would like to get the latitude and longitude of a data point, given its pixel coordinates. I am quite confused with matplotlib transformations, but I guess that the key for solving the issue is here....
  • 145
1 vote
1 answer
267 views

SQL Spatial / Issue With Incorrect Or Inconsistent Polygon Data

I am working on implementing a polygon accumulation process for an Insurance company. I'm importing GeoJSON data into SQL and transforming into a table that I can later link to a series of lat/long ...
  • 300
0 votes
1 answer
102 views

SQL - Geography calculations

In SQL, I have geographies stored. I want to check if geography is covering more than half globe, if geography crosses the international dateline or if geography crosses the equator. I have come up ...
0 votes
1 answer
674 views

.map is not a function in Google Earth Engine

I am trying to normalize my data. But it says, .map is not a function. How can I come up with this? var Stprep = raindata.subtract(ltamean).divide(ltastd); var SPI = Stprep .map(function(image){ var ...
0 votes
1 answer
52 views

How can I find out if lightning struck the same place twice?

I am learning how to use SQL and I want to work out if lightning has struck the same location more than once in 2019 using a dataset from NOAA. This is the first couple of rows of the data table I ...
  • 3

1
2 3 4 5
10