Most Popular
1500 questions
16
votes
3 answers
UserWarning when trying to get centroid from a polygon GeoPandas
I have this geopandas dataframe:
df1 = gpd.GeoDataFrame(df,crs=rasterio.crs.CRS.from_string("epsg:4326"), geometry=df['geojson'].apply(json_load))
df1 = df1.set_crs(epsg=4326)
print (df1.shape)
df1.head()
account_id area geojson …
user88484
- 1,779
- 4
- 26
- 39
16
votes
3 answers
Creation of a GIS Competency matrix for employers
I am in the process of developing a technical GIS competency matrix for new employees. The matrix will be used not only to assess new employees but also to monitor employee development.
The matrix should contain everything from general GIS concepts…
Robert Buckley
- 10,175
- 14
- 76
- 156
16
votes
4 answers
Make shapefile from raster-bounds in Python
I have a raster that I opened with rasterio. When I do raster.bounds I get
BoundingBox(left=399960.0, bottom=-3309780.0, right=609780.0, top=-3099960.0).
My question is now, if there is any simple way to make a shapefile of it?
Robin Kohrs
- 675
- 1
- 8
- 21
16
votes
1 answer
How to select features where attribute is not NULL?
I have an OS AddressBase shape file. One of the attributes is 'paoText'. It is either a text string like 'Anchor House' or is NULL.
I want to extract all the records where there is a text string i.e. the attribute is not NULL.
I have tried…
nigellaw
- 1,105
- 3
- 12
- 28
16
votes
1 answer
How can I render latitude-longitude coordinates on a map with D3?
I am trying to overlay dots of arbitrary sets of longitude-latitude coordinates on top of a United States map.
So far I have found the D3 cartography example, but when I try to place dots on X,Y pixel coordinates they appear way off the canvas. I…
Jay Taylor
- 261
- 1
- 2
- 3
16
votes
4 answers
Spatial data? Geodata? Geographic Data? Geospatial data?
What word indicates spatial data within the geographical and geological domains? In particular, what word is precise enough for a science journal article (i.e., formal prose)?
Candidates might include "spatial data," "geodata," "geospatial data,"…
Rob
- 851
- 1
- 6
- 16
16
votes
3 answers
Getting field names of layer using PyQGIS
How does one get a list of attributes/field names of a layer by means of PyQGIS 3?
If my layer has field names seen in the attribute table or properties. How can I use PyQGIS to give me a string list of these field names?
grego
- 1,043
- 7
- 18
16
votes
5 answers
Is good database design less important for spatial databases?
I have a strong feeling that database design and normalisation often comes in second hand when dealing with spatial data.
With software costing a fortune and databases with over 100 fields tables I have to ask:
Is there good reasons for taking…
Nicklas Avén
- 13,241
- 1
- 39
- 48
16
votes
5 answers
How are people using Python data structures and classes in ArcPy?
This question may expose my ignorance on programming but I'm curious about how people are using different python data structures within ArcPy.
This page lists the data structures in Python. I understand how lists can be implemented in GIS (list…
Fezter
- 21,867
- 11
- 68
- 123
16
votes
2 answers
Need a spatial database that can be used by QGIS and R
I'm quite new to QGIS and I'm searching for a simple way to create a Database that allows me to use the tables in QGIS and R. I have a lot of data stored in Excel spreadsheets wich will be used for the statistical analysis in R.
My tasks in more…
Dspanes
- 1,401
- 5
- 17
- 22
16
votes
1 answer
Free aerial map images for commercial use - Alternatives to Google maps
we are developing a web based GIS platform. We were planning to use Google maps' satellite view as BASE LAYER and serve WMS content through Geoserver as NON-BASE LAYERS. However since our application will also support premium content for registered…
Nik
- 625
- 1
- 6
- 17
16
votes
2 answers
Storing and managing spatial data?
I have always been curious how other folks are storing their spatial data.
Outside of an enterprise environment where much data is stored in enterprise geodatabases, is it better to store data per project in project folders, (The data may be…
Sue Deforest
- 806
- 2
- 10
- 23
16
votes
6 answers
PostGIS: Assign ID of point in layer A to closest point in Layer B
This should have been an obvious precursor (that I didn't ask) to my other question:
How to create spider diagrams (hub lines) in PostGIS?
If I do not know the relationship between a point in layer A (stores) and a point in layer B (customers), I…
RyanKDalton
- 23,068
- 17
- 110
- 178
16
votes
4 answers
Automated/geoprocesing tool to slice, clip, or cut polygons using polylines using ArcGIS Desktop?
Looking for a simpler method here.
I am trying to split up / cut / slice existing polygons by using existing poly-lines. An example would be splitting a water body or land parcel at the point where a bridge/road crosses it. But the road network may…
brnt
- 221
- 1
- 2
- 5
16
votes
4 answers
What are some high-profile websites that use OpenLayers and PostGIS?
I think there are many convincing arguments for using PostGIS but I am interested in showing people examples of websites that use PostGIS and OpenLayers.
Some examples that I have seen are:
foursquare
CartoDB
Vizzuality (many examples)
WalkScore…
djq
- 16,297
- 31
- 110
- 182