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 (1)

0
votes
1answer
8 views

Get Shape Type of Several Shapefile with If Statement

Can you loop over a series of shapefiles with a if loop and either copy them or not? Existing code... import arcpy import os arcpy.env.workspace = r'c:\Shapefiles' outWorkspace = r'C:\Output' ...
1
vote
2answers
322 views

How to convert Shapefile to TopoJSON with grouping neighbor shapes by some criteria

I have a shapefile with countries, which I convert to GeoJSON using ogr2ogr and then converting that json to another TopoJSON, using topojson command-line tool. Everything works like charm, but now I ...
0
votes
0answers
14 views

ogr2ogr re-projection produces empty shapefile

I use the following to re-project a shapefile to EPSG 4326 using ogr2ogr: ogr2ogr -s_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" -t_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" ...
5
votes
1answer
108 views

Making a 3D map with shapefiles, lidar and aerial image data

I want to try to make a simple 3D map for a small area (10 square miles) with some housing, some roads and some vegetation on it. My geodata is as follows: shapes with houses/roads/vegetation. ...
0
votes
1answer
397 views

Continents geometry data / extracting contours of continents from country geometry

I have an ESRI Shapefile data from Natural Earth (Admin-0 Countries). I converted it to geoJSON format. There is no world or continents geometry there, only the county one. And I'd like to extract eg. ...
3
votes
2answers
107 views

Calculate geometry on some features have same X and Y for start and end?

I did "Calculate Geometry" on a line shapefile to obtain the coordinates X and Y for the start and the end of all the lines of the shape. But some lines resulted with the same X on the start and on ...
1
vote
1answer
28 views
+50

Converting shapefile from Shift_JIS to UTF-8 when the usual methods fail

Long story short, I'm trying to import this ESRI shapefile of Japan into CartoDB. (Sorry, no direct link: to download, click on the orange ファイルのダウンロード button, check 同意する to agree to the T&C, then ...
3
votes
2answers
633 views

Join a CSV file to shapefile using gdal/ogr?

I have a shapefile with several attributes, for example YEAR, COUNTY, and AREA. I also have a CSV file with more fields that I want in the shapefile, such as POPULATION. Both the shapefile and the CSV ...
4
votes
1answer
116 views

What does it mean that shapefiles are “mostly” open specification?

Esri Shapefiles are commonly considered the standard format for GIS vector data. I noticed on Wikipedia and the OpenStreetMap wiki it is noted (emphasis mine): The shapefile format is a popular ...
0
votes
1answer
29 views

How to take only relevant rows from database, based on common codes

I have a shp file that is missing some data, e.g. attributes. I have the missing data in a csv file. How can I get ONLY the relevant rows from the csv file added to the current shp file's data table? ...
1
vote
3answers
24 views

How to find which areas/regions a list of lat/lons are in?

The Australian Bureau of Statistics (ABS) issues Esri shapefiles or MapInfo files which have a code # for each geographical area at various 'resolutions' and I have a database with a column of ...
0
votes
2answers
62 views

Free hosting of shape files to make an interactive map?

What is a free site where I can upload shapefiles and make my own interactive map to share with others by a link?
1
vote
1answer
46 views

How to turn a shapefile into a table?

How do you completely turn a shapefile (created with QGIS, including .shx and the other 4-5 files) into one tabular dataset. I am actually doing this when I import the shapefile into Postgresql ...
2
votes
0answers
24 views

MS Access to Google Earth Pro

I am embarking on a new project and hoping for some pointers. I am reasonably tech savvy but definitely in the "advanced beginner" category for coding... but keen to test myself. I am trying to find ...
-2
votes
1answer
50 views

Why don't shapefiles online contain the coastline (country borders)?

I have searched everywhere and Geofabric has the best packages of shps yet doesn't have the coastline of countries. I'm talking about the line that demarcates a country i suppose they are called ...
1
vote
1answer
119 views

ArcGIS Javascript API: Adding a shapefile with more than 1000 points

I am able to add shapefiles with less than 1000 points by using the ArcGIS Portal REST API as shown in this example: https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html ...
1
vote
1answer
21 views

Shapefile One-to-Many Relationship in R

Is there any way to append a shapefile in a one-to-many relationship with its attributes that R can read? I understand the fix that resides in ArcInfo by creating through MakeQueryTable, but as this ...
0
votes
0answers
13 views

open source data European gas grid

I am researching the off grid LNG market for which I can only use open source data, but since I do not have experience with open source data, this is a difficult task for me. I am looking for open ...
0
votes
0answers
8 views

OGR2OGR converting Interlis to Shapefile fails

I tried an convert of a Interlis 1 file to Shape. For each table there is the following warning: Warning 1: No field definition found for table: Biens_fonds__PosPoint_limite I used different ...
-2
votes
0answers
14 views
0
votes
2answers
17 views

Importing and exporting KML into and from DashDB for Geospatial Analysis

I am a recent convert to IBM's DashDB, and I considering proposing to use it at my work. My case would greatly be bolstered if I could show good, easy integration for geospatial analytics data, namely ...
0
votes
1answer
14 views

Source postcode shapefiles & census data for The Netherlands

I would like to do some GIS mapping of the Netherlands, but I am having trouble finding official data files for the following: ESRI shapefiles for postcodes. Census (population) data for postcodes. ...
1
vote
1answer
39 views

error importing shp into postgis using ogr2ogr

I run an automated script that copies a number shapefiles into PostGIS. I have a problem with one dataset which fails during the export. As the roads.shp dataset is maintained by someone else, I ...
0
votes
1answer
33 views

Ward maps for Indian Cities?

i am looking for maps or shapefiles of ward boundaries of cities in india, it has been arround three days since i have been searching for them, but got very few. Please help me if somebody knows ...
2
votes
2answers
220 views

Are mixed geometry types allowed in a shapefile?

Does the shapefile support mixed geometry types (ie. point and polygon all in the same file)?
0
votes
1answer
28 views

Automatically split KML into point, line and polygon SHPs?

I have a lot of KMLs that include points, lines and polygons together, is there a way to automatically parse them into separate shapefiles (one for point, one for line, one for polygon) in QGIS or ...
2
votes
1answer
148 views

How to write shapefiles more efficiently in GeoScript?

I've created a geoscript (in groovy) to create a shapefile from generated geometries with certain attributes. It's a heatmap consisting roughly 65.000 polygons with an attribute storing the ...
1
vote
2answers
407 views

QGIS rounds up the coordinates to six decimals when saving layer changes

I have the problem that when I create a new point (in a point layer) or a new line (in a line layer of course) and I save the changes to the layer (so NOT the project save) then QGIS rounds up the ...
-1
votes
0answers
40 views

Data on European countries?

I am looking for any spatial data in the following cases: Spain (Cortes de Pallás 2012 wildfire in Valencia), Sweden (Vastmanland wildfire 2014 area), Netherlands (Strabrechtse Heide 2010 area) and ...
0
votes
1answer
20 views

ogr2ogr KML to SHP generates invalid file names from layer names

I have a collection of very large KML files that I'm trying to convert to .shp. I'm iterating over 200+ KML files with an average size of around 20 MB. Each KML contains multiple layers, some of which ...
0
votes
2answers
69 views

Converting *.xlsx to shapefile in ArcGIS for Desktop?

I'm trying to import an xlsx file into ArcGIS (10.2.1, everything is fully licensed and activated), and convert it to a shapefile for further analysis. The xlsx file is ~180mb, and contains just ...
1
vote
0answers
21 views

Mapnik performance - large polyline dataset

I'm working with a very large set of polylines - contour data - to be rendered with Mapnik. (The contours are generated using gdal_contour from SRTM data.) At present I'm storing them in PostGIS and ...
0
votes
2answers
173 views

How to update postgis layer from shapefile in QGIS?

My usual workflow with updating layer from shapefile was to: Open DB Manager; Load SHP files into QGIS; Open DB Manager; Import file (with drop option). Now my problem is that I have created ...
0
votes
1answer
156 views

Shp2pgsql - exec() not allowed on external server

Me and my collegue are using the shp2pgsql and psql commands in php code (a Drupal module to be precise). We put these commands in a php variable and use the exec() command to execute them. This ...
8
votes
4answers
638 views

How to publish shapefiles to web with no programming required?

I am new to GIS web development. I do not have any programming background and I want all the maps that I design in GIS (shapefiles, using ArcGIS Desktop 9.3) to be published on the web. Please ...
1
vote
1answer
30 views

Unable to read different kind of shape files

I have written the java code to read the shapefile and insert it into the table. But the way I have written code it will accept only a multistring .shp file. It fails for other shapefile geometry ...
0
votes
1answer
33 views

How do I export a line shapefile from a network downstream from a point in ArcGIS 10.1?

I'm using the National Hydrological Dataset's flow lines to trace downstream movement of water is a freshwater diversion from the Mississippi river in Louisiana. I've gotten the trace to run using ...
1
vote
1answer
706 views

Calculating distance between latitude and longitude points using python

I have a database of 2000 points, which is in CSV format containing latitude and longitude. I want to find the distance between all these points, and then show these points in a map by using pyQGIS; I ...
0
votes
0answers
16 views

Calculate mean of shapefile based on another shapefile

since days I´m really stuck with my problem. As you can see in the figure below I have two shapefiles. The lightgrey one simply contains a grid with a cellsize 30 by 30 meters. The second one (blue) ...
0
votes
1answer
55 views

Explaining ArcGIS Raster to Polygon output?

I want create a new shapefile with selected fields found in a raster which depicts landcover. I first attempted to run Raster To Polygon. However, some class names no longer appear, as shown here: ...
1
vote
1answer
386 views

Arcpy ERROR 000732 when ApplySymbologyFromLayer

I want to split a shapefile by certain attribute and then apply a symbology layer, finally output it as a KMZ file. R1 = outpath + 'R1.lyr' arcpy.MakeFeatureLayer_management(fc, R1, "WHERE CAUSE") ...
0
votes
1answer
144 views

Converting .fdshape to .shp or other QGIS readable format

I have been searching for a solution to being able to read .fdshape extension files in QGIS with no luck. It seems that the data had to be converted from .shp to .fdshape in the first place so I was ...
3
votes
1answer
89 views

Issue with dissolving a polygons layer in QGIS 2.4

I downloaded a dataset of roads and parks from OSM. I then buffered the roads and merged with the parks. Now - all i want is to dissolve / union all the features in the merged layer. I fail to do it ...
-1
votes
1answer
77 views

How to turn shapefiles into raster and aggregate them into one raster

For example i tried this but it doesn't work rast_a<-raster(extent(shp_1)) res(rast_a)=100 rsh<-rasterize(shp_1,rast_a) rast_b<-raster(extent(shp_2)) res(rast_b)=100 ...
0
votes
1answer
134 views

40k+ points from Shapefile, clustering them and populating on Google Maps/Webapp

I just started a new Python/Django webapp job related to GIS (and i'm totally new to GIS). Here is my task and what i have found so far, and i am stuck as to finding out what's the best way or the ...
0
votes
0answers
37 views

opening many nested shapefiles

I have a large number of shapefiles (>500) representing species' ranges for North America. I am wondering how I could open them all automatically, without having to open them one at a time in ArcGIS? ...
-2
votes
2answers
56 views

ArcMap creates unnecessary file types when saving shape file (.cpg .prj, lock, etc.)

When saving shape files, geocoding results or even exporting data in ArcMap, many different files are created. Most of the time when I save a shape file, I want only the shape file and not a .cpg, ...
5
votes
4answers
1k views

Why doesn't the split tool return any records in the attribute table?

I've been trying to split a large land use shapefile using a set of study area polygons as the split feature, but when the function finally finishes running (the land use dataset is quite large), all ...
17
votes
4answers
3k views

How do you determine a shapefile's charset?

Is there a way to determine the charset used for a given shapefile?
13
votes
3answers
7k views

ogr2ogr converting to shapefile - how to select feature types?

Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types. When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...