proj

Leaflet map with WMS and custom projection

时光毁灭记忆、已成空白 提交于 2020-01-14 07:53:28
问题 I have implemented a map using Leaflet and tiles from a WMS-service. They offer a list of projections, where of one is usable in standard Leaflet EPSG:4326. However, the map looks a bit distorted, and I recon one of the other projections would be better. The supplier of the maps uses EPSG:32624, but I cannot seem to get that projection right. This is the complete list: EPSG:32624, EPSG:32619, EPSG:32620, EPSG:32621, EPSG:32622, EPSG:32623, EPSG:32624, EPSG:32625, EPSG:32626, EPSG:32627, EPSG

Proj4Leaflet reprojection like in openlayers

梦想的初衷 提交于 2020-01-03 19:06:38
问题 I try to display several layers in own projections on base map also in it's own projection Below my working example implemented using OpenLayers + proj4 library var projection_name = 'EPSG:32610'; proj4.defs(projection_name, "+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs"); var proj = ol.proj.get(projection_name); var my_custom_layer = new ol.layer.Tile({ opacity: 0.5, source: new ol.source.XYZ({ url: '', projection: proj, }) }); var osm_layer = new ol.layer.Tile({ source: new ol.source

Proj4Leaflet reprojection like in openlayers

孤者浪人 提交于 2020-01-03 19:06:17
问题 I try to display several layers in own projections on base map also in it's own projection Below my working example implemented using OpenLayers + proj4 library var projection_name = 'EPSG:32610'; proj4.defs(projection_name, "+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs"); var proj = ol.proj.get(projection_name); var my_custom_layer = new ol.layer.Tile({ opacity: 0.5, source: new ol.source.XYZ({ url: '', projection: proj, }) }); var osm_layer = new ol.layer.Tile({ source: new ol.source

Msbuild ItemGroup exclude doesn't work with wildcards

天大地大妈咪最大 提交于 2019-12-24 00:07:04
问题 This Itemgroup ItemsFromAnotherTarget contains: ..\..\References\AnotherFolder\ReferencedAssembly.dll bin\GeneratedAssembly1.dll bin\GeneratedAssembly2.dll somefolder\somefile.txt somefolder\somefile.exe bin\anexe.exe The idea is to generate another item group BinaryFiles containing bin\GeneratedAssembly1.dll bin\GeneratedAssembly2.dll somefolder\somefile.exe bin\anexe.exe So I have the following: <ItemGroup> <BinaryFiles Include="@(ItemsFromAnotherTarget)" Condition="'%(Extension)'=='.dll'

how to upgrade proj4 for rgdal

为君一笑 提交于 2019-12-23 09:47:36
问题 I use the R packages rgdal and rgeos extensively (currently with R v3.2.2). Recently, on my ubuntu machine (ubuntu v15.10), when I load the rgdal package, I see the following: > library(rgdal) Loading required package: sp rgdal: version: 1.0-7, (SVN revision 559) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.11.1, released 2014/09/24 Path to GDAL shared files: /usr/local/share/gdal Loaded PROJ.4 runtime: Rel. 4.9.1, 04 March 2015, [PJ

Pandas error with basemap/proj for map plotting

a 夏天 提交于 2019-12-20 02:57:11
问题 I ran the Python code below that is an example of "Plotting Maps: Visualizing Haiti Earthquake Crisis Data" on a book, Python for Data Analysis . Page 242-246 The code is supposed to create a plot map of Haiti but I got an error as below: Traceback (most recent call last): File "Haiti.py", line 74, in <module> x, y = m(cat_data.LONGITUDE, cat_data.LATITUDE) File "/usr/local/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 1148, in __call__ xout,yout = self.projtran(x,y

PHP Map projections

笑着哭i 提交于 2019-12-19 11:57:40
问题 I have Googled myself to death.. I am attempting to write 2 php functions that will return X and Y from Lat and Long, in both Mercator and flat non-projected (grid) maps. Problem being every calculation I have ran across assumes your map(s) has the same lat and lon at the corners, and then the result is in meters. ugh Here is what I have .. maps of different sizes, different lat's, long's at the 4 corners. I downloaded the Proj4 php port, but with zero documentation and more code then I need,

Proj.4 Java - convert coordinates from WGS84 to EPSG4141?

拟墨画扇 提交于 2019-12-12 17:51:30
问题 I am using the Proj.4 java library that can be found here And I am pretty much unsure on how can I implement a code that looks like this in Proj.4JS: // include the library <script src="lib/proj4js-combined.js"></script> //adjust the path for your server //or else use the compressed version // creating source and destination Proj4js objects // once initialized, these may be re-used as often as needed var source = new Proj4js.Proj('EPSG:4326'); //source coordinates will be in Longitude

Converting latitude/longitude to Alberta 10 TM Projection

可紊 提交于 2019-12-12 07:16:27
问题 I need to convert latitude/longitude coordinates into Easting/Northing coordinates in the Alberta 10 TM Projection. The 10 TM projection is similar to UTM, but it is a custom projection for the province of Alberta, Canada. I think (with some effort) I could code it myself but would rather not reinvent the wheel if it's been done already. 回答1: Grab PROJ.4 Cartographic Projections library - open source library. Suggested parameters for 10TM: +proj=tmerc +lon_0=-115 +k_0=0.9992 +x_0=500000

load csv into leaflet and convert coordinates with proj4

前提是你 提交于 2019-12-11 09:49:48
问题 This question involves the use of: leaflet.js (used to create my map) leaflet omnivore plugin (used to load my csv data file) and proj4 (used to convert easting/northing to lat/lon) My code below loads a stamen map with leaflet, and then uses omnivore to load my csv file. In order to display the csv geo data on my map i need to first convert the easting/northing coordinates to lat/lon. The next sections of code contain the logic to do this, and it works successfully for the single coordinate