Tag Info

Hot answers tagged

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 ...


5

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 ...


3

If you have the Data Interoperability extension (paid license) you can export vector data (i.e. shapefiles) to the GML simple features (GML-SF) xml profile. A free and open source option is to use the ogr2ogr command-line utility from the GDAL/OGR project. i.e. ogr2ogr -f GML somevectors.gml somevectors.shp. You can install GDAL/OGR from the GIS Internals ...


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.


3

If you want to convert it to a Shapefile just download the xml (for example right-mouse-click on the download link and choose something like "save target as..." instead of opening it in the browser. then in Qgis choose "add vectorlayer" or use drag and drop to add your xml layer to your Qgis project. then save layer as shapefile. If you are just looking for ...


3

You can certainly use FME to wrangle the XML and write it to a database. Something for you to understand first is that GIS like flat data with rows and columns, including geometry. XML is not flat, it is a (maybe big) hierarchical tree, which is a fundamentally different data model than most GIS formats. That said, you can parse the XML and extract all the ...


2

The point feature is a bit more straight forward once you have your table in excel (with your X and Y columns), save it out as a .csv and you may use the Make XY Event Layer tool to convert to event layer and then use Feature Class to Feature Class tool to convert to shapefile. The polyline and polygon are not as straight forward, you will have to build a ...


2

Here are two rectangles drawn on top of the map of the States. This is WFS 1.0.0 filter with two Intersects combined with OR <ogc:Filter> <ogc:Or> <ogc:Intersects> <ogc:PropertyName>topp:the_geom</ogc:PropertyName> <gml:Polygon> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coordinates decimal="." cs="," ...


2

For anyone looking for something like this in 2014, take a look at brendannee/node-gtfs - GitHub From the site's readme.md: node-GTFS loads transit data in GTFS format from GTFS Data Exchange, unzips it and stores it to a MongoDB database and provides some methods to query for agencies, routes, stops and times. It also has spatial queries to find nearby ...


2

With ElementTree, the solution is (urllib is deprecated, use urllib2 or better, the Requests module): import urllib2 WMTS = urllib2.urlopen("http://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/WMTS/1.0.0/WMTSCapabilities.xml") tree = et.parse(WMTS) for elem in tree.iter(tag='{http://www.opengis.net/wmts/1.0}ScaleDenominator'): print ...


2

It is not possible with version 5.6.8 but if you update to version 6.4 you can use the SIA shape smoothing algorithm. The RFC of the feature is in http://mapserver.org/development/rfc/ms-rfc-94.html and current documentation about the usage in http://mapserver.org/output/shape_smoothing.html#shape-smoothing. If you must to stay with the old 5.6.8 the only ...


2

The schema for the HTTP POST encoding of a WMS 1.3.0 GetMap request is located at: http://schemas.opengis.net/sld/1.1/GetMap.xsd (It's part of the SLD specification rather than the WMS specification presumably because it was thought that the only reason a client would have for issuing a POST request rather than a GET request would be to include custom user ...


2

This should give you an idea: http://schemas.opengis.net/sld/1.1.0/GetMap.xsd


2

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/


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

The code you posted should not give an indentation error. I recommend that you open a new Python script and copy/paste the code you posted and run that. I will be very surprised if you receive an indentation error by doing that. I suspect that you may have moved the start of the last line left or right in the process of writing your question. W.r.t. ...


1

Fixed it by adding the ogc: namespace to: PropertyIsEqualTo, PropertyName and Literal: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs ...


1

ESRI has an standard xml format to export both the data and the schema of data. In ArcCatalg (Catalog window of Arcmap): 1- As arcgis cannot export shapefile directly to XML workspace first import your shapefile into a geodatabase featureclass. 2- right-click the featureCLass > Export> XML Workspace Document in the opened window there are two combo ...


1

The format of OGC XML requests are specified in the OGC Web Services Common Standard document. Then WMS (and WFS, WCS, etc.) extends these schema to save time and effort. If you have a look in http://schemas.opengis.net/ows/ you should find what you need. I don't have a good schema viewer to hand but http://schemas.opengis.net/ows/2.0/owsCommon.xsd should ...


1

Using pure GDAL, you can preserve the waypoint symbol and type of an original GPX file with ogr2ogr -f GPX -dsco GPX_USE_EXTENSIONS=YES out.gpx in.gpx waypoints <wpt lat="51.295094" lon="6.790674"> <ele>39.0</ele> <time>2014-10-14T13:56:58Z</time> <name>Push Log Point #1</name> <desc>Lat.=51.295094, ...


1

I would not know of such considerations. I wonder if performance of reading the project file is really something worth tuning, as most likely any performance impact rather is caused by other things like loading layers from providers. Is there any problem with parsing that needs to be fixed? I wonder what you are referring to with "hide changes behind an ...


1

As I continued to explore yesterday, I discovered the networkx Python library, in particular its read_shp() and write_shp() functions. import networkx G = networkx.read_shp('linesfile.shp') networkx.write_shp(G, './') Got me a lines file with the original attributes and a points file with the nodes. I'm actually thrilled at the result, though there isn't ...


1

Not sure if simpler, but as MATSim is written in Java, you could also write a converter in Java, if you're familiar with programming. MATSim includes a library which provides access to shape files, so it should be possible with the MATSim code to do this. Although, looking at the actual data, it shows why MATSim probably doesn't provide a default ...


1

Have you tried using Intersects or Overlaps? Here are examples: http://mapserver.org/ogc/filter_encoding.html#currently-supported-features https://wiki.state.ma.us/confluence/display/massgis/GeoServer+-+WFS+-+Filter+-+Overlaps


1

With my experience with Geoportal Server I have noticed that when I don't comment out simple and LDAP authentication , then I am able to log-in correctly. It might be a bug, but try uncommenting the LDAP authentication...by the looks of it, it appears as if its a DB connection issue. make sure that your ports are correct in the geoportal.xml file and that ...


1

The most obvious issue is that the GML file doesn't have a reference to the xsd schema document. Without that FME has no information on how the dataset is structured. Whatever template you are using in the XMLTemplater, you need to include that reference. Then FME will be able to view the data correctly.


1

It seems you are not aware Openlayers 2 is already able to write your features to XML based formats, so I'm not sure using x2js is useful (but I don't know your use case) It can be KML, GPX, GML v2, GML v3. Those are all subsets of XML. Read the API docs for more. You can see a sample using your code to create GML (you can also look at Vector Formats ...


1

Emacs will work fine, especially in nxml-mode if you have the relevant schema installed. But what nxml-mode lacks is the proper XML author controls which the older psgml-mode had: unfortunately psgml-mode won't work with schemas, only DTDs. SGML-mode will be useless for GML. There is also a good xslIDE-mode if you need to work on XSLT for transforming GML to ...



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