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)

16
votes
4answers
8k views

How to add attribute field to existing Shapefile via Python without ArcGIS?

I have a Python script that adds an attribute field to a Shapefile if doesn't exist. This is easy to do with ArcGIS (graphically or via Python), but I'm looking for something that doesn't depend on ...
8
votes
3answers
10k views

How to create shapefile from lat/long values using ArcPy?

How can I create a shapefile using Python in ArcGIS 10? I have lat & long. From this I need Python code which will create a shapefile in ArcGIS Desktop 10.
0
votes
0answers
53 views

Shapefile to ArcGIS JavaScript JSON format? [duplicate]

Possible Duplicate: How to convert SHP into GPX or JSON? We're in the proces of adding a new feature to our Web Application where we employ the use of ESRI's ArcGIS Javascript API alongside ...
0
votes
0answers
12 views

Different KML size from ArcGIS and Ogr2Ogr

I have been converting shapefiles to KML. It seems that using ArcGIS to make a KML (by converting shapefile to feature layer and then using feature layer to kml tool) results in a much larger sized ...
1
vote
1answer
26 views

I have a shapefile with polygons/areas, and a point (lat,lon). How to figure out which polygon/area this point belongs to?

I have a shapefile with areas (eg. a simple world map with countries - polygons, epsg:4326). I also have a point (lat, lon coordinates). What's the simplest/easiest way to figure out in which ...
3
votes
2answers
72 views

Divide grid in smaller cells

My dataset: a shapefile containing squares of 1km size. It's huge, this is just a sample: My aim: divide each cell so that the end result would be the same grid with 500m each cell. Something like ...
1
vote
2answers
48 views

Reducing Size of KML file (After converting from Shapefile)

I have a shape-file of size 224 mega byte. I am using ArcGis to convert it to a KML file. The process involves converting the shapefile to a feature layer and then converting the layer to KML. An ...
2
votes
1answer
140 views

pgsql2shp ERROR: incompatible mixed geometry types in table

I have multi-linestring in .shp files and I split the lines with postgis, but that result is only geom column. It does not works with shape file exporter error: incompatible mixed geometry types ...
1
vote
1answer
22 views

Cleaning shape file with multiple boundaries defined more than once

I have a shape file which contains a lot of polygons which define airspace. These polygons overlap and this is fine (e.g. different airspace configurations for the same airport). My problem is that ...
3
votes
1answer
417 views

Shapefile to table within python

I was just curious as to whats the best way within a python script to get the output a dbf file/ table while the input is a shapefile. (if possible which i'm assuming it is) Is there a way of ...
0
votes
0answers
24 views

Selecting polygons using another polygon? [duplicate]

Hi, How is the best way or fastest(if there is) of selecting polygons of a different shapefile using a polygon of another shapefile. exercise example: i want select all the light brown polygons ...
1
vote
1answer
47 views

Shapefile doesn't fit in CartoDB basemap

When I import some shapefiles in CartoDB they don't fit properly at street level, as you can see in the screenshot. In this case, the shp was generated in QGis with CRS EPSG:29193 - SAD69. I have ...
0
votes
1answer
38 views

Latest shapefiles of Indian states

I need shapefiles of Indian states that of 2011 which has almost 671 districts of India. Can anyone please help me?
1
vote
0answers
18 views

Displaying shapefiles on IOS app

I need to write a simple app for IPad that displays maps I was given. All maps are in one folder and they are shapefiles. I am able to open them in ArcGIS for desktop, however I am unable to attach ...
0
votes
1answer
48 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? ...
0
votes
1answer
49 views

Hyperlink Script to Open Shapefile in ArcMap?

I'm new to Python and need some help please. I have a shapefile (Index.shp) that is used as an index for the world splitting it into 264 areas (polygon). I'm trying to create a Python script (for the ...
0
votes
1answer
50 views

Google Earth Pro to ArcGIS 10.2 WITH Attribute table

I'm trying to use a publicly available map of NYC's CSOs from Google Earth Pro in some GIS analysis. I've saved the file as a KML, and uploaded to GIS by converting it to a SHP, but the attribute ...
2
votes
0answers
44 views

QGIS's “Points in Polygon” counts zero in every census tract

I am mapping the location of incidents of asthma using QGIS. I would like to count how many points are in census tracts to better understand the areas where asthma occurs most frequently. My map ...
1
vote
0answers
36 views

“Official” delineation of North American mountain ranges

I need to subset mosaics of remotely sourced data to the extents of several prominent North American mountain ranges, starting with the Sierra Nevada. After searching for the boundaries of the range ...
5
votes
4answers
103 views

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 ...
0
votes
0answers
10 views

Environmental and health indicators for Slovakia?

I'm looking for a free source of environmental and health indicators, whether its WMS or shapefiles, specifically for a Slovakia. Couldn't find anything on WHO website, although they say it's there. ...
3
votes
2answers
362 views

Where to find Vietnam administrative level 4 shape file?

I am new to mapping, and would like to make a custom map using Vietnam's administrative boundaries shape file. I found a great source at gadm.org, but it is licensed for non-commercial use only. I ...
1
vote
2answers
340 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
29 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
119 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
415 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
137 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 ...
3
votes
2answers
705 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 ...
0
votes
1answer
31 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
30 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
72 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
48 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
41 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
56 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
25 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
15 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
10 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 ...
0
votes
2answers
23 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
27 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
53 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 ...
3
votes
2answers
248 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
45 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 ...
1
vote
2answers
412 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 ...
0
votes
1answer
28 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
91 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
32 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 ...
8
votes
4answers
653 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
39 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
46 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
889 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 ...