New answers tagged lat-lon
It's possible but not trivial. A way to do it is to subclass L.TileLayer in such a way that each tile is wrapped in a <canvas> (like https://github.com/aparshin/leaflet-boundary-canvas/blob/master/src/BoundaryCanvas.js#L244 does), then attaching events to the canvases to fetch the pixel value of a given pixel. You might also run into CORS issues when ...
You have to reproject the raster file to a metric coordinate system, e.g. Lambert azimuthal equal-area projection. As ArcGIS always uses the same units (degree or meters) for vertical and horizontal measures. You can use the toolbox: Data Management Tools -> Projections and Transformations -> Raster -> Project Raster
Generally stated, taking the mean of many measurements is the way towards higher confidence in the result. And if the measurements differ in their own reliability, a weighted mean is in order. It is a common technique to mean several GPS observations over time, at a static location, to gain higher accuracy. In your case, however, you are moving so it is no ...
It is a part of a GeoJSON formated geometry and the ordering of x and y are important. Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, latitude for geographic coordinates):
When you transform you always transform pair of points: ol.proj.transform([23.4, 42.5], 'EPSG:4326','EPSG:3857'); (this transforms from EPSG 4326 to EPSG 3857; the coordinates are [lon, lat])
If I've understood correctly, this code should do what you're after. Using your input Distance,Longitude,Latitude ,-77.60483,40.31117 ,-77.58167,40.3045 ,-77.52883,40.24917 ,-77.508,40.14917 ,-77.49617,40.13117 I'm producing this output. I've assumed that you want the distances to go forward - i.e. that line 2 has its distance set to the distance to the ...
If you load Natural Earth data into PostGIS, you can extract the extents of each province with a query: WITH provinces AS (SELECT name, ST_Envelope(geom) AS geom FROM ne_10m_admin_1_states_provinces WHERE admin = 'Canada') SELECT name, ST_XMin(geom) AS xmin, ST_YMin(geom) AS ymin, ST_XMax(geom) AS xmax, ST_YMax(geom) AS ymax FROM provinces; ...
credit to Nate Wessel for the suggestion. Adding a column multi_bounds_geom of geometry type and using ST_Intersect is faster than anything else I tried.
If you want your points to be in web mercator like the query above, you need to change your point_route table as follows. You have a couple of issues: 1) Your coordinates are flipped as Vince pointed out X is longitude, and y is latitude but you have the other way around. 2) Your projection is wgs84, but looks like you tagged it as web mercator which is ...
Top 50 recent answers are included