Tag Info

New answers tagged

0

If you don't like creating of VRT file mentioned above, you can use MyGeoData Converter - the import tool will create the VRT file automatically. Coordinate column is detected if the attribute name of X coordinate is: x, xcoord, xcoordinate, coordx, coordinatex, longitude, long or the attribute name contains: x_*, *_x Similar for Y coordinate: y, ...


0

the raster data and the shape file still don't share the same extent, there is another way to export the projected raster data with sharing the same extent like your point data. Save it for a New raster data as a tiff file. and this New raster data would have same extent as your shape file. hope it works.


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


3

There might be multiple crater holes in this area. In a Russian language magazine Science First Hand there is an article that mentions different coordinates, though the pictures look familiar. The coordinates mentioned in the article are 69°58.268'N, 68°22.2'E Below is an image taken as a screenshot from the Russian Federal Space Agency portal that ...


0

If your file is an .xls or .xlsx file these should open correctly in ArcMap. Clearly this isn't happening though, but my experience of using Excel is that it simply stuffs up csv exporting and the resulting file isn't usable. Does opening the .xls or .xlsx file in LibreOffice Calc then saving as a text csv (with commas as a field separator) and importing ...


4

On the bottom of the application you can set extent or the center of the map. It looks like this: l The first button switches between extent and map center.


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


2

If you know the coordinate values of the north, south, east, and west edges of the grid and the number of rows and columns, then you can calculate the row and column of a known x,y point (your weather station) using the following equations: row = Math.round((numberRows - 1) * (north - y) / (north - south)) column = Math.round((numberColumns - 1) * ...


1

Finding the center is not as simple as you think. take an example square in EPSG:4326: Transform it into World Mercator, and the center is somewhere else: In Lambert conformal conical, it is not yet a rectangle: And same for azimutal equidistant: So be careful if you think of a "simple" rectangle and its center point. The world is not a plane! My ...


2

Vincenty's formula (ellipsoid based) is more accurate than haversine (sphere based). Also, lat and long are usually expressed in degree, but your coordinates are not in 0-180, therefore you could be in another system than expected.


1

From wiki/Tessellation A tessellation of a flat surface is the tiling of a plane using one or more geometric shapes, called tiles, with no overlaps and no gaps. I think the same word can be used to describe the tiling of a sphere. If you're after the (very conventional) spherical equivalent of a planar grid, then the word is graticule – the ...


1

Something like: Coordinate[] coords = geometry.getCoordinates(); StringBuilder out = new StringBuilder(); out.append("coordinates="); boolean start = true; for(Coordinate c: coords) { if(!start){ out.append(","); }else{ start=false; } out.append(c.x+","+c.y); }



Top 50 recent answers are included