Talk:Export

From OpenStreetMap Wiki
Jump to navigation Jump to search

Discuss the Export page here:


Bounding Box

On the Export Tab, would it be possible to add a "Bounding Box" to the OSM Data Export, like JOSM does? This would really improve processing, cause you know which part is complete. JOSM export looks like: <osm><bound box="min lat,min lon,max lat,max lon" /> ... data ... </osm>. -- Skunk 04:55, 22 June 2008 (UTC)

Currently Exporting raw OSM data is implemented simply by pointing the browser directly at the API (specifically the map call)
Perhaps there is an argument for making the map call return a <bound> tag. Perhaps it could be a parameter option of the map call (and then an option within the export tab interface). In any case your feature request actually relates to the API rather than the export tab really.
-- Harry Wood 18:02, 22 May 2009 (UTC)

SVG filesize too great

The way to save each letter of a street name as a single object generates big files. This is a big problem to use such SVGs in Wikimedia Commons where the use of vector format SVG is principle a good idea. It should be possible to solve this problem. Perhaps there need to be a simpleSVG and an advanceSVG with text following paths function. --Kolossos 15:07, 19 September 2008 (UTC)

I added some notes to the SVG page on what's actually happening in the Export tab. It's Mapnik rendering to Cairo. Maybe we need to ask the Mapnik developers for these kinds of enhancement. Guess the issue will be looked into in relation to the new wikimedia toolserver work -- Harry Wood 18:09, 22 May 2009 (UTC)

Copy the address

Hello, it is not possible to coppy the address to another application. Would it be difficult to make something like "permalink" for the export? - User:Petr Dlouhý 06:39, 7 November 2008

what d'you mean? there is a 'permalink'. Bottom right. -- Harry Wood 18:10, 22 May 2009 (UTC)
I mean, that there is export button, but not export link - you have to click on that button to be able to see address of the exported image. I would like to copy that address, and download the image with wget or whatever else. Now I have to click on export button, and my browser starts downloading that image, then I copy address, and click on back, and then I download the image with wget again. --Petr Dlouhý 11:18, 14 November 2009 (UTC)

Possible export items

moved from the merged page Export tab

  • Permalink. This would just be a permalink to the currently viewed map excerpt. We could then get rid of the permalink on the map itself, making it a little bit cleaner (and some people apparently don't understand the word permalink).
    • This is certainly possible, though not in my current plans for phase 1, but I would probably want to keep the quick'n'easy permalink on the main page as well. TomH 16:28, 11 March 2008 (UTC)
  • Vector data formats:
    • GPX traces. Export all GPS point that are recorded in the current bounding box. (Would this be useful?)
      • This isn't in my phase 1 plan but is certainly possibly. TomH 16:28, 11 March 2008 (UTC)
    • GIS formats (e.g. .shp)
    • Garmin .img and other GPS-friendly formats
      • Not in my phase 1 plan, but I expected people might want to add it. TomH 16:28, 11 March 2008 (UTC)
      • I would appreciate this since such function would give us an edge against Google even for ordinary users who don't care about .osm or .shp. -- Fröstel 10:39, 12 March 2008 (UTC)
  • Vector illustration formats:
    • Illustrator
      • AI reads EPS doesn't it? I thought EPS was pretty much it's native format in fact? TomH 16:28, 11 March 2008 (UTC)
  • Semantically rich formats:
    • RDF. I have no idea if this is silly or not, it might be very well be silly. Anyway, I'm thinking http://en.wikipedia.org/wiki/Linked_Data here. Being able to link to specific roads or whatever from other places (freebase?) would be awesome. Getting a rendered map of it even awesomer.

All Export modes currently broken

Moved from Talk:Main Page

I'm trying to get a printable (roughly 3000x1500 px) image of central Helsinki out of OSM... but the Export tab is entirely refusing to cooperate today.

  • "XML data" [1] gets me a 500 Internal Server Error.
  • "Mapnik Image" [2] works (very, very slowly) for low resolutions, but times out if I push the size to anywhere above 1000x1000 (even though this is still well below the max 1:25500 scale it's suggesting).
  • "Osmarender Image" [3] is riddled with "Unknown type" error tiles eating half the city.

Known issues, temporary bugs or what? I eventually managed to snarf the XML data from informationhighway.org, but c'mon, this shouldn't be this hard. Jpatokal 10:37, 29 August 2008 (UTC)

I'm going to move this comment to Talk:Export from Talk:Main Page
The Export feature currently has an known issue. It stops working or gives very spurious results on a Wednesday, while the PostGIS database on the tile server is being emptied out and re-populated with the new planet dump. Beyond that, we have other service reliability issues. The "XML data" problem can only mean that you are testing this at a time when the API is down, which is bad. Certainly something we try to avoid. Hopefully other issues with exporting will be tackled gradually and we'll see some improvements, indeed there may have been some improvements since you wrote that message (although the Wednesday issue was still under discussion recently) Always open to helpful contributions from developers!
-- Harry Wood 11:10, 12 May 2009 (UTC)

Import/Export and Integration

Moved from Talk:Main Page

Here is a list of tools that, through the correct development of plugins and import/export tools, could mean that openstreetmap would benefit enormously, and also vice-versa these tools would benefit:

Leo in particular is very exciting, because it allows scripts to be run, on-demand, from the menu, or from a context menu on a "node". So, for example, you could "drill down" to a particular area, searching by running the "fuzzy-match town name" plugin, to find nodes which matched what you were looking for. Then, you could right-mouse button and click the "upload" plugin, which uploaded your raw text and associated it with the node. Then, you could run the "process" plugin, which automatically identified and parsed the map. You start to get the idea?

And the neat thing is that, with the correct "extensions", you could get a wiki with graphwiz display, and a PNG converter plugin, and everything like that - thrown in! so that only mad people would use Leo (site admins and experts) but everyone else would use the Web Interface, which you would get for free!

Oh - and take a look at the freegis site, because on there you will see that there are even converters to take GIS data and convert it to blender, so you can combine openstreetmap with Geodata, to do 3D scene walkthroughs!

Lkcl 14:13, 24 March 2007 (UTC)

Yes there's loads more work to do creating scripts to move data in and out of OpenStreetMap formats. This is a (somewhat chaotic) open source development community. We tend to start with people hacking quick perl scripts to go to & from .osm format. Ultimately it would be nice to have lots of these kinds of outgoing transformations built into the Export web interface. And at the other end of course there's loads of work building plugins for software to help it bring in maps. It's an endless ongoing development task, but one we should get more organised about. -- Harry Wood 11:38, 12 May 2009 (UTC)

Batch download of mapnik maps as PNG

Please see http://serialcs.sourceforge.net, with osm.exe maps for the given area with a given step for latitude and longitude can be exported as PNG in a batch. The program posts the following string to http://www.openstreetmap.org/export/finish:

maxlat=n&minlon=n&maxlon=n;minlat=n;format=mapnik&mapnik_format=png;scale=n

With sgps.exe the maps can be used for showing the current position, works with Mono, Net Framework and NET Compact Framework 2. Sources and documentation available.

-- Daniel Stoinski 18:05, 24 Sep 2009 (UTC)

License for export

The HTML export function is lacking attribution of license. Please fix quickly! Lulu-Ann

There's already a trac ticket for this issue (set to 'wontfix') -- Harry Wood 16:22, 24 February 2010 (UTC)
OK, how do I reopen? I am not the only one who thinks that the license is needed.
Note: I demand for the adding of a few characters, that will save users of the HTML export from being taken to court by anyone who needs money. --Lulu-Ann 16:43, 24 February 2010 (UTC)
Essentially you have you have to ask the developers nicely and be polite. Not really your speciality :-P
...but don't worry I agree with you on this point. Or at least I agree that (while the license requirements are unclear, and would be unlikely to see anyone taken to court) the embeddable HTML snippit should follow the advice on Legal FAQ#I would like to use OpenStreetMap maps. How should I credit you?, and I think actually firefishy's made a code change. Hopefully you'll see this fixed on the live site soon. We'll need to remember to review this particular bit of the site when the license changes.
-- Harry Wood 17:46, 24 February 2010 (UTC)
OK, what is impolite in the above sentence? It contains a "please". As this is the only demand towards a developer I have made so far, I can't see why you call me impolite. --Lulu-Ann 21:37, 24 February 2010 (UTC)
A patch has been submitted. It will be reviewed and deployed within our usual release cycle. -- Firefishy 12:55, 25 February 2010 (UTC)

Individual Style For Attribution Links

How is it possible to style the attribution links in a personal way? I cannot seem to get a grip on them via any of the delivered css variables:

  • id = OpenLayers.Control.Attribution_2
  • class = olControlAttribution olControlNoSelect

Export

Hi, when I try to export, I get a message saying:

Error

Automated requests to the /export API are not permitted. Please see http://wiki.openstreetmap.org/wiki/Tile_usage_policy or contact the OSM 'dev' mailing list for further details.

What do I do? Sumone10154 04:25, 27 January 2011 (UTC)

I think it just means the server is too busy to serve your request at the moment. Try again later, or explore other options (which format d'you need to export to?)
You're not doing automated requests are you? Mentioned on Tile usage policy "Calls to /cgi-bin/export may only be triggered by direct end-user action. (example: click here to export) The export call is an expensive (CPU+RAM) function to run and will frequently rejects when server is under high load."
-- Harry Wood 10:44, 27 January 2011 (UTC)
I have the same behavior for some days now, especially when choosing a custom scale (say 1:20000). This may well be what Harry said: In this case the servers would have to render the new resolution tiles. --Quazgar 20:25, 5 February 2011 (UTC)

Export including too many extraneous nodes

Lately (at least the past few weeks), SVG exports have become enormous. I've been trying to export a map of southern Saint Petersburg (Russia), but the export comes to ~130MB and includes the gray background path for all of Eurasia. I tried exporting a SVG file covering Bogota, and that included a very unwelcome path for the entirety of the Americas. The problem of extraneous nodes has been present forever, but the continental scale of the problem is very new.

Needless to say, all those nodes cause Inkscape to crash before I can do much of anything. Does anyone know why this is happening? My apologies if I'm asking in the wrong place. --Peterfitzgerald (talk) 05:43, 23 February 2013 (UTC)