Tag Info

Hot answers tagged

5

One of the fastest and easiest possible solutions uses a short program written with the free open source program R (the R project for statistical computing). The following code computes the distance matrix (using spherical distances) between two arrays of (lon, lat) coordinates named customers and facilities and stores it in an array distances (with rows ...


3

PostGIS comes with a shapefile loader called shp2pgsql which converts a shapefile into the SQL statements that are needed to load the data into PostGIS. You can find a detailed description of the command and the options needed on this page. But it boils down to something like: shp2pgsql -I -s 4326 input.shp schema.table > output.sql


2

The simplest solution I can think of would be to import the shapefile into PostGIS using Shapefile to DBF loader (or if in another format write a scipt to upload using ogr2ogr). Then once in PostGIS you can create the dump file. If you use PgAdmin then both these operations are very easy as the shapefile loader is a plugin to PgAdmin and to dump, just ...


2

It should not be too hard to achieve this by converting the PDF to an image format (say Tiff) and georeferencing that image and projecting it in the same projection as the data you are overlaying. You will not be 100% accurate but with care you can get a good result. A few random thoughts: As seems typical with so many maps, there are no graticules or ...


2

Since you are using arcpy, you will be able to modify how the KMZ is exported. I am not sure if that is the kml_document or kml_id attribute controlling your hoover/click, but essentially you can control what value is in both of those attributes. See the KML documentation. Also, an excellent webcast from FME (even though that is not the software you are ...


2

If you need ruler distance, You can use the distance matrix tool in Quantum GIS. Quantum GIS can read your KMZ files. Then you can easily compute the distance matrix. Here is tutorial http://qgis.spatialthoughts.com/2013/04/tutorial-nearest-neighbor-analysis.html


2

You can do the following to name the kmz file and place it in the folder you want: arcpy.LayerToKML_conversion(fNAME, "c:\\temp\\" + str(fNAME) + ".kmz", "12000", ..... or in the env.workspace but a new subfoler - if it exists: arcpy.LayerToKML_conversion(fNAME, "KMZ\\" + str(fNAME) + ".kmz", "12000", .....


1

I think you must to adapt your code perl script to generate a functional code like below: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>BalloonStyle.kml</name> <open>1</open> <Style id="exampleBalloonStyle"> ...


1

import your KMZ in arcGIS using "KML to Layer". you can then use the "near" tool in arcgis.(http://resources.arcgis.com/en/help/main/10.1/index.html#//00080000001q000000) for "straight line" distances. For real distance, you need the Network analyst extension and the road network in a vector format as well (see ...


1

You have not said how you converted the KML to shapefiles. Maybe something has gone wrong in that step. KML has some features that shapefiles don't allow and QGIS can not work with (like MultiGeometry), which might lead to an empty layer. You can activate the feature counter or look up in the attribute table if there are entries at all. Furthermore, you ...


1

If you have more than one GeoTIFF, you can mosaic them before the conversion. For instance, you can make a virtual mosaic from all of them contained in the same directory: gdalbuildvrt mosaic.vrt *.tif gdal_translate -of KMLSUPEROVERLAY mosaic.vrt out.kmz


1

I employed a trick described here and could get all your polygons in one page Trick is: First get the URL of the KML export. When viewing your Custom Map, right click the 'KML' link and copy the link to the clipboard (probably something like 'Copy Shortcut' or 'Copy Link Address' - depends on your browser) Now display your KML again. I have ...


1

With @Vince's help, I found a number of ruby libraries so far, one of which I should be able to hack together to make this work. Thanks Vince the douglas_peucker gem. https://rubygems.org/gems/douglas_peucker I haven't even begun to actually solve this yet, but when I do, I imagine I'll be taking each Polygon and converting it into an ExteriorRing, then ...


1

To expand on my comment above - In 10.1/10.2 the export to KMZ tools as very "what you see is what you get". That is, what you see inside ArcMap is how the output KML should look. This is the reason you need either a layer from ArcMap or a LYR file for the Layer to KML tool (opposed to just features). For points, the symbology you have inside ArcMap gets ...


1

The kml/kmz will be available offline, unless it is a network link. You will probably want to get an aerial or basemap of some kind and create on image overlay kml. This will let you have basemap data. Qgis works well on android and would allow data (of your own). You still would need a basemap clipped to your area of interest. Answer the device question and ...


1

I'm not sure about that specific model, but many Garmin Nuvis do not allow uploading tracks or routes. It is only possible to upload waypoints/favourite locations. So to add your trails you would have to create a map as Garmin IMG file. There are a few tools which can do this. One free option is Javawa IMGfromGPX. Just specify your GPX track files as ...


1

I was able to extract Stakes for monitoring 2 stakes with the following code. I read over the official Python docs on the xml module: from xml.etree.ElementTree import fromstring kmz = '''<table><tr><td valign="top">Description</td><td>Stakes for monitoring 2 stakes </td></tr><tr bgcolor='3aafe8'><td ...


1

From the Australian Bureau of Statistics: The product includes boundaries of Local Government Areas, Statistical Local Areas, Statistical Divisions, Statistical Subdivisions, States, Statistical Districts, Major Statistical Regions, Statistical Regions and Statistical Region Sectors, current at 1 July 2011. The digital boundaries are available ...


1

See http://hub.qgis.org/projects/geotagphotos/wiki This plugin can be considered an upgrade of the already existing and very good photo2shape plugin (http://hub.qgis.org/projects/photo2shape), developed by Alexander Bruy. The Geotag and import photos plugin was developed by Alexander Bruy and funded/designed by Giovanni Manghi and Lolita Bizzarri ...



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