1.19. SVG instance

发布时间 : 2025-10-25 13:33:32 UTC      

Page Views: 9 views

1.19.1. Online instance

The following example is to embed SVG code directly into HTML code.

Google Chrome, Firefox, Internet Explorer9, and Safari all support it.

Note: the following example will not run in Opera, even if Opera supports SVG-it does not support the direct use of SVG in HTML code.

1.19.2. SVG instance

SVG basic shape

A circle

Rectangle

Opaque rectangle

A rectangle opaque 2

A rectangle with rounded corners

An ellipse.

Three ellipses stacked on top

Two ellipses

A line

Triangle

Quadrilateral

A star.

Another star.

Broken line

Another broken line

Path

Quadratic Bezier curve

Write text

Rotate text

Text on path

A few lines of text

Text link

Define a line, text, or outline color (stroke)

Define a line width, text, or outline (stroke-width)

The stroke-linecap attribute defines the termination of different types of open paths:

Define dashed lines (stroke-dasharray)

SVG filter

FeGaussianBlur-Blur effect

FeOffset-offset a rectangle, then blend and offset the top of the image

FeOffset-blur offset image

FeOffset-make shadows black

FeOffset-paint shadows with color

A feBlend filter

A feColorMatrix filter

A feComponentTransfer filter

FeOffset, feFlood, feComposite, feMerge and feMergeNode

A feMorphology filter

Filter 1

Filter 2

Filter 3

Filter 4

Filter 5

Filter 6

SVG gradient

Horizontal linear gradient oval from yellow to red

Vertical linear gradient from yellow to red oval

Horizontal linear gradient from yellow to red and add text within an ellipse

Radioactive gradient from white to blue oval

Another ellipse of radioactive gradient from white to blue

SVG Miscellaneous

Repeat a rectangle that fades out in 5 seconds

The rectangle gets bigger and changes color.

Three rectangles that change color

Text that moves along a motion path

Text that moves, rotates, and scales along a motion path

Text that moves, rotates, and scales along a motion path + a rectangle that gradually zooms in and changes color

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。