Tagged Questions
0
votes
1answer
44 views
Why does map display like it is in Isometric when everything is in EPSG:4326?
I'm beginning with Geoserver and try to display a map of my country (Belgium) is an openlayer map (embedded into a MapPanel object). I've downloaded the municipalities limits from gadm.org and copied ...
2
votes
1answer
56 views
Blank MapServer WMS image at low zoom levels in OpenLayers
I have an OpenLayers map using OSM as the baselayer with several layers coming from MapServer via WMS. The OL map is in EPSG:3857 and my mapfile (and shapefiles) are in EPSG:4326. In my mapfile I ...
0
votes
1answer
58 views
Problem Overlaying layers in OpenLayers
I have a html page with 2 WMS layers.
The first is one Base Layer , & the second is my personal WMS feature. I load it from Geoserver. The problem when I add the 2 layers I do not have the ...
0
votes
1answer
40 views
Wrong projection on WFS layer with OSM baselayer [duplicate]
I am trying to add a vector layer with a WFS protocol.
var wfs = new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1})],
...
1
vote
1answer
82 views
openlayers multiple layers with different projection
My page contains two layers: 1. Open Street Map as a basic layer and WMS layer from mapserver as a overlay layer. My map show this two layers but in a wrong position. I spent a lot of time trying ...
0
votes
1answer
59 views
OpenLayers WMS - TypeError: this.resolutions is undefined
I'm trying to setup a map with WMS and WFS Layers by using Geoserver.
However, when I'm combining WFS and WMS (with some Google basemaps) together in one map I got following error in Firebug:
...
0
votes
2answers
65 views
WFS reprojection problems
In geoserver i have a layer in EPSG:4326.
In OpenLayers i add it on map as WFS:
markerLayer = new OpenLayers.Layer.Vector('Markers',{
strategies: [new OpenLayers.Strategy.BBOX()],
...
0
votes
0answers
58 views
GMT raster (*.tiff + *.pgw) in epsg4326 shifts few kms (4326-900913-3857 problem?)
This seems to be an old problem with an already known solution (ie. "...stop using 900913 and start using 3857..."), but not sure whether this problem is about software versions, the raster itself or ...
0
votes
0answers
42 views
include the robinson projection into open layers
I need to include a robinson projection into openlayers, but i found no epsg code for it.
i have this spherical mercator projection at the moment and need to change it, but i dont know if it is ...
3
votes
3answers
151 views
How to reproject to other projections than WGS84 or Webmercator?
I have an OpenLayers map with a vector layer to add points on. I'm using Google Maps as the base layer. After the point is added, I need to store the data in my database as lat/long and x/y. Can I ...
0
votes
1answer
86 views
Projection - Some of my data are in odd position [closed]
Some of my data has this position lon: 181 / lat: 91
So when I try to draw them on the Google map:
var geographic = new OpenLayers.Projection("EPSG:4326");
var mercator = new ...
2
votes
0answers
151 views
Mapserver+openlayers: displaying a shapefile with Cylindrical Equal Area (Lambert) projection
I have some shapefiles in "World Cylindrical Equal Area (Lambert) projection".
The .prj reads:
PROJCS["World_Cylindrical_Equal_Area",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_
...
2
votes
1answer
165 views
OpenLayers Vector Layer not aligned with Google Oblique Imagery
Check http://jsfiddle.net/vasile/BKvcX/6/
In the first map, the yellow line should follow the street curve, however if you pan the map up-down, you clearly see the misalignment due to what ?
...
2
votes
0answers
79 views
Projection declaration in dojox.geo.openlayers possible?
I am trying to integrate some maps of my own into the dojox charting demo and I had success in exporting a shapefile (externally, i.e. with my own parser) to the dojo JSON map format. The map is in ...
1
vote
2answers
317 views
Howto change OpenLayers BBOX request projection?
My map uses EPSG:900913 projection on the map.
All coördinates in the database are stored in the 'normal' google format / GPS coordinates (WGS84). For instance, if you save a new location..Before I ...
2
votes
1answer
56 views
What is the purpose of having a separate Layer property for sphericalMercator?
The Beginner's Guide to OpenLayers 2.10 says the following:
sphericalMercator {Boolean}
This property determines if the map should behave as a
Mercator-projected map. Setting this to true ...
3
votes
1answer
147 views
Why are two incompatible projections used together in OpenLayers? [duplicate]
While going through the examples in OpenLayers, I notice several examples with the following code:
map = new OpenLayers.Map('map_element',{
...
units: 'm',
projection: new ...
1
vote
0answers
66 views
OpenLayers doesn't understand Mercator map measured in degrees?
I have access to a map server that takes a bounding box measured in degrees, and returns a map, projected in Web Mercator. I'm having trouble configuring OpenLayers to use a Mercator projection that ...
2
votes
1answer
378 views
OpenLayers Map with custom SRS (without EPSG code) [closed]
Is it possible to show geodata by OpenLayers in custom projection?
I want to show my geodata in OpenLayers interface.
Source layer(s): shape-file(s), standard epsg:4326 lon/lat projection; ...
1
vote
0answers
91 views
Project tiles from custom imagery in transverse mercator with OpenLayers
I have the following parameters of a custom imagery and I need to set-up a layer in OpenLayers with which I would project the tiles properly from this imagery.
TransverseMercator
ellipsoidName=WGS84
...
0
votes
1answer
224 views
lonlat from geometry point gives strange result
I added a vector layer to my main map with the controls like the example from openlayers: http://openlayers.org/dev/examples/draw-feature.html
Now when I want to get the resulting lonlat from the ...
1
vote
0answers
165 views
Get tile URL with projection different than 900913
I have the following code, which should display a slippy map showing tiles producted by me with mapnik:
Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 ...
0
votes
0answers
219 views
openlayers, show wms layer and vector layer simultaneously [closed]
I trying to show with openlayers vector layer(from geoJson) and raster wms layer(*wms_layer*) from tiff file from my GeoServer simultaneously. The tiff is in EPSG:900913 projection. The vector layer ...
0
votes
0answers
216 views
XYZ map doesn't calculate the correct tile URL
I have the following code:
Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
1
vote
1answer
231 views
OSM Map projection doesn't seem to change
I have the following OpenLayers map:
Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
1
vote
1answer
245 views
Geoserver and SRS
I have a very basic problem, and please bear with me since I'm new to GIS.
I have geoserver installed in a Ubuntu Box and installed a few maps in shapefile. The maps were originally in ArcGIS format ...
1
vote
0answers
125 views
ScaleLine shows NaN for LCC projection
I have used openlayers along with geoserver. My Map is having LCC projection by default, but SRS is EPSG:4042.
The problem is that the scaleline shows NaN in meter as well as feet. How can I correct ...
4
votes
2answers
219 views
Why isn't valid geometry not valid in NetTopologySuite when close to poles?
I have a Polygon which crosses the south pole:
Polygon in WKT:
POLYGON((5.86826073458095 75.6638564054071,-16.5436836399021 63.2220742891438,-19.3664667294083 59.846221066959,-21.7009816876343 ...
1
vote
0answers
188 views
A WMS layer fails to show at some scales
I am tring to overlay my WMS layer on Google but at a particular scale it doesn't show the data of my layer. What can be the problem?
<html xmlns="http://www.w3.org/1999/xhtml">
<head ...
0
votes
1answer
317 views
Reprojecting non 4326 WMS image to spherical mercator
In OpenLayers, I'm trying to display a WMS overlay (EPSG:4269) from a server I don't have control over to a spherical mercator projection.
Is there an equivalent to this:
...
0
votes
1answer
948 views
Conversion from N,E to Lat/Long And Lat/Long to N,E will always be same? [closed]
I have an excel tool for the conversion of following lat/long:
Lat: 23° 11’ 24.67503’’ S
Long: 118° 46’ 6.15742’’ E , which gives me following N,E:
Northing: 7,434,317.43
Easting: 680,991.69
But I ...
1
vote
0answers
136 views
On the usage of Proj4Js->tmerc.js
I am using "proj4js & open layers" for my mapping.
I got projection & datum (which is based on "Transverse Mercator") of a local plane and
this plane is part of a grid which returns ...
3
votes
1answer
425 views
Openlayers and Geoserver fail to reproject while editing Vector with WFS-T
I can't get the Openlayers and Geoserver work with WFS-T editing a vector layer.
I have a layer of points where the Native SRS is EPSG:32639.
After trying a lot of combinations, I ended up with two ...
0
votes
2answers
133 views
How do you pass parameters for Proj4js implementation with OpenLayers
I am using Proj4js along with OpenLayers for the transformation of x,y (projection type is Transverse Mercator) to long, lat.
While executing "inverse()" method what I noticed that in tmerc.js some ...
1
vote
1answer
100 views
Tool For Generating Formula for Projection
I am using Proj4Js for northing,easting to lat,long transformation.
My Datum is "AGD84" and projection is "Transverse Mercator".
While doing so I found that if I don't specify "+proj" parameter in ...
1
vote
2answers
311 views
Re-initializing OpenLayers Map with different projection
Is it possible to re-initialize OpenLayers Map with a different projection ?
Scenario:
OL Map with projection 4326 is created, along with click, measurement, drawing handlers.
A button to switch to ...
3
votes
2answers
484 views
Display two layers with OpenLayers at once
How can i display two layers with diferent projections at once? For example i have layer with EPSG:70076 and OSM layer.
2
votes
4answers
1k views
OpenLayers transform EPSG 27700 coordinate to Google 900913
Community,
I'm currelty capturing my mouse click event and trying to transform the coordinates into Long Lat. I need to get at the Long Lat as strings so I can build a url and throw it at Google ...
4
votes
2answers
651 views
TileCache and Openlayers Problem - Projections?
I have a very known problem, but I can't solve it.
I have set the same maxExtents in the config as in the Openlayers init JS. I have done the same thing with the projection (EPSG:900913) and done all ...
9
votes
2answers
348 views
Is there a way to draw a straight line on a map which also represents a straight line on the earth surface?
I'm trying to understand more on projections.
In this example, why must one calculate the curvature of the earth (great circle) if the map is already projected? Is there a way to draw a visibly ...
2
votes
1answer
151 views
OpenLayers.Control.DrawFeature Accuracy problem
When i draw a polygon using the OpenLayers.Control.DrawFeature then i export that polygon to KML using OpenLayers.Format.KML. Though, when I open it in google earth there is a big difference between ...
4
votes
1answer
4k views
Openlayers and Geoserver: OSM/Google Maps and WMS Overlay
I am experiencing projection problems with the following set up:
GeoServer with ESPG:4326 based shapefiles (*.shp)
OpenJump to edit my shapefiles
Openlayers with EPSG:900913 base layers
GeoServer ...
15
votes
5answers
5k views
Map projection in OpenLayers
I want to overlay some data whose projection is WGS-84 on Google map layer in OpenLayers. But I just can't make them in the right place. I did as follows:
map = new OpenLayers.Map('map', {
...
5
votes
2answers
2k views
How to display image overlays in OpenLayers?
I am working on displaying Ground Overlays on OpenLayers by parsing KML manually.
To do so, I was trying to add an image on top of Google Map by looking at GroundOverlay section from ...
5
votes
1answer
258 views
How does OpenLayers determine a layer's projection?
Could anyone explain the strategy OpenLayers take to determine the layer's projection?
For example, if I didn't explicitly specify any projection for a marker layer, what projection would the layer ...
2
votes
1answer
279 views
How to generate a grid of horizontal equal-area rectangles in a Mercator projection?
I'm new to GIS so pardon my ignorance and bear with me. I'm generating a grid relative to a LonLat point. To make the cells all equal area, I'm creating it in 2163 projection. The problem is that when ...
2
votes
3answers
2k views
How do I include proj4js in openlayers?
in my Openlayers app, since the base map projection is not epsg900913 or 4326, I need to include proj4js in order to use geolocation feature. but i got such a error notice:
GET ...
3
votes
1answer
328 views
How to solve Projection Problem at client side
I want to discuss a scenario here to all.
I have developed a Web mapping application in OpenLayers and GeoServer. The customer give us shapefiles with native projection SWREFF99_1330 (EPSG:3008). ...
4
votes
4answers
3k views
How to reproject base layers in OpenLayers?
The issue is:
I have vector/topo/image tiled maps for some places in north america which were published as ArcGIS Server REST service. These maps (A) are based in EPSG26912 projection. Now I wanna ...
2
votes
1answer
603 views
How to provide transform information to openlayers on Image layer
I would like to include an overlay raster layer into my OpenLayers map. I've pre-transformed the image into the correct projection (EPSG:900913) and saved as a png using the gdal_translate command:
...

