Pehea ka hana o nā palapala kikowaena

ʻO ka manawa ma mua i kamaʻilio mākou e pili ana i kekahi mau kumuhana no ke kumu MapServer a me nā kumu o ka hoʻokomo. I kēia manawa e nānā i kekahi o kāna hana ma kahi hoʻolālā me nā palapala'āina o Chiapaneco.

ka mālama papahana mālama Kahi e kauʻia

Ke hoʻokomoʻiaʻo Apache, ka papa kuhikuhi hoʻolaha no MapServer ka papa kuhikuhi OSGeo4W ma luna o C: /

Ma loko, aia nā waihona likeʻole me nā noi e pili ana i ka mea i hoʻokomoʻia, akāʻo ka pane no ka hoʻolahaʻana e pono e komo i loko o Apache. I kēia hihia, kapaʻia ka inoaʻo "gis".

  • A laila, aia i loko o ka waihona waihonaʻikepili nā papa, nā pūnaewele, a pēlā aku.
  • I loko o ka waihona a me nā mea'ē aʻe, aia kekahi mau fonisona maoli i hoʻohanaʻia no nā inoa, me ka extension .ttf. Eia kekahi pūnaewele txt e hāpai iā lākou aʻo kekahi e kuhikuhi i nā hōʻailona.
  • A i ka hopena ma ka waihonaʻo httdocs e hele i nā pūnaewele e hoʻokiʻekiʻe i ka lawelawe.
  • ka mālama papahana mālama

ʻO ka pūnaewele

Ma ke kumu, e hoʻohana wau i ka hihia i hōʻikeʻia i ka manawa i hala. Loaʻa i loko o ia pūnaewele waihona e kuhikuhi i kahi o ka hoʻolālā phtml, aʻo kēia keʻano e hoʻonui i nā hana i kūkuluʻia ma kahi php a me nā palapala 'āina. Aia kekahi poʻomanaʻo i nā kiʻi i hoʻohuiʻia mai kaʻaoʻao.

ka mālama papahana mālama

Inā nānā mākou,ʻo ka phtml wale nō ka pūpū i kūkuluʻia mai nā papaʻaina, a kāheaʻia i nā palapala palapala / php. Kūʻoe i luna me ka hoʻohanaʻana i:

http://localhost/gis/gispalenque.phtml

Hōʻikeʻia ka hopena ma lalo:

  • i ke kikowaena o ka hana GMapDrawMap (),
  • aia ma ka'ākau ka pihi i ʻO ka keymap GMapDrawKeyMap (),
  • ka pae pākuhi i lalo nei GMapDrawScaleBar (),
  • a inā he kumuhana hana, kahi kūlana e pili ana i ka pahu helu inā (! IsHtmlMode ()) kūkala "<! -" me nā hoʻoholo: ZOOM_IN, ZOOM_OUT, RECENTER, QUERY_POINT.

I kēia manawa, ua like ka hōʻike:

ka mālama papahana mālama

ʻO nā kōnae .map

ʻO ka hui pūʻana o ka paʻi palapala Maperver kahi i hoʻokumuʻia e kahi Apache, ka mea e hoʻouna ai i ka php palapala kiʻi a laila, Haʻalele i ka ma ka iwi. Akā, ka hapanui o ka 'epekema mea i loko o .map AEIU, a e ole e hookahuli ai i ka poe ua loaʻa ma MapInfo, nui loa a Mobile Mapper Office a hiki i ka ia e like.

.Map mau mea kikokikona AEIU i pihaʻi me na palapala i loko o ka palapala o ke kōmi'ōkuhi. Kēia hiki ke hana me kaʻoneki nā papahana e like Quantum GIS, ina oe e nana, aia ka kekahi no ka papa palapala, i kekahi no ka Keymap, a elua no ka OGC WMS a me WFS lawelawe. E pehea e hana mapscript ka ike:

MAP

NAME PALENQUE_DEMO
NO KA MAKAHI
600 450 Kūkākūkā
SYMBOLSET ../etc/symbols.txt
604299 1933386 610503 1939300 NO KA MAKAHI MAKAHIKI O PALENQUE
NĀʻOi #EXTENT 605786 1935102 608000 1938800 #SOLO 01
KANAKA MAU
SHAPEPATH "../data"
Hoʻopiʻi
IMAGECOLOR 255 255 255
KE AKU ../etc/fonts.txt

  • Hōʻike ka MAP e hoʻomaka ana ka papa
  • NĀ STATUS, e hōʻike inā inā pau ka paʻawa kuhi a iʻoleʻole
  • ʻO ka nui o ka hōʻike
  • Hōʻike ka SYMBOLSET i ke ala o nā hōʻailona
  • ʻO ka EXTENT ke kauā o ka hōʻike. Hāʻawiʻia ka # hōʻailona no ka hanaʻana i nā hōʻike
  • ʻO UNITS no nā wae
  • ʻO SHAPEPATH, ke ala e hele ai nā papa
  • E pau nā mea a pau i ka hopena me ke kauoha END

I loko, hoʻomaka ke code me kahi laina kauoha, a hoʻopau me END, no ka laʻana no ka kau palena aʻoi loa; papa kuhikuhi o nā kiʻi lōʻihi:

Web
ʻO MINSCALE 2000000
MAXSCALE 50000000

IMAGEPATH "C: \ OSGeo4W / tmp / ms_tmp /"
IMAGEURL "/ ms_tmp /"
hopena

ka mālama papahana mālamaʻO ka pae paina:

ʻO SCALEBAR
IMAGECOLOR 255 255 255
LABEL
NUI 0 0 0
NO KA SMALL
hopena
300 5 Kūkākūkā
NUI 255 255 255
0 0 0 BACKGROUNDCOLOR
0 0 0 KUMU KAULANA
ʻO ka hōʻailona UNITS
INTERVALS 3
NO KA MAKAHI
hopena

ka mālama papahana mālamaHe papa o ka raster: ke hele nei ke kālā, me ka hōʻailona ma ka papa inoa e like me "Ortofoto", mai kahi hāmeʻa i loko o ka waihona waihonaʻikepili:

LAYER
'OHOLOHE inoa
METADATA
"Hōʻike" "OrtoFoto"
hopena
NĀ HULA TYPE
PAʻE PAʻE
DATA "C: \ OSGeo4W / apps / gis / data / ortofotoGral.tif"
#OFFSITE 0 0 0
hopena

He papa haʻahaʻa o polygons, ua hoʻohanaʻia ma luna o nā papahana, e hoʻonui ana i kekahi mauʻikepili ma kahi html kiko'ī, me kahi inoa inoa momona, ka nui 6, kaʻeleʻeleʻeleʻele a me nā keʻokeʻo keʻokeʻo o ka hoʻopiʻi 5 ...

ka mālama papahana mālama

LAYER
NĀ KAHUWAI KAULĀWAIWAI
KEKAHI POLOKAHI
PAʻE PAʻE
50 TRANSPARENCY
NUI 607852 1935706 610804 1938807 METADATA
"Hōʻike" "Thematic e ka Value Sector 02"
"RESULT_FIELDS" "MsLink Cve_Mz Cve_Pred prop Papa Kūlana Lālā"
hopena
DATA PALENQUE_SECTOR01
KULAHELE "ttt_query.html"
Hoʻopau 5
#TOLERANCEUNITS PIXELS
LABELITEMA "KEKAHI"
KEKAHI "VALOR"
LABELCACHE ON
KA KULA
1 SyMBOL
NUI 128 128 128
0 0 0 KUMU KAULANA
Inoa "ZoneNULL"
EXPRESSION ([VALUE] = 0)
LABEL
PULE AUTGLE
NUI 0 0 0
FONT sans
ʻO TYPE TRUETYPE
POSITION cc

KAULA KAU
BUFFER 5
6 HUI
200 200 200 KUMU KAULANA
hopena
END # helu waiwai 0
KA KULA
3 SyMBOL
NUI 255 128 128
#COLOR -1 -1 -1 #SIN PILI

... a pela aku a hiki i ka pau ana me

hopena
END #Class Value
END # Layer

E hoʻopau

Mai kēia wahi,ʻo ka hanaʻana me ka papahana mālama,ʻoiai he mea maʻalahi loa ia, ua lilo ia i mea paʻakikī paʻakikī a ua palena loa no nā hana nui no ka mea aia nā mea a pau i loko o ka .map. Ka nui keakea mea i pau ka hana ma ka wawae, e like me ka wā kēlā me kēia ano i loko o ka theming, a no ia mea, ku ae hana e like CartoWeb, e hana ana ma luna o MapServer akā, lawe mai plugins kūkuluʻia a me nā examples me nā hiʻona i e keia primitive mana e noho like ka readme mua:

  • E hana i nā papaʻokoʻa, me AJAX no ka hoʻomaʻemaʻeʻana iā lākou
  • E pākuhi i ka code, inā loaʻa kahi hōʻailona e kākau i ka .map e pili ana i nā pae hoʻohālikelike
  • Ke hoʻohoihoi i ka hoʻihoʻiʻana me ka loaʻaʻole o ka hoʻomaʻaihoʻi, me he mea lā he pae hilinaʻi
  • ʻO ka wikiwiki pūnaewele, kākau kokeʻia ma ka hale
  • E hoʻopili i kahi kelepona ma ke kiʻi kiko
  • Kuʻiʻia i ka Google Earth
  • E hoʻolālā i ka PDF o ka hoʻolālā

Ma kahi e hiki mai ana e nānā mākou i ka CartoWeb nānā, ma laila e waiho au i ka loulou i nā hiʻohiʻona nui.

3 Hōʻoia i "Pehea e hana ai ka palapala Palena"

  1. hola,

    Ke ho'āʻo nei au e kāhea i kahi papa mai ka .map, penei:

    LAYER
    Nā papa hana hōʻoia
    POEN TYPE
    KANAKA OGR
    HĀKINA # »virtual.ovf»
    »

    Xxxxx
    EXEC ......
    eess_id
    wkbPihaihaia
    WGS84

    »

    ʻO koʻu pilikia ʻo ka hāʻawi ʻana ʻo DSN i nā pilikia: i ka noi ʻana i kahi GetCapabilities e hoʻi ana au i ka ʻikepili huna ... hiki iaʻu ke kau i kahi kelepona e pale aku ai i ka "hāʻawi ʻole" i ka ʻōlelo a he hewa paha DSN ???? Hoʻomaikaʻi!

  2. ʻO ka MapServer he papahana Open Source iʻikeʻia no kona kumu e hōʻike i nā palapala 'āina maiau ma luna o ka pūnaewele. ʻO ka'ōkuhi pūnaewele he'ōpala i hoʻonohonohoʻia i kahi waihona waihona ma kahi pūnaewele e hoʻohana nei i ka pūnaewele pūnaewele NTFS. Hoʻomoeʻia ka papa hana e like me nā'ōkuhi'ē aʻe, akā hāʻawiʻia lākou i nā ala kaʻa ma kahi o nā leka kāleka.

Haʻalele i ka manaʻo hoʻopuka

Kāu leka uila aae? E,ʻaʻole e paʻiʻia.

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.