POST
|
Hi, I intent to create a map based on a WmsLayer. I would like to know if there is a way to not use the basemap but only the layer? Is it possible to prevent the user to go toward this layer's bounds? I am currently trying to use resourceInfo to set layer's extent and map's extent but it is not working. I am stuck with an error with bbox. Sorry for my English. OlivierL
... View more
09-09-2013
05:19 AM
|
0
|
0
|
558
|
POST
|
Hi, I finaly found a solution on the website http://www.movable-type.co.uk/scripts/latlong.html Cheers for your help Olivier
... View more
04-29-2013
11:19 PM
|
0
|
0
|
678
|
POST
|
Hey, I though it was good because the angles fit but the length of the polyline are wrong (too small). As I am a beginner in GIS, I will explain what I did and what I try to do. I hope you could hepl me to understand my mistakes. I built a map of the harbor of le Havre (France) where boats are placed in. I used google map to get the GPS location of the wharf which are the only locations I need to build everything. I have to switch from google map to arcgis to get more accurate and more actual map. I don't really understand which locale system to choose. Do you mean that I have to choose a wkid of spatialreference? Or should I build my own local system? OlivierL
... View more
04-11-2013
12:06 AM
|
0
|
0
|
535
|
POST
|
Hello Dlimos, I tried what you advised me to do and this is perfectly working !! Thank you a lot ! To any people that might face this problem, this is the js function I used : function buildPoint(point,angle, nav_long){ var coord = esri.geometry.lngLatToXY(point.getLongitude(),point.getLatitude(),true); var ox = coord[0]+ Math.cos(angle/180*Math.PI)*nav_long; var oy = coord[1] + Math.sin(angle/180*Math.PI)*nav_long; var newPoint = new esri.geometry.Point(esri.geometry.xyToLngLat(ox,oy),new esri.SpatialReference({ wkid:4326 })); return newPoint; } OlivierL
... View more
04-10-2013
12:05 AM
|
0
|
0
|
535
|
POST
|
My bad, this is working; I just have troubles with angles
... View more
04-09-2013
03:54 AM
|
0
|
0
|
535
|
POST
|
Hello, it is working with the following method : function buildPoint(point,angle, nav_long){ var x = Math.cos(angle/180*Math.PI)*(nav_long*1/111111); var y = Math.sin(angle/180*Math.PI)*(nav_long*1/111111); newPoint = point.offset(x,y); return newPoint; } My problem is now the distance which is in meters. I found that 1 degree (latitude) = 111.11 km but it doesn't seem to work. Olivier
... View more
04-09-2013
03:28 AM
|
0
|
0
|
535
|
POST
|
Hi, Thank you for your answer. I am worry that this method will not be precise enough as the earth is a sphere. But I could still have a try. I keep you in touch. Olivier
... View more
04-08-2013
06:44 AM
|
0
|
0
|
535
|
POST
|
Hello everyone, First of all, sorry for my english. I am looking for how to build a point from another point according to a distance(meters) and a angle(degree). Olivier
... View more
04-08-2013
05:31 AM
|
0
|
11
|
987
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|