Hot answers tagged ordnance-survey
7
There's the Ordnance Survey OpenData now. You could try the Strategi product. This has urban_region polygons, but they don't have names since they are often several towns now in a conurbation. Combining with the settlmnt_point layer you could use that to get the names.
Here's the polys and points on top of a google maps layer (done using QGIS)
As you can ...
6
It depends how you define cities.
The strategi dataset contains a cities layer. If you wish to have more detail, and include large towns the Meridian 2 dataset contains an urban area layer that would be a good starting point.
You could also use the Boundary Line Data from the same source that would give you the administrative Boundary associated with ...
5
As suggested by other answers, the problem is related with the POINT and MULTIPOINT types. shp2pgsql (and ogrinfo) detects the geometry type as MULTIPOINT, but then, when creating the EWKB representation of the geometry (the value to insert in the_geom column), it seems to be generating a POINT geometry:
select ...
5
Are the TIFs tiled? The OS Vector District raster images I have aren't. To find out using QGIS, load one of the rasters and select Information in the Raster menu. Click OK, and somewhere after the projection and metadata you should see a line something like: Band 1 Block=4000x65 Type=Byte, ColorInterp=Palette
If, as in this case the block size is the width ...
5
Here, the XSL file is a style sheet language file (XSLT, or eXtensible Stylesheet Language Transformations) for transforming the XML file into other XML documents or other objects such as HTML, plain text, pdf, etc.
A priori nothing to do with QGIS, especially if one looks OS MasterMapĀ® style guidance
Transforming GML using XSLT
These styles are ...
4
Not me but Adrian Walker has
'Using Ordnance Survey OpenData Street View Rasters With GeoServer'
http://www.adrianwalker.org/2010/08/using-ordnance-survey-open-data-street.html
Some good tips there (especially if on linux platform)
Some python code is available at the bottom.
Or are you looking for Vector examples?
...
4
The 'National Grid Shape file' can be downloaded at:
http://www.ordnancesurvey.co.uk/oswebsite/pai/maps.html
Using this for a OS grid at a specific resolution would take some aggregation based on the TILE field, or by using the SCALE field.
4
Your example grid reference only has 4 digits and thus specifies a location which is 1km square, so plenty of room for a 500m error there.
See Ordnance Survey grid digits for examples of numerical resolution. More digits will give you more accuracy.
4
If you simply want to dissolve the edges and are happy with having one large multipolygon feature of all buildings, you can simply use the fTools "Dissolve" tool ("Vector/Geoprocessing/Dissolve").
If you want to keep the attributes (in the case of OS Vector that would only be the ID, which seems to be rather arbitrary), you can split the dissolved vector ...
3
I don't know why you are getting that error, but I just tried to load your zipped shapefile using the SPIT plugin in QGIS, and it imported just fine. This surprised me as I assumed SPIT was just a gui for shp2pgsql! I am using QGIS 1.6 on windows but it should work just as well on fedora.
Hope this helps
Jo
3
You can add this projection to the projection table postgis uses and then refer to it with the new name (97460 or SR-ORG:7460 in this case):
INSERT into spatial_ref_sys (srid, auth_name, auth_srid, proj4text, srtext) values ( 97460, 'sr-org', 7460, '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m ...
3
Ah, I've done some of this. Probably the best way of georeferencing old Ordnance Survey 6" maps is to use OS Grid coordinates (not grid references and definitely not lat/lon). If your map images are true, undistorted scans you might, with luck, be able to do this using just two points.
What I normally do is find two features on the map that still exist ...
3
GIS file formats contain georeferencing information. This ties image pixel coordinates to grid references in a projection system, in this case British National Grid.
There are lots of ways this information can be stored depending on image format. A basic tool to get you started is gdalinfo which will query the extents of the image in British National ...
2
OS has started an open source effort called OS OpenData which provides a number of 'open' datasets.
The lack of publicly available UK data was part of the impetus for OpenStreetMap (OSM). Cloudmade has some easy-to-use extracted data, and other download options via Planet.osm.
2
In the future you should be able to use the LLPG (local Land and Property Gazetteer), which would return a British National Grid coordinate. This can be easily converted to Lat/Long and I would argue it is probably more up to date than the OS AddressPoint data, given that it is updated by the councils who create the address and updated daily in most cases. ...
2
The most accurate way to do this is to use the Ordnance Survey AddressPoint dataset. Their price list seems to suggest that for use on just one terminal costs around £16,000.
However, if you are willing to sacrifice some accuracy you can do this for free at http://www.nearby.org.uk/coord.cgi using the postcode part of the address. They also have an API ...
2
A suggestion:
install postGIS and create a database
write and execute a script to import all your data using the shp2pgsql command
display your data in your favorite desktop GIS (like Quantum GIS, see page 40 of this document)
2
Actualy it's quite easy can be done with batch files and ogr2ogr or shp2pgsql
I have created some batch files that will loop and using ogr2ogr or shp2pgsql convert and merge the files.
Below are the shp2pgsql examples, this is just part of batch file 1, the section reports for the diferent feature types and in total took about 12 hours to run.
Batch file ...
2
As a first step, if you want to merge multiple shapefiles into a single shapefile (to ease loading in whatever viewer you choose), you can use OGR utilities to merge shapefiles within a directory or multiple directories. If you're interested in experimenting with GeoScript, you can also do the same thing in JavaScript (or Python, Groovy, or Scala).
2
Go to: MyESRI and login (or register then sign in)
http://www.myesriuk.com/esriuk/members/resourcecentre/downloads.asp
Go to: Trials and Free Software
select either
ProductivitySuite2.0 (25/11/2009 10:54:12)
or
ProductivitySuite2.1 Beta - ArcGIS 10 compatible (29/07/2010 17:25:51)
scroll to the bottom and click 'Symbology Files'
Symbology.zip will have ...
2
I found this on the Ordnance Survey Blog Map data video from 2004 to 2011.
http://www.youtube.com/watch?feature=player_embedded&v=lvmcYvcJY2I
source:
http://blog.ordnancesurvey.co.uk/2011/04/3974/
(try contacting the author of the blog.)
2
Based on the pointers from @Archaogeek and @underdark I've come up with a solution.
Use shp2pgsql to create the basic table structure:
shp2pgsql -p -s 27700 admin_font_point strategi_point | psql -d opendata
Fire up psql and remove the offending constraint:
$ psql -d opendata
psql (8.4.6)
Type "help" for help.
opendata=# ALTER TABLE strategi_point DROP ...
2
gdal2tiles uses the bottom-left point of origin, not top-left, so the filename pattern is {zoom}/{x}/{tilenum-y}.png where tilenum is the number of vertical tiles for the zoom level.
It's also worth noting that gdal2tiles.py does not require the source data to be pre-warped, but it does require it to be RGB or RGBA.
2
If you require Higher Quality City (Urban Areas) data:
Vector Map District is derived from a larger scale than the Stategi product mentioned
http://www.ordnancesurvey.co.uk/oswebsite/products/os-vectormap-district/index.html
The VectorMap District Building Outlines is the most accurate and up-to-date dataset available without cost (under OpenData Licence) ...
2
Regarding execution times: Lanczos is extremely slow, but other resampling algorithms produce similar (perhaps even better) results:
near (11s)
bilinear (17s)
average (27s, a bit soft)
bicubic (30s, called cubic in GDAL, text thickness sometimes odd)
antialias (45s, requires pil and numpy)
cubicspline (1m53s, way too soft)
lanczos (11m8s, extremely ...
2
You can try MyGeo Data Converter. It's an online conversion service which can convert ntf to
ESRI Shapefile
Microstation DGN
MapInfo File
Comma Separated Value (.csv)
GML
GPX
KML
GeoJSON
You can also try ESRI's Productivity Suite. It's not free but they do have a 30 day trial version.
2
You can use the open source tool GDAL which has a command called ogr2ogr which can convert NTF files into a range of vector formats, either using the various language bindings (including python) or at the command line.
FME can also read NTF files so a custom workbench could be created to read in your files, perform any initial processing, if required, and ...
2
NTF to MIF is a free translator available from here - http://www.bodley.ox.ac.uk/guides/maps/translat.htm
for Shapefile use GDAL
see How do I convert MapInfo TAB and/or MIF to SHP?
This will only convert to lines - so there will be another post-process required afterwards to build polygons.
Either convert to shapefile or postgis and build polygons using ...
2
The Ordnance Survey TOIDS (Topological ID) are indeed unique IDs for OS features. The reason there are sometimes 13 and sometimes 16 digits after the 'osgb' bit is because they changed the specification but some data had already been released with the early 13 digit TOIDS so they were stuck with it.
Many systems designed to work with OS data prepend the ...
1
Loading OS OpenData raster images into a Rasterlite database.
There are pre-compiled Rasterlite/Spatialite binaries for Windows (32 and 64-bit) so I took this route.
Step 1, install the software. For 32-bit Windows go here:
http://www.gaia-gis.it/gaia-sins/windows-bin-x86/
or for 64-bit Windows go here:
http://www.gaia-gis.it/gaia-sins/windows-bin-amd64/
...
Only top voted, non community-wiki answers of a minimum length are eligible

