Tag Info

New answers tagged


To be honest you should do the reprojection before hand. Try to avoid doing calculation on the client side. Default OL2 uses EPSG:3857


For what you are trying to do you could use the WMS datastore in GeoTools to import the layers you need: see https://gitlab.com/snippets/6355 for a full example.


To be honest EPSG:4326 is not really defined well at all, depending on which version of WMS oe when your CRS was defined you use it can be either way. The definitive statement for GeoTools is at http://docs.geotools.org/latest/userguide/library/referencing/order.html So you may be able to get away with: Hints hints = new ...


This is the answer. Sometimes you have to go through all the process of asking a question to understand the solution. JavaScript: /** * Converts spherical web mercator to tile pixel X/Y at zoom level 0 * for 256x256 tile size and inverts y coordinates. * * @param {L.point} p Leaflet point in EPSG:3857 * @return {L.point} Leaflet point with tile pixel ...


I would look into using the proj4.js library to transform your coordinates programatically using javascript. From the Github Readme: Basic usage: proj4(fromProjection[, toProjection2, coordinates]) eg: ``` var firstProjection = 'PROJCS["NAD83 / Massachusetts Mainland",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS ...


If the degree coordinates should be in Helsinki (for which UTM zone 35 is correct), you should enter 24.9993393, 60.184716. Note that proj expects East - North order, with negative singns for Southern and western coodinates. Converted to EPSG:3067, the coordinates are 389042, 6673664.


The correct syntax is: cs2cs +proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs +to +init=epsg:4326 -f %%.8f<nad.txt >out.txt with 987043 206407 in the input file nad.txt to get this output: -73.98992216 40.73321572 ...

Top 50 recent answers are included