Tag Info

New answers tagged

1

Since you've already got a list of dicts, you can use Shapely (to manage the geometry) and Fiona (to write the shape file). from shapely.geometry import mapping from shapely.wkt import loads from fiona import collection schema = {'geometry': 'Point', 'properties': {'atribute1':'value', 'atribute2':'value'}} with collection("output.shp", "w", "ESRI ...


0

First, if you don't have a geometry/geography column in the table yet, add it by converting WKT or WKB to geometry/geography using SQL Server Spatial (STLineFromText, STPOlyFromText, STPointFromWKT, similarily works from WKB). Then, simply connect to the database (Database Connection) and create a query layer. At this point, you'll have a layer in the ...


0

An update to the answer Nowadays, OpenLayers 3 support WKT whereas as pointed by @chrki it wasn't possible before. See the API docs and the WKT demo in action from the official samples.


0

Openlayers have an nice example on generating WKT on the fly for drawn objects. http://dev.openlayers.org/sandbox/docs/examples/wkt.html I know that it is not a desktop version that you ask fore, but it is probably the simplest solution you can find...


1

I do this from time to time in QGIS: Add an OpenLayers layer (in this case OSM); Set the project projection to the desired coord system (i.e. WGS84 UTM 36S); Create a new temporary shapefile or Spatialite layer (tempWKT here), also set to the correct coord system; Start editing the temp layer and add the desired polygon: Select the polygon using the ...


1

The Feature info tool of OpenJUMP shows also the WKT of selected features. However, with some scripting it is possible to not only show the WKT but also to embed WKT into something else and more powerful. Here comes a small OpenJUMP tool that takes the WKT of each feature from a layer and inserts it into Intersects query for Oracle Spatial. Install ...


1

I have a rough, buggy ArcMap AddIn that I regularly use for diagnostics: WKQuery It's a 10.0 AddIn, but I use it 10.1 and 10.2 with no trouble (well, the same amount of trouble that I have in 10.0). But the first 3 buttons will let you draw on the map and dump the WKT to a text box in a dockable window (last button in the toolbar): Again, it's buggy and ...


6

While PostGIS can handle mixed geometry types, this won't help you for QGIS. Regardless of their source all layers in QGIS can only be of a single geometry type.


2

Lets assume you want to save a feature from a OpenLayers Vector Layer into PostGis and that you want to achieve this using GeoServer. The general steps would be as follows: You need to configure a WFS in geoserver using PostGis as a data store (GeoServer publish posgis table) You need to configure your vectyor layer to point to the wfs you just created ...


0

Try this: PROJCS[ "Popular Visualisation CRS / Mercator", GEOGCS[ "GCS_WGS_1984", DATUM[ "D_WGS_1984", SPHEROID[ "WGS_1984", 6378137.0, 298.257223563 ] ], PRIMEM[ "Greenwich", 0.0 ], UNIT[ ...



Top 50 recent answers are included