A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

learn more… | top users | synonyms (2)

4
votes
3answers
221 views

How to link data to a polygon ArcMap 10.3

I have a map with different polygons (118). Each of this polygons represent diferent vegetation types. For each of those polygons I have data of which species there is and how abundant they are (the ...
1
vote
1answer
54 views

How to map a point to a polygon label from a shapefile

I have a shapefile that breaks the city of San Francisco up into a number of different districts depending on who your supervisor is. I need to make a lookup tool that takes a single long lat value ...
0
votes
0answers
25 views

How to merge shapefile data and pick out what has changed in QGIS?

I work for a conservation charity just starting to use QGIS. I am starting to think about how to consolidate GIS shapefiles returning from different and separate project areas across the UK to be ...
7
votes
2answers
254 views

Batch Convert Folder of Shapefiles to KML / KMZ

I am looking to convert a folder with multiple shapefiles (over 100) to KML/KMZ files. I am sure I can build a model in ArcGIS to do this conversion but I am unsure on the iteration I should use. I ...
1
vote
1answer
47 views

Add an area field using a shapefile

I have an attribute table of xy points that I have plotted on a map, and a shapefile that divides the map into 46 different areas. I want to add a field/variable to the table containing the xy ...
0
votes
1answer
46 views

R: Convert Extent Object to Shapefile

I want to convert R 'library:raster' 'extent' object to a shapefile. I have the CRS available too. e= c(4304916, 4305325, 365216, 365439)#xmin, xmax, ymin, ymax proj4string(e) = CRS("+proj=utm ...
3
votes
1answer
44 views

Script for updating certain shapefile records meeting different conditions

This is my scenario: List of names in a python list: a[] A 1000 records shapefile with a column: 'name' (populated) A second column called 'value' ArcGIS environment (arcpy) I want to update the ...
0
votes
0answers
24 views

Enclosing building models from bottom (Missing GroundFeatures) using FME?

I have 3D building model of the city and I would like to export it to proper CityGML model. I am trying to find out, how to make an intersection of building and terrain in order to make ...
3
votes
1answer
72 views

Define cellsize from spsample in meters

I use a shape file to create a regular grid using spsample, from sp package. Two problems here: (1) I would like to define the size of my grid cells in meters, but I've checked the documentation of ...
1
vote
1answer
35 views

How to combine a road network to multiple shapefiles with no shared attributes

I am trying to create an agent-based model and I need a .CSV file that contains the attributes of a routable road network and a number of other shapefiles I have. I have the following: Ordnance ...
0
votes
0answers
44 views

Union overlapping shapefiles (poylgons) and merge the attributes where overlap occurs in R

I have 30 shapefiles of overlapping polygons and would like to union them into one shapefile. The attribute table of the 30 layers is exactly the same (two columns, Type and Origin). A new polygon ...
1
vote
2answers
50 views

Greek characters are not displayed correctly in qGIS on Windows8

I am working on a laptop with two operation systems. One Windows8 and one with Ubuntu 12.. In both systems I have installed qGIS and in Windows I also have the FME 2014. I am trying to load a shape ...
0
votes
0answers
117 views

get latitude and longitude of each grid point in a grid with squared cells based on a given shapefile

I would like to draw a grid whose cells are all squared on a given shape file. The shape file has the information of U.S. map at zip code or county level. I need to create the squared grid (with a ...
0
votes
1answer
73 views

How do I find out when a shapefile was created?

I am working on a project at an agency with a large amount of prior data stored in a shared database connection .sde folder to which I have access. While this is incredibly helpful, I would like to ...
1
vote
1answer
40 views

QGIS - find sections of district boundaries that overlap with city/county boundaries from shapefiles

I am working on a project where I need to find, for each US congressional district, how much of the congressional district's perimeter overlaps with a city or county boundary. Since the boundaries are ...
1
vote
1answer
40 views

Convert Shapefile (.shp) to GTFS

I need to convert a Shapefile (.shp), shx or dbf to GTFS (General Transit Feed Specification https://developers.google.com/transit/gtfs/reference). Do you know any tool for this issue?
0
votes
1answer
50 views

Reverse gdal_rasterize (-i option) does not work

When I use: gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff I get a new tiff with a white hole in it with the shape of the polygon shp. However, when I use the ...
1
vote
1answer
57 views

Clipping a coloured raster with polygon shp in gdalwarp changes original values, why?

I need to clip my raster based on a polygonal shapefile, basically leave raster values inside the polygon shape (inside red perimeter in the figure below) as shown here: Therefore, I use: gdalwarp ...
1
vote
1answer
36 views

The shape does not fit the ggmap

I try to fit my shape to the google map. require(rgdal) in.dir <- getwd() sh <- readOGR(in.dir, layer = "Ytor", p4s = "+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 ...
1
vote
1answer
76 views

ogr2ogr - Convert geojson to shapefile create offset in coordinates

I want to convert this geojson file below into a shapefile using ogr2ogr command ogr2ogr output.shp input.geojson. However, an offset is appearing in the output coordinates that make the shapefile ...
2
votes
2answers
71 views

How to split a vector file by date (year) but the column containing dates is in Day/Month/Year format.

I am using national accident data in QGIS and quite frankly the dataset is huge as it contains every recorded accident between 2005 and 2014. I've split datasets by field for a number of vector ...
3
votes
1answer
85 views

How to automatically assign current map scale to a shape created in QGIS?

In QGIS, would it be possible to automatically assign the current map scale to a feature created during an edit session and save it into a field in the attribute table? I have a series of OS maps of ...
0
votes
0answers
26 views

How to find the most accurate street/road by a given coordinate and some previous locations?

I'm building an application that gets user's position and tracks its changes while driving providing some information stored in shape file. To get the most accurate information from this shape file ...
1
vote
0answers
45 views

Seeking shapefiles for Indian Metros?

I am looking for shapefiles with ward boundaries for the following Indian cities: Mumbai (electoral wards), Hyderabad, Ahmedabad, Surat and Kolkata. Does anyone has them or know where I can get them ...
2
votes
1answer
21 views

Entering data down column using tab or return key in QGIS for Mac?

I have many shapefiles that require I manually populate data fields in an attribute table. I am using QGIS in a Mac system. For speed and efficiency, I prefer to use the tab or return carriage to ...
0
votes
1answer
62 views

How can i plot this piece of code with ggplot2? [closed]

I have these vectors of the lakes in New Guinea and the coastline and i want to plot it using ggplot2 exactly as it follows but with a more cool appearance. co<-coastline.shp ...
1
vote
0answers
22 views

Wrong shape type

I am from statistics, and I need to do a fast cartogram. But I am getting this error from ScapeToad: Error processing record (a):160 PolygonHandler.read() - got shape type 1610612760 but was ...
1
vote
1answer
35 views

Get tiles count for shapefile in specified zoom level

I have polygonal shapefile, which contains several thousands of features. I need count tiles for 18 zoom level which generates for each feature in shapefile. I find Tile Calculator ...
2
votes
1answer
26 views

Error when passing shapefile to postgis through submit button and php

I have the following issue when I try to pass a shape file to postgis. When I run this part of code through the terminal: shp2pgsql -s 2100 -d ...
2
votes
1answer
148 views

Shapefile/vector layer not appearing in QGIS

I have a shapefile (calling it 'new.shp' for discussion's sake) that won't show up with other layers. If a fresh file is started and I bring in new.shp, it will appear, but any other layers imported ...
1
vote
1answer
35 views

Query across layers of SHP files?

I would like to query features from a SHP vector that intersect with features from another vector. Pseudocode: "Name" IS intersects( countries) How would be the valid query composed?
1
vote
0answers
43 views

How to copy elements and attributes?

I need to copy many elements (and their attributes) from a shape file and paste to another one. If I use copy/paste functions it paste only the polygons but not the attributes, How can I solve it?
1
vote
1answer
72 views

How can I increase Polygon area and draw on center of image in python?

I have draw Polygon area on image but it will draw on below side corner of image and small area. How can I increase Polygon area and draw on center of image in python. I am using below code. import ...
0
votes
0answers
24 views

Using ArcGIS field calculator to rank continuous field within shapefile using VBscript parser? [duplicate]

So have been trying to get the VBscript code below to work in the ArcGIS field calculator. The values are a continuous set of data between 15-88, and I have used the natural breaks jenks rank to rank ...
2
votes
3answers
180 views

How to export a dataset with “SpatialPolygonsDataFrame” as a shapefile

How to export spatial datasets in R, such as tornados dataset in GISTools package, as a shapefile with the exact same spatial reference and the exact values? library(GISTools) data(tornados) ...
2
votes
0answers
42 views

Why is this shapefile “flattened”?

I'm working in ArcGIS 10.3. I have a shapefile, called chunk6, that looks flattened but can be viewed normally when merged with another similar shapefile (called chunk5). In its own data frame, ...
3
votes
1answer
235 views

cannot convert shapefile into GeoJSON

I have downloaded a shapefile of Stockholm (files on GitHub). I'm trying to convert the shapefiles to GeoJSON with the ogr2ogr command line tool. It does not work with the following error: Export ...
0
votes
1answer
60 views

Converting tags in OpenStreetMap (OSM) files to attribution in shapefiles?

I've downloaded the street data from OpenStreetMap (OSM). I'm looking for speed limit attribution and OSM seems to be the only source for my jurisdiction (Ontario, Canada). The problem is, the speed ...
1
vote
0answers
51 views

Update AutoCAD 2015 custom drawing property fields from ArcGIS Shapefile

I need to update AutoCAD 2015 custom drawing property fields from a GIS point dataset shapefile format (in ArcGIS). I would like to do this for an AutoCAD template as project work starts. I have ...
1
vote
0answers
25 views

Calculate invariant moments for a each polygon in shapefile

I am working in python and have polygon shapefile created from polygonized binary raster. I populate the attribute fields for each polygon in a loop. I need to calculate the invariant moments fr each ...
1
vote
0answers
37 views

Unable to see shapefile? [duplicate]

I am trying to add my shapefile which consists of buildings to my MapView. However, I am not able to see it. I am referring to Buildings.shp on my SD card. I am able to open and see the same shapefile ...
2
votes
2answers
85 views

does a cartoDB world shapefile exist?

Does anyone know what cartoDB uses for country boundaries on their standard basemaps e.g. cartodb world flat blue? A shapefile would be really useful as doing global maps (using country polygons) look ...
0
votes
1answer
54 views

messed up shapefile attribute table text

I have a .shp file from AutoCad imported to QGIS (using _MAPEXPORT > text in AutoCad) and this is what happens to text in attribute table - example: {\Fsimplex|c0;O\Fsimplex|c238;Š\Fsimplex|c0; ...
1
vote
1answer
186 views

SVG To Shapefile [duplicate]

Is it possible to draw out some SVG shapes in Illustrator or Inkscape and convert them to Shapefile using GDAL or QGIS (or something else perhaps?). I have an image that I can easily georeference, ...
2
votes
0answers
85 views

Has anyone implemented the leaflet.shapefile plugin?

I'm trying to implement the leaflet.shapefile plugin to enable a user to upload a zipped shapefile and overlay it on my webmapping site as can be done in the demo version of the site. ...
1
vote
0answers
49 views

QGIS 2.10 Edit shape files saving only once

I'm have some trouble while editing my shape files. I can save only once. So what I have to do is to save as another file, add to QGIS and edit again. Save as another file... And on and on... Does ...
1
vote
2answers
130 views

Extracting all vertices from line shapefile in a simple way? (no python scripting)

I found that shpdump is a very good tool to extract all vertices from an ESRI polyline shapefile, but I need a single triplet (X,Y,Z) file (ie. shpdump provides all coordinates by parts). Is there a ...
1
vote
1answer
127 views

change SRID of shapefile and QGIS

It is possible to change the SRID from a shapefile to another SRID in QGIS ? I have a shapefile in 2100 srid and i want to change it in 4326 SRID.
0
votes
1answer
46 views

How to get FID recognised by GeoServer?

I'm trying to load a shapefile into a GeoServer that has a style defined which makes use of the FID attribute: <PolygonSymbolizer> <Fill> <CssParameter ...
0
votes
0answers
20 views

shapefile does not draw in ios app

I can import a shapefile into my iGIS ios app but it does not draw or show up. I opened it with a simple shapefile viewer and it gave me the error that I have attached as a picture. How do I fix ...