OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 Questions and Answers » What does the Changeset mean in OSM full planet? » 2011-06-02 16:34:25

xintao
Replies: 1

Hello! I got the Changeset information as shown below:

<changeset id="7892823" created_at="2011-04-17T22:05:22Z" closed_at="2011-04-17T22:05:28Z" open="false" min_lat="52.5469902" max_lat="52.5481293" min_lon="-1.9344328" max_lon="-1.9306205" user="Miked29" uid="105474">

Does it mean that a user logged in and begin to edit an area, and then end edit the area? Thanks a lot!

#2 Re: Questions and Answers » Puerto Rico map !! » 2011-05-19 11:32:15

Hi eaviles83, maybe you can download it here: http://downloads.cloudmade.com/americas … uerto_rico. There are original OSM file, converted shape files and even POIs. Good luck.

#3 Re: Questions and Answers » Is it possible to access all the registered user IDs in OSM? » 2011-05-18 22:10:19

@Marqqs: thank you for your help.
@Tordanik: that's true, thanks.

#4 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-18 20:23:35

Thank you Marqqs, yes, there are changeset in full OSM planet. Thanks again.

#5 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-18 15:49:28

I was scanning the OSM full file, and I found some nodes information as shown below:
<node id="5993208" version="1" timestamp="2006-05-26T03:33:05Z" changeset="28571" visible="false" lat="31.4425140" lon="-88.2065500"/>
<node id="5993209" version="1" timestamp="2006-05-26T03:33:05Z" changeset="28571" visible="false" lat="31.4428800" lon="-88.2066170"/>

In this case, doe it mean that I can user changeset ID to track back to get the corresponding user ID? Thanks!

#6 Questions and Answers » Is it possible to access all the registered user IDs in OSM? » 2011-05-18 08:54:12

xintao
Replies: 4

I mean only the IDs, no other information. Because at this web page: http://wiki.openstreetmap.org/wiki/Stats, there is the stat of number of users. Any suggestion?

Many thanks in advance.

#7 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-14 15:22:38

Thank you greencaps, exactly, the history is like that: http://www.openstreetmap.org/browse/nod … 74/history

This webpage says that the full planet includes history: http://wiki.openstreetmap.org/wiki/Planet.osm/full, just as what Andreas said. How do you know it does not include history?

#8 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-14 10:31:51

Thank you Andreas! Your post is of great help! I will read through the document and contact them. Thanks a lot!

#9 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-13 23:17:15

Thank you, Marqqs! Yes, you are right. I am trying find out the history of every object in OSM data, including node, way and relation. For example, when a node was created by who, and then when it is edited by who, and so on.

Thanks for your suggestion. Yes, the full planet data is huge! But I maybe can give it a try.

#11 Re: Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-13 17:42:03

Actually, I was thinking to use the ID of feature in OSM data. That is to say, I download the OSM data at different date time, and then scan them one by one to detect and compare the changes of ID. It could be extremely time-consuming because of the intensive OSM data.

#12 Questions and Answers » How to track the history of a feature (node, way or relation) in OSM? » 2011-05-13 15:15:37

xintao
Replies: 13

Once a feature was created, it could be edited many times. But, in OSM data, there is only one record for one feature, i.e. node, way and relation. Any clues to solve this problem? Many thanks in advance!

Xintao

#13 Re: Development » How to identify land-use of relations such as river, forest or parks? » 2010-12-25 02:42:56

@Ldp: thank you for your kind help. I agree with you. It is hard to find the land-uses based on tags.

When we talk about spatial data quality, positional and attribute accuracy, completeness and consistency are three key concepts. Now OSM data has covered most of the world, which means the completeness is good. And when OSM data is used to analyze urban morphology, the accuracy is also good enough. However, the data consistency is not so good because the lack of standard when collecting OSM data. As Ldp said, it's hard for users to extract the corresponding information. I think it worth thinking for OSM project.

#14 Development » How to identify land-use of relations such as river, forest or parks? » 2010-12-22 14:38:21

xintao
Replies: 2

Hello,

Relations in OSM data could be Multipolygon, which represent different kind of land-uses such as lakes, rivers, forest and so on. The question is: there are not tags inside relations which can be used to identify land-uses. But, obviously, the OSM tiles can tell different land-uses. How do they do it?

Any of your reply is highly appreciated.

Xintao

#15 Questions and Answers » How to identify relations' land-use such as river, lake or parks? » 2010-12-22 13:27:03

xintao
Replies: 1

Hello,

Relations in OSM data could be Multipolygon, which represent different kind of land-uses such as lakes, rivers, forest and so on. The question is: there are not tags inside relations which can be used to identify land-uses. But, obviously, the OSM tiles can tell different land-uses. How do they do it?

Any of your reply is highly appreciated.

Xintao

#16 Development » Problem of Mercator Projection in OSM data » 2010-08-14 11:30:08

xintao
Replies: 1

Hello!

After I download OSM data from CloudMade.com, I use the C# code here (http://wiki.openstreetmap.org/wiki/Mercator#C.23) to transform the longitude and latitude into X and Y coordinates. Then I convert them into ArcGIS shapefile, and use the tool to calculate the area and length. To my big surprise, the results are not correct. For example,  the actual area of Sweden is only 0.45 million square kilometers, while the result is summed to 1.17 million square kilometers.

Am I doing something wrong? Any of your response and comment are highly appreciated.

Thanks.

Xintao

#17 Development » Is it possible to embed Google street view in OpenLayers Popup? » 2010-04-05 14:06:35

xintao
Replies: 2

If I want to show Google street view in Popup window, is it possible to do it by using openlayers on OSM?

Thanks.

#18 Re: Development » Are there any solutions for hosting OSM tiles? » 2009-12-07 19:19:05

Thank Alex McKee. If I just want to host the tiles of one country, e.g. Sweden, can I do that? I have a server with 42G memory and 2T harddisk. I can download the tiles from cloudmade.com, but don't know how to host the tiles. Thanks again.

#19 Development » Are there any solutions for hosting OSM tiles? » 2009-12-06 12:26:16

xintao
Replies: 6

Hello!

If I want to host all the OSM tiles on my own server, are there any solutions that I can follow as a guide? Thanks!

#20 Re: Development » How to change the Icon of a marker? » 2009-11-02 17:20:51

Hi, sorry, I've got it: marker.setUrl().

#21 Development » How to change the Icon of a marker? » 2009-11-02 15:07:45

xintao
Replies: 2

Hello!

After a marker has been created, can I change the Icon of the marker? For example, I can use marker.moveTo()  to move the marker.

Thanks a lot!

Xintao

#22 Development » Problem when try to move vector feature » 2009-10-17 19:11:41

xintao
Replies: 0

Hello!

I created a vector feature on the map. it appears correctly. The code is showing below:

var style={ externalGraphic: "airplane.gif", graphicWidth: 12,  graphicHeight: 14, fillOpacity: 50 };
style.rotation = Math.floor(Math.random() * 360);
var feature=new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(x, y), {angle: planeangle, x_extra: 0, y_extra: 0},style);
vectorLayer.addFeatures([feature]);     //it works fine and appears on the map correctly until here

But then I try to move it to a new place, an error occured.

var planeangle = feature.attributes.angle;
if (planeangle  >= 180) {
   var a = 450-planeangle;
} else {
  var a = 90 - planeangle;
}
var newx = feature.geometry.x - Math.cos(a*Math.PI/180)/10 + feature.attributes.x_extra;
var newy = feature.geometry.y - Math.sin(a*Math.PI/180)/10 + feature.attributes.y_extra;
var newPoint = new OpenLayers.LonLat(newx, newy);
feature.attributes.angle += Math.floor(Math.random()*20);
if(feature.attributes.angle>360){feature.attributes.angle -= 360;}
feature.move(newPoint);

And the error in the IE says: "Message: Arg: Fraction out of range (0 to 1 allowed)"

I have been stucked here for a whole day. I appreciate any of you comments.

Thanks a million.

#23 Development » How to get the markers? » 2009-10-16 18:55:23

xintao
Replies: 0

Hello!

I have created some markers by using the following code:

var  markers = new OpenLayers.Layer.Markers("mymakers");

for(i=0;i<10;i++) {
   var myLonLat = getMyLonLat(i);   
   var marker =  new OpenLayers.Marker(myLonLat, markerIcon.clone());
   markers.addMarker(marker );
}

The 10 markers appear on the map correctly. Then how can I get the 10 markers? I have looked through the OpenLayers.Layer.Markers properties, but did not find any method to get the makers added to the layer. I appreciate any of your comments.

Best regards!

#24 Re: Questions and Answers » Where to download OSM POIs? » 2009-09-09 11:02:10

Hi, any suggestion for how to extract POIs from OSM data? Thanks a lot.

Xintao

#25 Re: Questions and Answers » Where to download OSM POIs? » 2009-09-08 17:59:21

Hi, Alex Mckee, thanks for your reply.

Do you mean I have to check the  appropriate key/value pairs of all the nodes in my interested area to get the different kinds of POI? Here I find a place for downloading http://downloads.cloudmade.com/europe/s … readcrumbs . Did they do that in the same way?

Thanks

Board footer

Powered by FluxBB 1.4.8
Hosting sponsored by Oxilion