Questions tagged [shapefile]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
634 views

Using kriging with data in GDB

I have series of data in my GDB I am running the program under VBA and what I want to do is using the data by the tool Kriging. This is what I thought: First, Kriging needs data that must be a ...
1
vote
2answers
855 views

How to remove shapefile from PostGIS

I added a shapefile to the PostGIS using, ogr2ogr -f PostgreSQL PG:"host=server_ip user=username dbname=dbname password=password" yourshapefile.shp; Now I want to remove it. What is the command line ...
1
vote
1answer
856 views

OGR multipolygon with holes model

I'm trying to unpack shapefiles in C# using GDAL-OGR library, but I'm confused about the structure of multipolygon with holes in OGR. As far as I know, the models of shapefiles and OGR geometry (the ...
1
vote
1answer
3k views

How to dissolve polygons and aggregate their data in QGIS? [duplicate]

I have a shapefile (one layer) with my country but I have a problem. It is divided into 4 entries (prefectures), and I want it as one, not 4. Also, there is a table with some data, and I want to ...
1
vote
1answer
2k views

How to extract geo data out of a polygon shapefile into CSV KWT [duplicate]

I have a polygon shapefile that contains all the neighbourhoods in the Netherlands. My aim is to export the neighbourhoods and coordinates to CSV file (KWT). Without success I tried (with QGIS) ...
1
vote
1answer
416 views

Remove cell boundaries of raster pixels converted to vector format

I have a solar radiation shapefile with 10 km x 10 km cells. When I put it on QGIS, many pixels with boundaries take place. Please see the following image: How can I remove them in Qgis?
1
vote
1answer
4k views

FME Workbench: Merging Multiple Shapefiles into One Database Table

I'm new to FME Workbench, but have used Quick Translator for a while. What I have is a directory: C:\Mexico\Maps\Rural where I’ve extracted the Shapefiles for multiple states. Nothing else is in that ...
1
vote
1answer
411 views

Understanding unit of area sizes calculated via rgeos::gArea?

I'm interested in finding the unit for the obtained area size of the polygons without refererring to the externally available documentation. Example A suite of shapefiles is imported as follows: ...
1
vote
0answers
605 views

Error clipping a raster with a shape layer “Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format. ” [duplicate]

I try to clip a raster with a vector layer. When I try to do it, I get the error "ERROR 1: Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format." Can ...
1
vote
1answer
2k views

Calculating polygon area inside another polygon in QGIS

Is it possible to calculate the area of colorful polygons (yellow, yellowish/reddish and red) inside another shapefile (purple outline, also polygons) in QGIS. For example the polygon that is marked ...
1
vote
0answers
527 views

Converting Shapefile to Autocad

I am Trying to export from shapefile to autocad. But it is not converted correctly. My labels are not shown.
1
vote
0answers
647 views

Convert SHP to GPX with predefined SHP style in QGIS

I had defined graduated style in QGIS for points contained in shp format. I had saved this style in sld and qpj format so now I am able to open shp in QGIS and it automatically loads its style (I am ...
1
vote
2answers
612 views

Convert shapefiles from WGS84 to Miller Projection

I have some shapefiles of the world from Natural Earth at WGS84. I would like to convert them to the Miller Projection. I have ogr2ogr, but I'm not sure what the parameters for this conversion ...
1
vote
1answer
2k views

Given a collection of polygons, how do you find which one contains a given point? Java or Python

I'm looking for Java or Python libraries that will help me answer this question efficiently: given a collection of polygons (via shape files or GeoJSON), which one of them contains a given point? The ...
1
vote
1answer
5k views

Uploading shapefile onto Garmin GPS, and displaying it over basemap?

I have a roads shapefile layer in ArcMap and I want to be able to view it on my Garmin64st. Ideally, it would be overlaid on a basemap so I would always be able to see it. It seems like that means I ...
1
vote
1answer
324 views

Add X, Y column to a ESRI shapefile using ogr2ogr

I've a point ESRI shapefile in ESPG32632 spatial reference. I need to add X and Y column to it and I'd like to use something from command line like ogr2ogr but I don't know the syntax. Any example?
1
vote
1answer
25 views

OGR/Python- Check whether or not points are in a polygon

I have two shapefiles, one points file and one polygon. They are in the same projection (Lat/Long). I would like to run a quick command-line command or a Python script with the OGR module that creates ...
1
vote
0answers
1k views

European postal code shapes provider

I am looking for a single (paid) provider of postal (zip) code shapes (boundaries) for countries in Europe. I hope to find reliable partner with reasonable pricing and update policy. What I need are ...
1
vote
1answer
25 views

GeoServer 2.17 - added Shapefile with geometry of type “3D Polygon”, rendering fails exception “Must have at least 2 spatial dimensions”

I've downloaded a public shapefile and added it to Geoserver 2.16 just fine. QGIS as well. I added it to a GeoServer 2.17 as well, but when trying to preview, it causes the following exception 2020-...
1
vote
1answer
821 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 ...
1
vote
1answer
33 views

Apply Point style in JMapFrame GUI

I've managed to create a Point shapefile creating a SimpleFeature and outputting it as Test_Point.shp, public static final SimpleFeatureType POINT = createPointType(); private static SimpleFeature ...
1
vote
2answers
672 views

Bulk SHP/KML Processing Tools [closed]

I need to accomplish two things in bulk: Convert SHP to KML Modify the fill and outline color and opacity either of SHP or KML files What tools can you recommend for these two tasks? I've tried ...
1
vote
1answer
206 views

How to find the area with most intersection for buffer regions?

Find the area with the most intersection This question relates to previous question asked - How to find the intersection areas of overlapping buffer zones in single shapefile?. I tried to find ...
1
vote
1answer
407 views

Exporting geodatabase feature class to shapefile changes the attribute table

I'm using ArcGIS 10.4.1 DATA I have several layers. I combined all of them into one layer using union. I saved the result of union in geodatabase based on the suggestion by @GISGe. You can ...
1
vote
2answers
807 views

Split feature class based on number of records arcpy

I am looking for a way to split a feature class into multiple feature classes based on the number of records, probably using python. E.g first 100, next 100, etc. I have so far only seen options to ...
1
vote
1answer
558 views

Assign raster cells presence/absence values depending on whether polygon overlaps with cells

I have a raster of continuous numeric values. A certain portion of said raster overlaps with a polygon of interest. I want to know which cells overlap, and assign values to the raster's attribute ...
1
vote
3answers
812 views

Storing shapefile in PostgreSQL database as a table using PHP?

I want to create a table from a shapefile in PostgreSQL. To do that, I can run this command in cmd: shp2pgsql -s 4326 -W LATIN1 E:\Any\THA_adm public.test123 | psql -h localhost -d DATA -U postgres -...
1
vote
1answer
2k 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
130 views

generate massive shapefiles

I have a shapefile with 1475 records, and I want to generate a shapefile for each record. What can I do to generate them avoiding selecting and exporting each record to do that?
1
vote
1answer
413 views

Prevent Mapshaper stripping out data

I'd like to use mapshaper to simplify shapefiles http://www.mapshaper.org/ The main reason is to reduce my file sizes in QGIS as the native tools are too rough / split countries apart. I can import ...
1
vote
2answers
329 views

How to Run Buffer on QGIS Points [duplicate]

New question branching off from Geometry Errors with Imported Shapefile, Unable to Fix I attempted to buffer datapoints to convert them into many small polygons (so it will be acceptable .shp polygon ...
1
vote
2answers
927 views

How to get feature values from multiple polygons of shapefile while using extract function on raster

I have a shapefile which contains arround 800 circular polygons with diameter of 60 meters each. Raster is 20 meter resolution so I would have multiple cell values extracted for each polygon. I am ...
1
vote
1answer
4k views

How to load *.shp.xml file into shapefile for ArcGIS for Desktop?

I am using DRASTIC model and ArcGIS mapping for my thesis of groundwater assessment. I need to generate maps which includes Net Recharge map. For that I need to export a landuse map and from the ...
1
vote
1answer
163 views

symbology with 2 fields - one for the color and another for the shape?

for example, i have two fields: 1 - a, b, c 2 - X, Y, Z and i want to do like this: a - square, b - circle, c - point X - blue, Y - red, Z - pink and when i have a and Y - it whould be red square.
1
vote
2answers
1k views

Check Geometry Type of a Shapefile Using GeoTools?

I want to get the type (point, line, or polygon) of shapefile using GeoTools but so far I haven't found any code. Any other Java library also works for me.
1
vote
1answer
1k views

How to truncate field names to 10 characters in model builder

Apologies that I have not posted an image of my model, I am away from my computer for a while but am trying to sort this out anyways. I have a number of different animal GPS location points, and a ...
1
vote
1answer
2k views

Calculate attribute height of point data

I have an x (easting), y (northing) and z (height) values associated with my point shapefile. I would like to calculate the z values from the DTM I have - how do I do this in QGIS? I am fairly new ...
1
vote
4answers
5k views

Administrative boundaries of Brazil? [duplicate]

I am looking for coordinates (longitude and latitude) of each state of Brazil. Where can I find that? I have found a file for the US states here: http://econym.org.uk/gmap/states.xml, I am now ...
1
vote
1answer
477 views

Fill color in polygons using attribute variable in GMT (Generic Mapping Tool)

I want to FILL colors of the polygon (converted from .shp ESRI shapefile) based on an attribute (here OBJECTID, Area) from lookup color (.cpt), but I am getting colored outline of each polygon. I ...
1
vote
1answer
446 views

Automate the writing records from csv to shapefile using pyshp module

I have the following data in a csv file('file.csv') Date_Time,Latitude,Longitude,Wind_Speed,Status 09-10-2013/1130,13,93,50-60 gusting to 70,Observed 09-10-2013/2330,13.501,92.501,70-80 ...
1
vote
0answers
150 views

Rasterize (R package raster) fails to rasterize island polygons? [duplicate]

I am having problem in rasterizing a polygon shapefile: "island" polygons (I mean polygons which are totally included into a larger one) are ignored and do not appear in the raster. My code is: seg &...
1
vote
0answers
186 views

Shapefile data not displaying on MapInfo workspace?

I have a number of shapefiles created from ARCMap and would like it displayed in MapInfo (version 10.5) but the polygon is not displayed on the work space. I can view my attributes table by browse ...
1
vote
2answers
1k views

Fiona throws KeyError when attempting to read a shapefile

I'm attempting to read the AADT_2014.shp file from the New York State Department of Transportation average traffic data (TDV_Shapefile_AADT_2014.zip specifically through fiona (by way of geopandas). ...
1
vote
2answers
302 views

Polygon Shapefile Overlap with a Raster

I have some raster files of an agricultural region. There are more than 50 small fields in the agricultural region. For each field, a shapefile has been provided. As shown in the image below, each ...
0
votes
0answers
85 views

Losing numeric table precision during shapefile export in ArcGIS Pro

I'm trying to export a GDB file version 10.5 in ArcGIS Pro 2.0.0 to a shapefile, but every time I do, I lose precision with the unique feature IDs. For example the IDs will go from 554423216 --> ...
0
votes
0answers
54 views

Creating shapefile based on map with ArcGIS Desktop?

I'd like to create a shapefile with ArcGIS of the map attached below. Published in an econ paper, the map divides the territory of the German Union (post 1815) in 19 states (more precision can be ...
0
votes
1answer
86 views

password authentication failed for user “ASUS”

I'm creating table in PostgreSQL using these commands: shp2pgsql -s 32632 watershed.shp watershed > watershed.sql psql -f watershed.sql cambridge psql -f watershed.sql cambridge But I had ...
0
votes
1answer
415 views

Join line segments sharing a common attribute, using GDAL

I'm having trouble rendering a shapefile consisting of trail routes broken down into many short segments. So I'd like to combine them into a small number of line features, which share a NAME and touch ...
0
votes
1answer
673 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
0answers
57 views

Expedite Near function in R for 10^9 coordinates?

Goal I want to find the geodesic distance between the closest hydrography feature to each of my lat/long coordinates. I have hydrography data from New York state in a shapefile. I have many points, ...