Hot answers tagged

4

Your task to connect the house number automatically to the street name will surely fail in many cases. Just imagine a street crossing with four different named streets, where the house number could be related to any of them. The only working way is to add the full adress information to the house number during editig, using the Karlsruher Schema. The ...


4

Before first use, you'll need to download some shapefiles with ./get-shapefiles.sh . No preprocessing is necessary. The python scripts are only needed if you want to make changes to the style. For example, you must run yaml2mml.py if you make changes to the .yaml file, and want these to be reflected in the .mml file.


3

As far as i know there is no such tool, as the last comment in your Linked Question mentioned. The problem with xml is that it is extensible... It means anyone can create a new schema or alter an existing one. Its a hierarchical document type with lots of possiblities to use different attributes and so on. When you want to change a schema you need to ...


3

The 3D Analyst Land XML to TIN tool did work when I run the toolbox tool itself rather than a command from the Python window. Must have had the parameters wrong.


2

I think your issue has been addressed here. As given in the second paragraph, For example, if the metadata describes the item as having one projection but the item's projection has changed since the last automatic update, the old projection information in the metadata will be replaced with the new projection information. Basically geoprocessing ...


2

Try using Overpass API and for playing around the overpass turbo frontend. Example query: [out:xml] [timeout:25]; way["highway"](51.0634071197396,13.773078918457031,51.12550562618459,13.905601501464844); out body; >; out skel qt; Visualization on overpass turbo (might be slow in your browser!) Raw data as XML Please note that the other API you ...


2

Building from the comment by @elrobis here is an example using jQuery for getting the georss and adding simple markers to a map: <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> </head> <body> <div id="map" style="width: 700px; height: 500px"></div> ...


2

You can add this statement SET XML OPTION DOCUMENT; at the beginning of the backup file. Source : https://hub.qgis.org/issues/10079


2

You have to set the scale to the fixed resolutions of the zoom levels. The TileMapScale Plugin does that for you. Apart from that, the QuickMapServices Plugin does a far better work than the XML.


2

You can use mapnik.save_map() import mapnik m = mapnik.Map(1440,800) # ... add styling and layers ... mapnik.save_map(m, "output.xml")


2

The *.osm file is a *.xml file. There is no need to convert it. Open the file within an editor of your choice and you will see the xml structure. If your application needs a file with *.xml ending simply rename it or use the *.osm file as an input. Both should be fine.


2

The link you post it brings me to a Catalogue Service where the metadata of a cartographic resource is located. This kind of Services are useful to share the information about geographic resources like who's the owner of the data, the extension, where you can download it or buy it, contact point and more other INSPIRE parameters. The XML download option of ...


2

Your best bet is to use InkScape and convert your graphics to SVG. Polygons can be filled with rasters, but points and markers need SVG. If your symbol is available in a font, you can also use Font markers. It's fairly straightforward:- Load bitmap (png, jpg etc) into Inkscape with File > Open File > Save as (use Plain SVG rather than default Inkscape ...


1

If you want a basemap with tiles, you need to render them yourself with Mapnik, Maperitive, TileMill or else. Depending on the extent of your area, you will get billions of tiles, mostly filled with ocean water. This is definitely not a task for Openlayers javascript. The OSMXML function might be useful to overlay some POI from the Openstreetmap database, ...


1

You can use the Field Calculator to do a regex substitution on the PopupInfo field, like this: The pre-logic function is: import re def RemoveTags(MyString): return re.sub('<.*?>', '', MyString)


1

You have Georeferenced images that you want to Rectify. There doesn't seem to be a command line Tool that mimics the one on the Georeferencing Toolbar, Rectify. I found a script, by Rob, that reads the control Points from the .tif.aux.xml file and passes this info to the Warp command, outputing a warped image. Please see the script at the end of this post, ...


1

ArcGIS supports a number of methods to georeference an image. IMHO its a matter of taste, what methods are associated with georeferencing, and what with "undoing" projection or distortion. The simplest of them, the affine or 1st Order Polynomial supports translation, rotation, and scaling. This one is parameterized by the numbers saved in a "world file", ...


1

An example of a geoserver layer WFS bbox request would go something like this: http://myserver/geoserver/wfs?srsname=EPSG:4326&BBOX=xMinimumValue,yMinimumValue,xMaximumValue,yMaximumValue&typename=workspaceName:layerName&version=1.0.0&request=GetFeature&service=WFS


1

They are many Python modules to parse XML files (PiPy:xml) but xml.etree.ElementTree is a standard module With your example from xml.etree import ElementTree as ET with open("testodk.xml") as odk: tree = ET.parse(odk) coords = tree.find('KOORD') print coords.text 56.1234 13.1234 70.1234 7.1234 name = tree.find('NAME') print name.text Place name To ...


1

You need a part of the answer for ways. Ways in OSM are ordered lists of node references. So the part of the answer what you need should looks like: <way id="22940464"> <nd ref="272304964"/><!-- First node --> <nd ref="273206415"/><!-- Second node --> <nd ref="273206424"/> <nd ref="1827734835"/> ...


1

The world picture is rendered from a shapefile. For detailed maps, you need to put the openstreetmap data into a postgis database using osm2pgsql (not osmosis!). http://wiki.openstreetmap.org/wiki/Mapnik can lead you to further instructions how to set up the database properly.


1

Got it working using the fmi package in R. https://github.com/rOpenGov/fmi/blob/master/vignettes/fmi_tutorial.md


1

Have you tried the fmi R package from rOpenGov? This is an example partly from their tutorial and ran for me just fine: install.packages(c("devtools", "sp", "rgdal", "raster")) # if you haven't library(devtools) install_github("rOpenGov/rwfs") install_github("rOpenGov/fmi") library(fmi) library(sp) apiKey <- "ENTER YOUR API KEY HERE" request <- ...


1

There are some interesting irregularities here. I'll try to generalize the answer, particularly by discussing the parameters that are zeroes in this definition but might not be in another XML-based coordinate reference system (CRS) definition. A colleague pointed out that usually XML has uses angle brackets for the attribute/value pairs. The geographic ...


1

If you wish to retrieve the OSM Raw XML, that is how Overpass API query would look like: http://www.overpass-api.de/api/interpreter?data=[bbox];(way[admin_level="2"];way[border_type="nation"];);(._;>;);out body qt;&bbox=112.5,31.9521,123.75,40.9798 Please replace that &bbox=112.5,31.9521,123.75,40.9798 with coordinates of the region of your ...



Only top voted, non community-wiki answers of a minimum length are eligible