Tag Info

Hot answers tagged

6

There is actually an ArcGIS tool specifically for this task: Convert Time Field. You don't even need to use the Field Calculator. Just specify the format of the source date/time field and your desired output format and the tool will create a new field and populate it with the converted values. It can be used for converting dates, times, or a combination of ...


4

This method uses the intersect() function from the raster package. The example data I've used aren't ideal (for one thing they're in unprojected coordinates), but I think it gets the idea across. library(sp) library(raster) library(rgdal) library(rgeos) library(maptools) # Example data from raster package p1 <- shapefile(system.file("external/lux.shp", ...


3

You have to reproject one layer to another name and the CRS of the other before you can merge them. Merging only works if both files look well-placed with On-the-fly-reprojectionturned OFF.


2

A group aesthetic is missing: ggplot() + geom_polygon(data=fortify(regions), aes(long, lat, group=group)) Otherwise the last point of a polygon is connected with the first point of the next polygon. See also here: SpatialPolygonDataFrame plotting using ggplot Remove connecting lines in ggplot2 geom_polygon


1

I am sure all your classes are represented in your feature class. They will be further down in the attribute table. You have more than 200.000 features. As Michael said, when you convert a raster into a Polygon, pixels of the same class, which are not directly connected will be represented in a different class. Try to dissolve you new feature class (data ...


1

Based on the screenshot, you are most likely using ArcGIS. In that case, I strongly recommend you to not use any shapefiles as the source of your routing network, but use ESRI's free "ArcGIS Editor for OpenStreetMap", which is a very useful ModelBuilder toolbox with tools for OpenStreetMap data. It has build-in tools for downloading the required data, and ...


1

I think you are looking for the Intersection tool available in QGIS. In the following picture each feature of the blue polygon has a soil attribute and while the red polygon is the polygon of your clip. Using the Intersection tool in QGIS (Vector -> Geoprocessing -> Intersection) or in Processing (open the Processing toolbox and type Intersection) the ...



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