gis

Converting British National Grid (EPSG:7405), coordinates into latitude and longitude coordinates Using Java( JTS prefered ) programmatically

て烟熏妆下的殇ゞ 提交于 2021-01-28 03:30:33
问题 Is there a way to use the Java to convert(British National Grid (10 Figure Grid Reference),) into lat/long? for example, I have a 558832.516608631,180065.50201851176 and would like to generate the lat/long using Java or JTS. I've seen questions/solutions using Javacript, but no solutions using Java alone. I've tried this using JTS: Coordinate c = new Coordinate(394028.93262359675,806122.3097467106); com.vividsolutions.jts.geom.Point p = gf.createPoint(c); CoordinateReferenceSystem utmCrs =

Converting British National Grid (EPSG:7405), coordinates into latitude and longitude coordinates Using Java( JTS prefered ) programmatically

南笙酒味 提交于 2021-01-28 02:15:20
问题 Is there a way to use the Java to convert(British National Grid (10 Figure Grid Reference),) into lat/long? for example, I have a 558832.516608631,180065.50201851176 and would like to generate the lat/long using Java or JTS. I've seen questions/solutions using Javacript, but no solutions using Java alone. I've tried this using JTS: Coordinate c = new Coordinate(394028.93262359675,806122.3097467106); com.vividsolutions.jts.geom.Point p = gf.createPoint(c); CoordinateReferenceSystem utmCrs =

Netlogo doesen't recognize the GIS coordinates in the defined envelope of the world, it treats them as netologo world coordinates

◇◆丶佛笑我妖孽 提交于 2021-01-27 18:52:25
问题 I want to import some polygons from shapefile and create turtles with specific coordinates (a set of points that will be put in specific polygons). I successfully imported the polygons, set the envelope of the world... However, when I tried to add turtles and put them on a specific place (setxy), it added them at the same point (like those two points have the same coordinates, and they have not). And I chose coordinates of the points for which I know they belong spatially to the different

Create polygon per row and retain columns

心已入冬 提交于 2021-01-27 17:30:12
问题 Good morning, afternoon or evening I have grouped some positional data into 1 hour bins. For each I have extract the minimum lat and lon. It looks like this: df <- "ID time_bin count lat lon maxlat minlat maxlon minlon 1 2018-10-07 22:00:00 47 51.21723 -5.021828 51.22082 51.21457 -5.019105 -5.024372 2 2018-10-07 23:00:00 61 51.21797 -4.907367 51.23592 51.21224 -4.743538 -5.018899 3 2018-10-08 00:00:00 65 51.27263 -4.612118 51.32474 51.23751 -4.576005 -4.734378 4 2018-10-08 01:00:00 107 51

Python3.7 rasterio library cant open jp2

不想你离开。 提交于 2021-01-27 17:09:38
问题 I want to open a jp2 image from sentinel2 but when I read the image band = rasterio.open(imagetest, driver= 'JP2OpenJPEG') I get the next error 'D:\DataStorage\00_sentinel_data\L1C_T29SQB_A013147_20171228T111919\IMG_DATA\T29SQB_20171228T111451_B02.jp2' not recognized as a supported file format. I have installed GDAL with OSGeo4W and I can see the driver when I use the gdalinfo --formats command JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library The only thing that I

R Leaflet. Group point data into cells to summarise many data points

限于喜欢 提交于 2021-01-27 07:54:44
问题 Morning, afternoon or evening. I have the following positional data (adjusted from 'Count of sampling points within a grid cell') # Demo data set.seed(123) # lat <- runif(1000, 46.5, 48.5) lon <- runif(1000, 13,16) # pos <- data.frame(lon, lat) Using the following: ggplot(pos, aes(x = lon, y=lat)) + geom_bin2d(bins = 25) + stat_bin_2d(aes(label=stat(count)), bins = 25, position="identity") + scale_fill_gradient(low = "white", high = "red")+ theme_void() gives: Awesome, but, I want to do the

R Leaflet. Group point data into cells to summarise many data points

倾然丶 夕夏残阳落幕 提交于 2021-01-27 07:53:36
问题 Morning, afternoon or evening. I have the following positional data (adjusted from 'Count of sampling points within a grid cell') # Demo data set.seed(123) # lat <- runif(1000, 46.5, 48.5) lon <- runif(1000, 13,16) # pos <- data.frame(lon, lat) Using the following: ggplot(pos, aes(x = lon, y=lat)) + geom_bin2d(bins = 25) + stat_bin_2d(aes(label=stat(count)), bins = 25, position="identity") + scale_fill_gradient(low = "white", high = "red")+ theme_void() gives: Awesome, but, I want to do the

How can I get my contour plot superimposed on a basemap

别说谁变了你拦得住时间么 提交于 2021-01-21 04:13:10
问题 This is a question I asked several months ago and am still struggling to come to a solution. My code gives me a basemap and a contour plot side by side (but printing to file only gives the contour plot), but I want them superimposed. The best solution would the one here https://gist.github.com/oblakeobjet/7546272 but this does not show how to introduce the data, and it is difficult when you are learning from scratch online. Without tiring very kind people, I hope the solution is easy as

How can I get my contour plot superimposed on a basemap

耗尽温柔 提交于 2021-01-21 04:12:32
问题 This is a question I asked several months ago and am still struggling to come to a solution. My code gives me a basemap and a contour plot side by side (but printing to file only gives the contour plot), but I want them superimposed. The best solution would the one here https://gist.github.com/oblakeobjet/7546272 but this does not show how to introduce the data, and it is difficult when you are learning from scratch online. Without tiring very kind people, I hope the solution is easy as

How can I get my contour plot superimposed on a basemap

自闭症网瘾萝莉.ら 提交于 2021-01-21 04:10:26
问题 This is a question I asked several months ago and am still struggling to come to a solution. My code gives me a basemap and a contour plot side by side (but printing to file only gives the contour plot), but I want them superimposed. The best solution would the one here https://gist.github.com/oblakeobjet/7546272 but this does not show how to introduce the data, and it is difficult when you are learning from scratch online. Without tiring very kind people, I hope the solution is easy as