Hot answers tagged

9

GML, http://en.wikipedia.org/wiki/Geography_Markup_Language KML, http://en.wikipedia.org/wiki/Keyhole_Markup_Language GML / KML difference http://en.wikipedia.org/wiki/Geography_Markup_Language#GML_and_KML


8

OSM2GEO - A JS Converter to convert OSM to GeoJSON * OSM2GEO - OSM to GeoJSON converter * OSM to GeoJSON converter takes in a .osm XML file as input and produces * corresponding GeoJSON object. * * AUTHOR: P.Arunmozhi <> * DATE : 26 / Nov / 2011 * LICENSE : WTFPL - Do What The F##% You Want To Public License * LICENSE URL: http://sam.zoy.org/wtfpl/ * ...


7

From W3C's Extensible Markup Language (XML) 1.0 (Fifth Edition) recommendation: [Definition: The XML document type declaration contains or points to markup declarations that provide a grammar for a class of documents. This grammar is known as a document type definition, or DTD. The document type declaration can point to an external subset (a special kind ...


7

Here's what we've been doing to set up THREDDS Data Server (TDS) catalogs for regional oceanographic modeling providers in the US Integrated Ocean Observing System to serve their models results. There are four basic types of catalogs we have been setting up: A top level catalog that points to other catalogs that you want exposed An "all" catalog that ...


7

Data needs to located in a geodatabase in order to export to XML. You can do this manually, or use the tool Export XML Workspace Document (Data Management). For the manual approach, simply right-click the featureclass or raster dataset within the file geodatabase > Export > XML Workspace Document. Which then brings up the following GUI, where you can ...


6

Before I try to answer, a tip. Your exception handler covers up the nature of the problem. Just let the original exception rise up and you'll have more information to share with people who are interested in helping you. I like to use feedparser to parse Atom feeds. It does indeed give you dict-like objects. I submitted a patch to feedparser 4.1 to parse the ...


6

Every XML document essentially has some given structure. When the structure is formally specified, we usually talk about a given XML grammar. The formal specification can take many forms, e. g. DTD (Document Type Definition) or XML Schema Definition (XSD). XSD itself is a XML document and is now being used for GML. There are also other means of specifying ...


6

For those who will stumble on this question like me.. It appears that the plugin has been generated (https://github.com/strk/mapnik/tree/2.3.x-pgraster) and has been merged in official Mapnik Repo. The branch is 2.3.x (https://github.com/mapnik/mapnik/tree/2.3.x) Now you can build Mapnik from the branch and use PGRaster plugin to use Raster data from ...


5

When someone designs a class of XML documents for representing information in a particular domain, they will sometimes call this an XML grammar, or a vocabulary, or a schema, or a document type, or even a language. The terminology isn't consistent. There's perhaps a different emphasis: calling it a schema implies that an XML Schema is the primary way in ...


5

Instead of getting the dataset: // Retrieve the first feature dataset from the workspace. IEnumDatasetName enumDatasetName = workspace.get_DatasetNames (esriDatasetType.esriDTFeatureDataset); You can get the feature class by: IEnumDatasetName enumDatasetName = workspace.get_DatasetNames(esriDatasetType.esriDTFeatureClass); See this thread: ...


5

I enjoy using ElementTree. It's standardized in Python since 2.5 as xml.etree.ElementTree. Forgive me for being blunt, but you're using it wrong. I suggest trying the find, findtext, and findall methods when you know the structure of the data. Is Order your root element? If so, >>> geography = rootElement.find('OrderRequest/SiteGeography') ...


4

The development (as march 2013) version of gdal has read support for OSM, both for plain XML and PBF format. So you can convert your OSM file with: ogr2ogr -f GeoJSON myfile.geojson myfile.osm.pbf


4

It looks to me like the server is trying to validate your XML request, and failing to find the XSD that contains the definition of GetRecords. I think the EPSG sample is outdated for that server, because changing the CSW namespace to http://www.opengis.net/cat/csw/2.0.2 gets me some more errors about the Query element. Annex C of the EPSG API spec tells us ...


4

You could give the GDAL/OGR utility ogr2ogr a try. It has to capability to convert between many formats of vector spatial data. GDAL/OGR Downloads ogr2ogr Utility OGR GML Driver Documentation Depending on the flavor of your XML/GML it may be able to extract the spatial components straight away, and be as simple as: ogr2ogr -f "esri shapefile" ...


4

Use a capitalized Or instead of all-caps OR to wrap your criteria: <ogc:Filter> <ogc:Or> <!-- Criteria --> </ogc:Or> </ogc:Filter> I can't find any definitive answers about case sensitivity in filters, but the XML schema on the OGC site uses "Or" instead of "OR".


4

If you load the data into PostGIS, is there a column created for this category you mention? If so, you could use that attribute to specify the output shapefile name by setting the dynamic writer properties to use that attribute as the feature type name. Another possibility is using something like imposm.parser and Python to parse the XML file and generate ...


4

Updated: OSM Reader for FME 2013 (Beta) =========================== BUILD 13082 20120417 =========================== =========================================================================== OSM reader: Updated to support reading very large datasets, for example ~764 million features on a European OSM dataset (PR#37345) ...


4

If you are at 10.1, try using the Export XML Workspace Document (Data Management) geoprocessing tool. I'm not sure exactly what it will do if you specify a feature class that participates in a relationship class, but I imagine it will include the relationship class and related object classes as well.


4

If you are comfortable with Python, you could use ElementTree to parse the XML and pyshp to create the shapefile. Here is something you can start with: from xml.etree import ElementTree import shapefile import os xml_file = 'input.xml' shape_file = 'output.shp' projection = ...


4

The thing here is that you have given the example of amenity = school tag, but you are actually querying building = school. It is normal for buildings inside school to be tagged as building = yes, hence the query will not return them. In the second query, the format of bbox-query should be like below. <bbox-query e="7.25" n="50.8" s="50.7" w="7.1"/> ...


4

There is a service that allows you to retrieve any administrative border from OpenStreetMap in a number of formats. https://osm.wno-edv-service.de/boundaries/


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

The only useful data in the screenshot you added of the XML contents is the path to a .jpg file. Why don't you just locate that and bring it into ArcGIS? ArcGIS won't be able to understand the XML file directly. You'll have to georeference it manually if it doesn't have an accompanying "world" file (.jgw, typically). Side note: XML is just a markup ...


3

You cannot combine filter options (condition A && condition B). What you can do is filter in two different steps - first keep only ways satisfying the source condition and then filter the first step's result using the attribution condition. E.g.: ./bin/osmosis --rx file=ireland.osm --tf accept-ways source=* --un --wx step1.osm ./bin/osmosis --rx ...


3

If you have ArcGIS and if you have also installed the Data Interoperability Extension (ArcGIS-integrated version of FME by Safe Software), you can read simple GML and WFS data sources without a license for the extension (source). As long as your GML data sticks to the GML Simple Features profile, you do not need to enable the Data Interoperability ...


3

I sometimes find that the official OSM Xapi is not that reliable, indeed it is currently shown as being down for maintenance. You will probably be better off using the Mapquest Open API - url as follows: http://open.mapquestapi.com/xapi/api/0.6/node[amenity=restaurant][bbox=9.4908142,48.7810801,9.5660019,48.8387351] They also have good docs for all ...


3

Here is an example of a WMS from my config file... <layer label="NWS RADAR" type="wms" autorefresh="66" skipgetcapabilities="true" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0q.cgi" version="1.1.1" visible="false" visiblelayers="nexrad-n0q-900913" alpha=".5"/> That is a RADAR layer I'm getting from the University of Iowa. Here is one ...


3

You should create empty vector layer and then add vector features from your files: var osm = new OpenLayers.Format.OSM(); var files = ["url1", "url2", "urlN"]; var vector = new OpenLayers.Layer.Vector("OSM Layer"); for (var i = 0; i < files.length; i++){ OpenLayers.Request.POST({ url: files[i], success: ...


3

why dont you use ArcGIS SOAP or REST service interfaces. it already gives you what you want... it has query field which returns the result as html,json,kmz and amf too.. you can check out some service here, at least in terms of giving an idea... This is an example service link, will return you id:129 object properties: ...



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