javascript,openlayers,gis,map-projections

I can't get point projection by lat lon values, but solved it by adding projection property for each feature that will be added to the layer. my code is something like this: var mapProjection = new OpenLayers.Projection("EPSG:900913"); var dbProjection = new OpenLayers.Projection("EPSG:4326"); layer.preFeatureInsert = function (feature) { if (!feature.projection) feature.projection...

python,matplotlib,matplotlib-basemap,map-projections

From the documentation, both Hammer and Mollweide projections don't allow this as they print out entire world maps. Here's some code using Polyconic projection, but it is bounded by straight lines. The trick here is to define the corner longitude and latitudes on creation. from mpl_toolkits.basemap import Basemap import matplotlib.pyplot...

objective-c,math,map-projections,apple-maps

For starters, we can rearrange your function to make it a bit more readable: double MyMetersPerMapPointAtLatitude(double latitude) { return cos(latitude * M_PI / 180.0) / POINTS_PER_METER; } Now, the issue is, as Tommy points out, that you're not accounting for the flattening of the Earth. You can do that with:...

For sake of reference, here is how I have arranged the octants: from math import atan2, degrees def toast_xy_to_latlon(x, y, size, inside=False): """ Given TOAST x,y coordinates into a size*size HTM return lat, lon where -90 <= lat <= 90 (degrees North) and 0 <= lon <= 360 (degrees East)...

python,matplotlib,matplotlib-basemap,map-projections

Try cartopy and its new epsg feature: projection = ccrs.epsg(32636) fig, ax = plt.subplots(figsize=(5, 5), subplot_kw=dict(projection=projection)) ax.coastlines(resolution='10m') Here is a notebook with an example: http://nbviewer.ipython.org/gist/ocefpaf/832cf7917c21da229564...

javascript,postgis,geojson,map-projections

The GeoJON shown on GitHub is projected using a Spherical Mercator projection. This done automatically is so it can overlay with other web-mapped data (e.g. I can see it is in Colorado). The second image is a Cartesian projection of raw coordinate data, so it is not projected. So the...

javascript,openlayers-3,map-projections

I found the solution, here it is for it is helping anyone Following this answer in gis stackexchange http://gis.stackexchange.com/a/118818/42868 There is an unstable option for the ol.source.GeoJSON object, so adding it in this way made it work var source = new ol.source.GeoJSON({ url: 'geojson url', projection: 'EPSG:3857' }); ...

opengl,glsl,map-projections,compute-shader

I believe in this case an FBO would be easier and faster, and would recommend that instead. But the question itself is still quite valid. I'm surprised to see a sphere, given you're writing blue to the entire texture (minus any edge bits if the texture size is not a...

java,math,2d,map-projections,mercator

As comments have pointed oit correctly, in order to precisely convert between geographic coordinates and map position, you have to know the method of projection used for the map, and a sufficient number of parameters so that tuning the remaining parameters using a suitable set of reference points becomes feasible....