Tag Info

New answers tagged

0

I don't know why "Feature to Raster" doesn't work, but found out that "Point to Raster" does! I just used my Shape-Layer as in-feature, the height as value field, MEAN for cell_assignment (That's the one for DEMs, right!?) and my wanted cellsize. Maybe this will help anyone in the future... :)


2

ArcGIS solutions: Convert the x,y,z data to a feature class then: Build a TIN using x,y,z data and then convert this to a raster. Interpolate the x,y,z to raster. Use Anudem (topo2raster) to create a DEM. Convert point to raster and just set a cell size that is suitable for your x,y,z data (usually only for dense data). I would output a GeoTiff. x,y,z ...


0

The ArcGIS online help says: Because interpolation of the input TIN surface occurs at regular intervals, some loss of information in the output raster should be expected. How well the raster represents the TIN is dependent on the resolution of the raster and the degree and interval of TIN surface variation. Generally, as the resolution is increased, the ...


1

Then I put every record in the rows of a pandas.DataFrame Why ? If you only want to copy the original attributes (LineString) to the new shapefile (Points), after computing the centroid, you don't need Pandas: import fiona from shapely.geometry import shape, mapping with fiona.open("polyline.shp") as input: # change only the geometry of the ...


2

If you don't know the extent in coordinates of the prj file, you have to georeference the file manually using ground control points. This is rather comfortable if you have QGIS installed, and you can guess some details from the image. In some cases, you can build the extent manually if the filename follows a certain rule, like the one-degree-SRTM files do. ...


1

MapInfo supports GeoTiff, just use File > Open and change the 'Files of Type' dropdown to 'Raster Images'. This should generate a tab file for your GeoTiff.


2

No need for a third party tool. Change the extension to .zip, open and extract the file you want.


3

Look at the samples on the specification site. You'll need to write a script in the language of your choice that will get you from [ {"date":"2014-09-25","time":"20:49:09","lat":"53.269","lon":"6.935","depth":"3.0","place":"Meedhuizen","mag":"1.5","type":"GH","last":"True"}, ...


1

Please read the sp vignette on spatial classes and methods. vignette(package="sp")[4] vignette("intro_sp") Since there is a slot (@data) that holds a data.frame related to the sp object, no coercion is required. class(foo@data) str(foo@data) ( df <- foo@data ) However, it is good practice to operate directly on the @data slot rather than pulling ...


0

Here is a working solution, that assumes you have your KML data in a string. If its in a file, you can skip the first step where a temp file is created. The KML driver from ogr only reads from file as far as I know. Tthere might be some more elegant ways of converting the ogr feature to a GEOSGeometry (without converting it to json and back). But this is ...


5

To read your shapefile, i recommend you to use rgdal package and its readOGR function, or eventually use readShapeLines from maptools package. These packages rely on the sp package as concerning how the geospatial data is structured in R. You can do easily this to convert your shapefile into data.frame (ie extract the attributes of the shapefile) ...



Top 50 recent answers are included