mapping

Simple mapping and GIS .shp .dxf and raster file functions.

Select category:

Coordinate systems

aer2ecef
Convert Azimuth, Elevation, Range (AER) coordinates to Earth Centered Earth Fixed (ECEF) coordinates.
aer2enu
Convert spherical Azimuth, Elevation and Range (AER) coordinates into cartesian East, North, Up (ENU) coordinates.
aer2geodetic
Convert Azimuth, Elevation and Range (AER) coordinates to geodetic coordinates (latitude, longitude, local height).
aer2ned
Convert Azimuth, Elevation and Range (AER) coordinates to North, East, Down (NED) coordinates.
almanac
Return basic info about one parameter of a celestial body.
auth2geo
Returns the geodetic latitude given authalic latitude XI.
con2geo
Returns the geodetic latitude given latitude conformal CHI
ecef2aer
Convert Earth Centered Earth Fixed (ECEF) coordinates to local Azimuth, Elevation and slantRange (AER) coordinates.
ecef2enu
Convert Earth Centered Earth Fixed (ECEF) coordinates to local East, North, Up (ENU) coordinates.
ecef2enuv
Convert vector projection UVW (ECEF coordinate frame) to local ENU (East, North, Up) coordinates.
ecef2geodetic
Convert from Earth Centered Earth Fixed (ECEF) coordinates to geodetic coordinates.
ecef2ned
Convert Earth Centered Earth Fixed (ECEF) coordinates to local North, East, Down (NED) coordinates.
ecef2nedv
Convert vector projection UVW (ECEF coordinate frame) to local NED (North East, Down) coordinates.
egm96geoid
Return local height of EGM96 geoid relative to WGS84 geoid in meters.
enu2aer
Convert cartesian ENU (East, North, Up) coordinates into spherical AER) (Azimuth, Elevation, Range) coordinates.
enu2ecef
Convert local cartesian East, North, Up (ENU) coordinates to Earth Centered Earth Fixed (ECEF) coordinates.
enu2ecefv
Convert vector projection(s) of local ENU coordinates to UVW (in ECEF coordinate frame).
enu2geodetic
Convert local cartesian East, North, Up (ENU) coordinates to geodetic coordinates.
enu2uvw
Convert East, North, Up (ENU) coordinates to UVW coordinates.
geo2auth
Returns the authalic latitude given geodetic latitude PHI
geo2con
Returns the conformal latitude given geodetic latitude PHI
geo2iso
Return the isometric latitude given geodetic latitude PHI.
geo2rect
Returns the rectifying latitude given geodetic latitude PHI
geocentricLatitude
Return geocentric latitude (psi) given geodetic latitude (phi) and flattening.
geodetic2aer
Convert from geodetic coordinates (latitude, longitude, local height) to Azimuth, Elevation and Range (AER) coordinates.
geodetic2ecef
Convert from geodetic coordinates to Earth Centered Earth Fixed (ECEF) coordinates.
geodetic2enu
Convert from geodetic coordinates to local East, North, Up (ENU) coordinates.
geodetic2ned
Convert from geodetic coordinates to local North, East, Down (NED) coordinates.
geodeticLatitudeFromGeocentric
Return geodetic latitude (phi) given geocentric latitude (psi) and flattening.
geodeticLatitudeFromParametric
Returns geodetic latitude (phi) given parametric latitude and flattening.
iso2geo
Returns the isometric latitude given geodetic latitude PHI
ned2aer
Convert NED (North, East, Down)coordinates to AER (Azimuth, Elevation, slantRange) coordinates.
ned2ecef
Convert local cartesian North, East, Down (NED) coordinates to Earth Centered Earth Fixed (ECEF) coordinates.
ned2ecefv
Convert vector projection(s) of local ENU coordinates to UVW (in ECEF coordinate frame).
ned2geodetic
Convert local cartesian North, East, Down (NED) coordinates to geodetic coordinates.
parametricLatitude
Returns parametric latitude given geodetic latitude (phi) and flattening.
rect2geo
Returns the geodetic latitude given rectifying latitude MU
referenceEllipsoid
Returns the parameters of an ellipsoid.
referenceSphere
Return the parameters of the named spherical object.
wgs84Ellipsoid
Returns the parameters of the wgs84 ellipsoid.

DXF files

dxfdraw
Draw a map of a DXF file based on a DXF cell array or DXF drawing struct.
dxfparse
Parse a DXF struct (read by dxfread) into a DXF drawing struct or into a mapstruct.
dxfread
Read a DXF file (text file) into a Nx3 cell array.

GIS raster files

gdalread
Get raster data and info or (optionally) just info from a GIS raster file.
rasterclip
Clip a georaster with a rectangle and return adapted bands and info structs.
rasterdraw
Draw a GIS raster map.
rasterinfo
Return various info about a GIS raster file: a.o., file type, bit depth, raster size, projection and geotransformation.
rasterread
Read a GIS raster file

GIS vector files

gmlread
Read a .gml (Geographic Markup Language) file.
isShapeMultipart
Checks if a polygon or polyline consists of multiple parts separated by NaN rows.
kmlread
(EXPERIMENTAL) Read a Google kml file and return its contents in a struct.
kmzread
Read a compressed Google kmz file and return its contents in a struct.
mapshow
Draw a map based on raster or shapefile data.
geoshow
Plot a mapstruct created by shaperead.
shapedraw
Plot contents of a shapefile, a map-/geostruct or a struct made by shaperead.m.
shapeinfo
Returns a struct with info on shapefile FNAME.
shaperead
Read an ArcGis shapefile set (shp, shx and dbf).
shapewrite
Write contents of map- or geostruct to a GIS shape file.

GPS files

gpxread
Read data from a gpx file.

Lengths, angles and dimensions

angl2str
Convert angles to notation as angles represents latitudes or longitudes.
angltostr
Convert numerical angle values (Lat and/or Lon) into cellstr text values.
areaquad
Returns the area of a quadrilateral given two points.
axes2ecc
Calculates the eccentricity from semimajor and semiminor axes.
deg2rad
Convert degrees to radians.
deg2nm
Converts angle in degrees to distance in nautical miles by multiplying angle with radius.
deg2sm
Converts angle n degrees to distance in statute miles by multiplying angle with radius.
degtorad
Converts angles input in degrees to the equivalent in radians.
degrees2dm
Convert decimal degrees to its degrees and minutes components.
degrees2dms
Convert decimal degrees to its degrees, minutes, and seconds components.
departure
Compute the distance between two longitudes at a given latitude.
dm2degrees
Convert degrees, minutes, and seconds components into decimal degrees.
dms2degrees
Convert degrees, and minutes components into decimal degrees.
earthRadius
Converts the Earth's radius into other units.
ecc2flat
Return flattening given an eccentricity
ecc2n
This returns the third flattening given an eccentricity.
flat2ecc
Return the eccentricity given a flattening
fromDegrees
Convert angles from radians.
fromRadians
Convert angles from radians.
gc2sc
Converts a great circle to small circle notation.
gcxgc
Determines the intersection points between two great circles.
gcxsc
Determines the intersection points between a great circle and a small circle.
km2deg
Convert distance to angle.
km2rad
Converts distance to angle by dividing distance by radius.
km2nm
Convert kilometers into nautical miles.
km2sm
Convert kilometers into U.S. survey miles (statute miles).
majaxis
Return the semimajor axis given the semiminoraxis (b) and eccentricity (e).
meridianarc
Returns the meridian arc length given two latitudes PHI and PHI_2.
minaxis
Return the semiminor axis given the semimmajor axis (a) and eccentricity (ecc).
n2ecc
This returns the eccentricity given the third flattening (n).
nm2km
Convert nautical miles into kilometers.
nm2sm
Convert nautical miles into U.S. survey miles (statute miles).
nm2rad
Converts distance to angle by dividing distance by radius.
nm2deg
Converts distance to angle by dividing distance by radius.
rad2deg
Convert radians to degrees.
rad2km
Converts angle to distance by multiplying angle with radius.
rad2nm
Converts angle in radians to distance in nautical miles by multiplying angle with radius.
rad2sm
Converts angle in radians to distance in statute miles by multiplying angle with radius.
radtodeg
Converts angles input in radians to the equivalent in degrees.
rcurve
Return the length of a curve based on its type: meridian, parallel, or transverse.
scxsc
Determines the intersection points between two small circles.
sm2km
Convert U.S. survey miles (statute miles) into kilometers.
sm2nm
Convert U.S. survey miles (statute miles) into nautical miles.
sm2rad
Converts distance to angle by dividing distance by radius.
sm2deg
Converts distance to angle by dividing distance by radius.
str2angle
Convert string type angular coordinates into numerical decimal degrees.
toDegrees
Convert angles into degrees.
toRadians
Convert angles into radians.
unitsratio
Return ratio for conversion between units.
wrapTo180
Wraps X into the [-180 to 180] interval.
wrapTo360
Wraps X into the [0 to 360] interval.
wrapToPi
Wraps X into the [-pi to pi] interval
wrapTo2Pi
Wraps x into the [0 to 2pi] interval

Paths in curves

azimuth
Calculates the great circle azimuth from a point 1 to a point 2.
distance
Calculates the great circle distance DIST between PT1 and PT2 and optionally the azimuth AZ.
geodeticarc
Calculates the distance (in meters) between two (sets of) locations on an ellipsoid.
geodeticfwd
Compute the coordinates of the end-point of a displacement along a geodesic.
meridianfwd
Retuns the new latitude given a starting latitude and distance travelled along a meridian.
reckon
Compute the coordinates of the end-point of a displacement on a sphere.
vincenty
Calculates the distance (in meters) between two (sets of) locations on an ellipsoid.
vincentyDirect
Compute the coordinates of the end-point of a displacement on a geodesic.

Utilities

closePolygonParts
Ensure that (each part of a multipart) polygon is a closed ring.
extractfield
Extract field values from struct array.
makesymbolspec
Create a symbol specification structure for use with mapshow.
polycut
Reorder nested multipart polygons in such a way that branch cuts aren't drawn when using the patch command.
removeExtraNanSeparators
Remove groups of NaN and leave a single separator.
roundn
Round to powers of 10.
sph_chk
Check validity of iput ellipsoids / spheroids.
utmzone
Returns the zone given a latitude and longitude, or the latitude and longitude ranges given a zone.
validateLengthUnit
Check validity and standardize unit of length.

Package: mapping