Questions tagged [shapefile]

The Esri shapefile or simply a shapefile is a popular geospatial vector data format for geographic information systems (GIS) software. Questions about shapefiles are best asked on the GIS Stack Exchange.

For questions about shapefiles it is recommended that you research/ask at the GIS Stack Exchange.

Excerpt from Wikipedia:

The Esri Shapefile or simply a shapefile is a popular geospatial vector data format for geographic information systems software. It is developed and regulated by Esri as a (mostly) open specification for data interoperability among Esri and other software products.

Shapefiles spatially describe geometries: points, polylines, and polygons. Each item may also have attributes that describe the items.

A "shapefile" is actually a set of several files. Three individual files are mandatory to store the core data that comprises a shapefile: .shp, .shx, .dbf

1985 questions
0
votes
1 answer

Python/Pandas - long strings trimmed during import of Shapefile to GeoDataFrame

I have observed that during importing of Shapefile format to Pandas DataFrame (using geopandas package) columns with long values (over 256 char) are being trimmed: import geopandas as gpd import pandas as pd shp_file =…
zwornik
  • 329
  • 7
  • 15
0
votes
0 answers

geopandas attribute issue to read in file

Hello: I know this is not a new question. I've tried the possible solutions, but I still get module 'geopandas' has no attribute 'read_file. And I've checked geopandas document, http://geopandas.org/reference/geopandas.read_file.html, it seems to…
0
votes
1 answer

Maps with Geopandas: Shapefile coordinates are in millions

I am trying to plot data on a shapefile with geopandas but the shapefile has coordinates in the millions: so for example the coordinate (30, 30) is (3000000, 3000000). Naively, I am just thinking that the separator somehow wasn't read when using…
nleh
  • 59
  • 5
0
votes
0 answers

Display raster over shapefile in shiny R

I am trying to display a raster over my shapefile in my shiny app. Here's my approach. # Load libraries and create sample data library(raster) library(shiny) library(dplyr) library(leaflet) library(ggplot2) library(ggthemes) …
89_Simple
  • 3,393
  • 3
  • 39
  • 94
0
votes
1 answer

Power BI maps: something in between ArcGIS Maps and Shape Maps

I'm trying to create a colored heat map on some polygons (originally a .kmz file that I converted to TopoJSON - .json with mapshaper.org) and overlay on them a few coordinate points. I tried first with ArcGis: I used Longitude and Latitude to…
spec3
  • 461
  • 1
  • 7
  • 15
0
votes
1 answer

How to get coordinates correctly from django to leaflet with geojson

I loaded some Shapefile multipolygons into Geodjango to show them as a layer on a Leaflet map. But on the website, no layer appears, just the map itself. The geometry data are stored in the Geodjango database like so: from django.contrib.gis.db…
MSDMMM
  • 41
  • 5
0
votes
0 answers

Fast calculation of intersections

I would like to calculate the intersected area between a shape file and a fishnet grid. Therefore, I use this approach (in a Python 3.7 environment): import geopandas as gpd fnet = gpd.read_file("foo/bar/fnet.shp") shapes =…
skna.1000
  • 51
  • 8
0
votes
1 answer

Receiving Error Message when using command over()

I have two shape files, shp1 and shp2. After calculating the centroid of the former, I'd like to see where the centroid lies in the latter. My setup does: shp1@data$centroid <- gCentroid(shp1, byid = TRUE) foo <- over(shp1$centroid, shp2) Upon…
JBDonges
  • 307
  • 1
  • 9
0
votes
1 answer

Can't combine ggplot of shapefiles including polygons and spatialpoints

I downloaded three different shapefiles of the city chicago. Now i wanted to combine them and plot them together. Only the ward-offices do not plot. '''Error: data must be a data frame, or other object coercible by fortify(), not an S4 object with…
0
votes
0 answers

Inner_Join function failing, colClass not reconciling / Incompatible types

I'm trying to create a choropleth map using a .shp shapefile and a csv. I'm stuck on the inner_join step and keep receiving the error below, even after using colClass function to change the variable type to match my shapefile data. Anyone know what…
0
votes
1 answer

How to calculate area of shaded polygon on map in r?

I generate a raster map in R with some shaded portion, then i plot my shape file on the raster file to show boundaries of the map. I can calculate the the overall shaded area with a code but I want to calculate the shaded region coming under the…
0
votes
1 answer

Automating capture of Extent from multiple mxds with multiple dataframes

I want to create a single shape file from multiple mxd's that have multiple frame sets with different extents in them. I have found/started a python script to do this (code below) but can't figure out how to write the captured X&Y Max/Min into the…
GeorgeC
  • 956
  • 5
  • 16
  • 40
0
votes
2 answers

How to import a bigsize shapefile in geoserver

I want to import a shapefile in geoserver. Its size is 2.2GB. I tryed to use QGIS plugin (Geoserver Explorer- QGIS: version 2.8.6 Wien) to import but I have an error "filesize would require zip64 extensions". As well, I tryed directly to copy the…
DamTan
  • 189
  • 1
  • 3
  • 14
0
votes
0 answers

How to write or save a shapefile geometry to float32 datatype?

I am currently working on the data structure of shapefile using python and geopandas, shapely, and pyshp. To minimize the total size of a shapefile, the geometry column's datatype should be float32. I've tried many times to convert flaot64 to…
lyman song
  • 21
  • 3
0
votes
1 answer

r showing shape file incorrectly while scaling up the dimensions in ggplot2

I am trying to open world map and to increase its dimension to look only on Europe.When I plot all map in ggplot?, there is no problem : shape <- readOGR(dsn = "/home/user/QGis/50m_physical", layer = "ne_50m_land") map_2 <- ggplot() +…