Tag Info

New answers tagged

4

According to the ogr2ogr csv documentation and also this answer, you need to specify which fields contain the geometry in a VRT file: <OGRVRTDataSource> <OGRVRTLayer name="test"> <SrcDataSource>test.csv</SrcDataSource> <GeometryType>wkbPoint</GeometryType> <LayerSRS>WGS84</LayerSRS> ...


0

Circumventing ogr2ogr for the first conversion, I've found a unix tool that will allow me to do this (https://github.com/mapbox/csv2geojson) csv2geojson -lat "latitude" -lon "longitude" input.csv > intermediatefile.geojson I use a constant name for the output file so it gets just overwritten a bunch of times, but now I can convert to kml ogr2ogr -f ...


0

Circumventing ogr2ogr for the first conversion, I've found a unix tool that will allow me to do this (https://github.com/mapbox/csv2geojson) csv2geojson -lat "latitude" -lon "longitude" input.csv > intermediatefile.geojson I use a constant name for the output file so it gets just overwritten a bunch of times, but now I can convert to kml ogr2ogr -f ...


1

There is a free REST API for this Simply POST GeoJson Data to an endpoint, and view the POI in Augmented Reality browsers(wikitude) , google earth, google maps or any GPX(track and route), KML, ARML supported app in real time. https://www.mashape.com/geokoala/geokoala/overview Just create an AppKey, and check out the code samples in ...


3

To find out the right CRS, create a new project in QGIS with project CRS set to EPSG:3857, load Google or OpenStreetMap background from the Openlayers plugin, and look where your data is placed. If you set the Layer CRS of your data to EPSG:32749 WGS 84 / UTM zone 49S, your data will be placed in the right position (at least the same place a Google search ...


2

Those input points are not in urn:ogc:def:crs:OGC:1.3:CRS84, since that is (roughly) WGS84 lon / lat, and (taking the first point): [ 383707.21875, 9211513.0 ] is not a reasonable lon / lat combination. What QGIS is (probably) doing in converting that point to -52.78125,9211513.0 is taking 383707 and wrapping it around a few times (383707.2185 - 1066 * 360 ...


2

The difference is in interpolation (Topo to raster) and conversion (Point to raster). Thats why is your first image "smoother" than the other. Topo to raster interpolate surface from points, even if there is some "gap" in point, function interpolate values from points around. On the other side, Point to raster converts exactly the values of the points to ...


2

According to this ticket: http://josm.openstreetmap.de/ticket/10214 you need to have a .cpg file along with the shapefile with the correct encoding written inside. And a josm version that is less than 6 months old (when the bug was fixed).


0

You can use arcobjects for this by grabbing the element envelope and converting it to graphic: This example shows how to do it for legend element. Converting Legend to IGraphicsComposite in C# // Convert legend to graphics IPageLayout pageLayout = mxDoc.PageLayout; IActiveView activeView = (IActiveView) pageLayout; IGraphicsContainer graphicsContainer = ...


1

I have run into the same problem using QGIS today. Whilst I appreciate that it's late to answer I thought this might help. My KML (WGS84) layers, which were exported from an OSGB (ESPG:27700) Shapefile were all offset to WSW by 3 - 5 Metres. I managed to work around this by exporting to GeoJSON (WGS84) and then exporting the GeoJSON layer to KML format. ...


2

There is a native (non-plugin) solution within QGIS: Right-click on your shapefile layer and select "Save as". Select CSV format; Deselect "Add saved file to map"; Under "layer options", select GEOMETRY AS_XY (for point files) or GEOMETRY AS_WKT (for points, polygons or lines). For point files only, this will output a CSV file with an X and Y column in ...


3

You can use the Geometry Export to CSV function on your shapefile to obtain coordinates via: MMQGIS > Import/Export > Geometry Export to CSV Make sure it is enabled in Plugins > Manage and Install Plugins...


1

(Credit to @Russell at ISC for the use of the modulo operator.) We have a table in SQL Server with a column of geography data type, called [GeoCoor]. This is how we convert to degrees, minutes, and seconds: SELECT [GeoCoor].[Lat] as [DecimalLatitude], floor(ABS([GeoCoor].[Lat]))*(CASE WHEN [GeoCoor].[Lat] < 0 then -1 ELSE 1 END) as [LatDegrees], ...


1

Yo uhave the municipality boundaries a a shapefile, and your jpeg has "homogeneous" values inside each municipality. Therefore, the best method to get your values is tansfer the values of eac band. It is easy if you have spatial analyst licence: 1) feature to point with the "inside" option to build the centroid (or add XY fields and make XY event layer if ...


2

Used Geokettle religiously for a small project high learning curve unless you used to an Eclipse UI... Really powerful as its compiled against GDAL1.10 support all geo types... What I liked was its support for both stored data and data via services... I used it to recreate and sync ArcGIS server datasets on a local postgis instance via ESRI json to ...


3

First, when you bring your DWG into ArcMap, there is no need to convert it to another file type, unless you are trying to edit the linework. You can view the file and change the way it looks without doing any conversion. (If you do need to edit it, right-click on the Polyline layer in the DWG and choose "Data" and "Export Data." You can then export it ...


1

Although my answer is a bit late, it might be of help to others. QGIS (at least since the current version 2.6) now also has an integrated model builder. Through this toolbox you can access hunderds of algorythms (GDAL, GRASS, SAGA, vectortools, etc). You can also add you own script. I must admit I have not used it extensively, but if I was looking for a ...


2

I just entered the coordinates into Google maps. If you change them to 35.205357, -111.59330 it puts you in the Flagstaff area. So The coordinates may have just had their decimal places in the wrong places or missing.


1

The latitude value could be 35 20 53.57 while the longitude value could be -111 59 33. Or they could both be decimal degrees, with the appropriate insertion or change of position.



Top 50 recent answers are included