2

Where can I find a shapefile from a specific city?

I am looking from a shapefile from Valencia (Spain). I only find files from the entire country. I want a specific shapefile with some polygons where I can filter a given point from the city and discover if it is in that polygon.

Can I download it from Google Maps?

  • 3
    If the all cities has the data you need, why not simply copy that data out of the original and move on? Without mention of software in use it's not possible to give further guidance. – Vince Jul 24 '19 at 14:00
  • You could also look at ec.europa.eu/eurostat/cache/GISCO/distribution/v1 – nmtoken Jul 24 '19 at 15:48
  • 1
    If it’s open data that you seek then a place to ask is the Open Data Stack Exchange. – PolyGeo Jul 24 '19 at 20:30
4

You can use QGIS and create a OSM query to achieve that. You need the plugin "QuickOSM"

In QuickOSM You fill the fields as seen here:

enter image description here

and your result is the boundary of the city Valencia :)

it includes all available administrative levels. to get only the inner-city districts:

right click the temporary polygon layer, make it editable and delete all non-innercity districts (they are overlaying the innercity-districts).

To see which are actually districts interesting for you, check the attribute table and have a look at the column "admin_level". OSM Wiki explains what the numbers are standing for:

https://wiki.openstreetmap.org/wiki/Tag%3aboundary=administrative#10_admin_level_values_for_specific_countries

Optionally export the temporary layer to a permanent one.

  • Hey, that's great! I have never looked into this plugin before, and now I certainly will! – Saijin_Naib Jul 24 '19 at 14:36
  • Hi, indeed, it is really nice. I just installed QGIS on my ubuntu and the plugins necessary. Then I downloaded the map of Spain (download.geofabrik.de/europe/spain.html) and executed the query that you told to me. However, I want some regions inside Valencia. For example the districts. I need this to check if a coordinate is inside some district. – Felipe Jul 24 '19 at 15:42
  • Perhaps gadm.org/download_country_v3.html has what you want. – csk Jul 24 '19 at 20:53
  • 1
    @Felipe The districts are only covered under the larger polygon covering the whole area of the city (admin level 1 i assume) - you might be more interested in admin_level 8 and 9. I updated my answer accordingly :) – sn1ks Jul 25 '19 at 9:08
  • @sn1ks Awesome! It was a piece of cake! Do you know how to export it to polygons? My final goal is to create a Java Program using GeoTools which says if a given coordinate is inside these polygons (The valencia administrative areas number 9). – Felipe Jul 25 '19 at 14:29
3

If you happen to be using QGIS, this Plugin seems to do what you're asking for quite easily.

https://github.com/sigdeletras/Spanish_Inspire_Catastral_Downloader

enter image description here

1

No, you cannot download the data from Google Maps.

There is a wealth of data if you simply conduct a basic Google Search, but it is offered by a disparate array of national/regional/etc. entities for all locales.

If you are looking for data related to Spain, look through the data offered by Centro de Descargas: http://centrodedescargas.cnig.es/CentroDescargas/index.jsp

Not the answer you're looking for? Browse other questions tagged or ask your own question.