Datos espaciales con SQL Server 2012

  • 382 views
Uploaded on

 

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
382
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Oportunidad de negociosAplicaciones sofisticadas Tecnología siempre• Más Fuentes de datos presente• Más tipos de datos • GPS• Sistemas integrados • Servicios de mapas en línea • Disponibilidad de datos espaciales
  • 2. Administración y desarrollo para los clientes Análisis de bienes raíces Datos realciones con el impacto ambientalEstudios científicos Análisis económico y financiero Segmentación y Análisis para planificación análisis del mercado del gobierno
  • 3. Tree, Pole, Hydrant, POINT MULTIPOINT Valve Road, River, RailwayLINESTRING MULTILINESTRING , Pipeline Cadastre, Park, Ad POLYGON MULTIPOLYGON ministrative BoundaryCOLLECTION Graphics, Markups
  • 4. Para hacerlo similar a geometríaMakeValid los convierte en métodos válidosFULLGLOBE spatial object está disponible“small holes” pueden ser creados
  • 5. PointSTBuffer
  • 6. geo STDistancegeo STIntersects
  • 7. geography data type geometry data type• Geodetic (“Round Earth”) geospatial model: • Planar (“Flat Earth”) geospatial model • Ellipsoidal coordinates (Lat, Long, Z, M) • projected „flat map‟ (X, Y, Z, M)• Define points, lines, and areas with longitude and latitude • Define points, lines, and areas with coordinates• Account for planetary curvature and obtain accurate “great • Use for localized areas or non-projected surfaces such as circle” distances interior spaces
  • 8. Well-Known-Binary:0x0103000000010000000500000000000000004CDDC000000000004C0D4100000000004CDD4000000000004CDD4000000000C07A104100000000004CDD400000000000BD0F41000000000088134100000000004CDDC000000000004C0D41Well-Known-Text:POLYGON(( -30000 240000, 30000 30000, 27000030000, 260000 320000, -30000 240000))GML:<Polygon xmlns="http://www.opengis.net/gml"> <exterior><LinearRing><posList> -30000 240000 30000 30000 270000 30000 260000 320000 -30000 240000 </posList></LinearRing></exterior></Polygon>
  • 9. CIRCULARSTRING(0 50, 90 50, 180 50, 270 50, 0 50)CURVEPOLYGON (CIRCULARSTRING (0 50, 90 50, 180 50, 270 50, 0 50))
  • 10. Calcular distancias e intersecciones, etc.Encontrar las calles que interceptan el Microsoft campus SELECT StreetName FROM Streets WHERE Streets.StreetGeo.STIntersects(@ms) = 1
  • 11. STUnion STIntersectionCOMPOSITION STDifferenceOPERATIONS STSymDifference STIntersects STContainsRELATION OPERATIONS STWithin STTouches STOverlaps STConvexHull STBufferCONSTRUCTIONS STReduce BufferWithCurves ShortestLineTo STDistance STLengthNUMERICAL STAreaOPERATIONS
  • 12. geometrygeography STCurveN(int n)Int STNumCurves()geometrygeography STCurveToLine()geometrygeography CurveToLineWithTolerance(int tolerance, bool relative)geometrygeography BufferWithCurves(double range)geometrygeography ShortestLineTo(geometrygeography other)Bool CompatibleWithDbCompatibilityLevel(int compatLevel)Bool STIsValid()Geography MakeValid()Bool STContains(geography other)Bool STWithin(geography other)Bool STOverlaps(geography other)Geography STConvexHull()Bool ReorientObject(geography other)
  • 13. BufferWithCurves()Este método construye el polígono resultante conarcos circulares que usualmente es un objeto máspequeñoDECLARE @g GEOGRAPHY =GEOGRAPHY::STGeomFromText(CIRCULARSTRING(0 50, 45 50,90 50),4326)DECLARE @b GEOGRAPHY = @g.BufferWithCurves(500000)SELECT @b.STNumPoints()--Number of vertices: 11DECLARE @g GEOGRAPHY =GEOGRAPHY::STGeomFromText(CIRCULARSTRING(0 50, 45 50,90 50),4326)DECLARE @b GEOGRAPHY = @g.STBuffer(500000)SELECT @b.STNumPoints()--Number of vertices: 257
  • 14. ReorientObject• Este método invierte el orden de las coordenadas que definen los aros del polígono• Este método solo funciona con el tipo GEOGRAPHY.
  • 15. geography::Point(lat, lon, 4326)geography::Point(lat, lon, 4326)
  • 16. geocoder webgis.usc.edu/Services/Geocode/About/GeocoderList.aspx
  • 17. www.idvsolutions.com/products_spatialWiki.aspx
  • 18. agregaciones
  • 19. www.geodata.gov www.openstreetmap.org www.census.gov/geo/www/cobdatamarket.azure.com
  • 20. Shape2SQLMapPoint Add-in for SQL ServerSAFE FMEESRI ArcGISPitney Bowes EasyLoader
  • 21. Extienda e integre Tome ventaja de los Cree soluciones de aplicaciones datos espaciales alto desempeño espaciales• geometry • Almace datos • Compatibilidad con geography espaciales del estándares de la data types negocio industria• Métodos para • Spatial indexing • Biblioteca espacial operaciones completa espaciales• On premise y en la nube