Tag Info

New answers tagged

3

This issue has been sleeping here for long, but this might help some googler: For a similar task I simplified the functions from the website that you mention to the following, it works fine for me (in Python): def LatLonToPixels(lat, lon, zoom): tileSize = 256 sinLat = math.sin(float(lat) * (math.pi/180)) py = (0.5 - math.log((1 + sinLat) / (1 - sinLat)) / ...


0

If you have a one-band-dataset, it will be displayed as grayscale as default. You can change that to any kind of pseudocolour, depending on the software you use. To get real colours, you need either 3 band data with red-green-blue colour interpretation, or paletted colours.


2

Sorry, I can't replicate your problem. I have a 2048x1024px image of Blue Marble referenced to WGS84, and warped it in GDAL with gdalwarp -t_srs "+proj=sinu" bluemarble-WGS84.tif bluemarble-sinu.tif and get:


1

At the end I used the shapefile from the National Land survey of Finland even though not perfect, they seemed to be of a higher quality


0

As suggested by @user30184 the kapsi repository had what I needed, it can be found at this link


2

After looking in the API docs at http://openlayers.org/en/v3.0.0/apidoc/ol.source.GeoJSON.html and unchecking the checkbox Stable Only on the top right of the banner, I see a projection option for the source. It's here you have to set the projection to say to OpenLayers 3 to transform the data coordinates. Trying changing your fiddle with below part, it ...


2

If you load the file, the CRS should be assigned automatically. You can check that with Rightclick, Set CRS for Layer. If not, create a custom CRS with the proj string you mentioned under Settings -> Custom CRS. Then rightclick on the layer, Save As ... under a different file name, Select CRS and navigate to a lat/lon CRS from list.


0

Have you tried to explicitly reproject your data using ol.proj.transform? For example: var map_centre = ol.proj.transform([lon, lat], 'EPSG:4326', 'EPSG:3857');


4

Maybe check out the properties of Projected Coordinate Systems, to get a view into their utility? There are 3 aspects or properties presented in Projected Coordinate Systems that establish their utility and rationale. Any projection of 3D space on a 2D surface will of course exhibit distortion versus reality. Depending on your application, using a specific ...


7

There's a good answer over at Stack Overflow, which goes a little something like this: The geography type is a little bit more restrictive than geometry. It can't cross different hemispheres and the outer ring must be drawn counter-clockwise. The rest can be found here. Another article goes into some more detail: If you’re looking for the ...


2

The value k = 0.0818191908426 is referred to as the First Eccentricity of the Earth. This value is used in equations to convert between coordinate system values of position, such as lat-long-alt to ECEF coordinates.


2

Traditionally, topographic maps are plotted using a conformal projection, not an equal area projection. A conformal (or orthomorphic) projection preserves angles and, at any point, has isotropic scaling. Such qualities allow relatively easy computations involving angles and distances. en.wikipedia.org/wiki/Map_projection#Conformal ...


0

If you want to extract value from a SRTM data then you should use a point shapefile because raster image change their pixel value at different level and in polygon layer you can not find right value. so you have to need a point shapfile to extract value.


1

One of the most overlooked aspects of transforming coordinates from NZGD1949 to NZGD2000, including NZMG1949 to NZTM2000, is that it should use a transformation method. There are three methods: 3 parameter similarity, with 5 metres nominal accuracy 7 parameter similarity, with 4 metres nominal accuracy Distortion grid, with 0.1 - 1.0 metres nominal ...


0

Apparently, I am not specifying the gdal parameters correctly. After getting bitten by this almost 2 years later in a different manner, kwbeam answered a question regarding horizontal artifacts in gdal which applies directly to this question as well. The short answer is that you have to make the error tolerance very small in the gdalwarp command. I ...


2

The above code looks more like you just clone shp into shputm and then assign the output of crs(shp) to shputm without performing an actual reprojection. Anyway, if you import both the shapefile and the NDVI raster, and then reproject shp using spTransform, subsequent data extraction should work out fine. Also, the output of extent(shp_utm) roughly agrees ...


0

Here are some NodeJS / Javascript packages I found on GitHub: https://github.com/beatgammit/node-coordinator https://github.com/proj4js/mgrs https://github.com/proj4js/proj4js



Top 50 recent answers are included