Geo :: ShapeFile :: Shape.

GEO :: ShapeFile :: Shape´Â Geo :: ShapeFile À¯Æ¿¸®Æ¼ Ŭ·¡½ºÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Geo :: ShapeFile :: Shape. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jason Kohles
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jasonk/

Geo :: ShapeFile :: Shape. ű×


Geo :: ShapeFile :: Shape. ¼³¸í

GEO :: ShapeFile :: Shape´Â Geo :: ShapeFile À¯Æ¿¸®Æ¼ Ŭ·¡½ºÀÔ´Ï´Ù. GEO :: ShapeFile :: Shape´Â Geo :: ShapeFile À¯Æ¿¸®Æ¼ Ŭ·¡½ºÀÔ´Ï´Ù. Synopsis Geo :: ShapeFile :: Shape; MY $ Shape = New Geo :: ShapeFile :: Shape; $ shape-> parse_shp ($ shape_data); ÀÌ°ÍÀº ¼ÎÀÌÇÁ¸¦ ³ªÅ¸³»´Â GEO :: ShapeFile¿¡ ´ëÇÑ À¯Æ¿¸®Æ¼ Ŭ·¡½ºÀÔ´Ï´Ù. ÀÌ°ÍÀº ½ÇÁ¦·Î SHP file.methodsnew¿¡¼­ °³º° ¸ð¾çÀÇ ¸ð¾ç µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÏ´Â GEO :: ShapeFile À¯Æ¿¸®Æ¼ Ŭ·¡½ºÀÔ´Ï´Ù. ) »õ Áö¸®Àû :: ShapeFile :: Shape Object¸¦ ¸¸µì´Ï´Ù. Àμö°¡ ¾øÀ¸¸ç »ý¼º µÈ °³Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀϹÝÀûÀ¸·Î GEO :: ShapeFileÀº get_shp_record () ¸Þ¼­µå¸¦ È£Ãâ ÇÒ ¶§ÀÌ ÀÛ¾÷À» ¼öÇàÇϹǷΠ»õ °´Ã¼¸¦ ¸¸µé ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. (°á±¹ÀÌ ¸ðµâÀº _creating_ ShapeFiles¸¦ Àд ´ë½Å _creating_ ShapeFiles¿¡ ´ëÇÑ Áö¿øÀ»¹ÞÀ» °ÍÀÔ´Ï´Ù.ÀÌ ¸Þ¼­µå´Â Áß¿äÇÕ´Ï´Ù .Num_Parts ()ÀÌ ¸ð¾çÀ» ±¸¼ºÇÏ´Â ºÎºÐ ¼ö¸¦ ¹ÝȯÇÕ´Ï´Ù .Num_Points ()ÀÌ ¸ð¾çÀ» ±¸¼ºÇÏ´Â Á¡¼ö¸¦ ¹ÝȯÇÕ´Ï´Ù. . Æ÷ÀÎÆ® ()ÀÌ ¼ÎÀÌÇÁÀÇ ¸ðµç Á¡ÀÌ Æ÷ÇÔ µÈ GEO :: ShapeFile :: Æ÷ÀÎÆ® ¿ÀºêÁ§Æ®ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù. ¸ð¾çÀÌ Á÷Á¢ ¿¬°áµÇÁö ¾ÊÀ» ¼öÀÖ´Â ¿©·¯ ¼¼±×¸ÕÆ®°¡ Æ÷Ç﵃ ¼ö ÀÖÀ¸¹Ç·Î »ç¿ëÇÏÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. ÀÌ·¸°ÔÇϸé ÇÃ·Ô ÇÒ Á¡À» °Ë»ö ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸ð¾çÀ» ±×¸± °æ¿ì get_part ()¸¦ »ç¿ëÇÏ¿© get_part ($ part_index) ´ë½Å °³º° ºÎÇ°À» °Ë»öÇÏ°í ½Í½À´Ï´Ù. ÇüÅÂÀÇ ÁöÁ¤µÈ ºÎºÐÀ» ¹ÝȯÇÕ´Ï´Ù. ¸ð¾çÀ» ±×¸± ¼öÀÖ´Â °æ¿ì ¿øÇÏ´Â Á¤º¸ÀÔ´Ï´Ù. ÀÌ¿Í °°Àº ¸ð¾çÀ» ¸¸µå´Â ¸ðµç ºÎºÐÀ» ¹Ýº¹ ÇÒ ¼ö ÀÖ½À´Ï´Ù : (1 .. $ obj-> num_parts) {my $ part = $ obj-> get_part ( $ _); # ... ¿©±â¿¡¼­ ¹º°¡¸¦ÇϽʽÿÀ.Áöµµ¸¦ ±×¸± ¼ö ÀÖ½À´Ï´Ù} shape_type () ¼ýÀÚ À¯ÇüÀ» ¹ÝȯÇÕ´Ï´Ù. ÀÌ ¸ð¾çÀ» »ç¿ëÇÏ¿© GEO :: ShapeFile :: type () type.shape_id ()¿¡¼­ Àΰ£ÀÌ ÀÐÀ» ¼öÀÖ´Â À̸§À» ÆǺ°ÇÏ·Á¸é shp file.x_min () x_max () y_min () x_max () y_min ()¿¡ Æ÷ÇÔ µÈ °Íó·³ÀÌ ¼ÎÀÌÇÁÀÇ ID ¹øÈ£¸¦ ¹ÝȯÇÕ´Ï´Ù ( ) y_max () z_min () z_max () m_min () m_max ()ÀÌ ¼ÎÀÌÇÁ¿¡ Æ÷ÇÔ µÈ °Íó·³ÀÌ ¼ÎÀÌÇÁ¿¡ Æ÷ÇÔ µÈ x, y, z ¶Ç´Â m °ªÀÇ ÃÖ¼Ò / ÃÖ´ë ¹üÀ§¸¦ ¸®ÅÏÇÕ´Ï´Ù. has_point ($ point) ¹Ýȯ Æ÷ÀÎÆ®°¡ Á¦°øµÈ ÁöÁ¡ Áß Çϳª ÀÎ °æ¿ì´Â trueÀÔ´Ï´Ù. ÀÌ°ÍÀº ¸ð¾çÀ» ±¸¼ºÇÏ´Â Á¡°ú °£´ÜÇÑ ºñ±³¸¦ ¼öÇàÇÕ´Ï´Ù. ¸ð¾çÀÇ µÎ Á¡ »çÀÌÀÇ Á¤Á¡À» µû¶ó ¶³¾îÁö´Â Á¡À» ãÁö ¸øÇÕ´Ï´Ù. point.contains_point ($ point)¸¦ ÀÏÄ¡½Ãų ¶§ z ¹× / ¶Ç´Â m µ¥ÀÌÅ͸¦ Á¦¿ÜÇÏÁö ¾Ê°ÔÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ¸Þ¸ð¿¡ ´ëÇÑ ¸Þ¸ð¿¡ ´ëÇÑ ¸Þ¸ð¿¡ ´ëÇÑ Áö¸®Àû :: ShapeFile :: Æ÷ÀÎÆ® ¼³¸í¼­; ÁöÁ¤µÈ Á¡ÀÌÀÌ ¸ð¾çÀÇ ³»ºÎ¿¡ ¶³¾îÁö¸é true¸¦ ¹ÝȯÇÕ´Ï´Ù. Á¡ÀÌ ¸ð¾çÀ» ¹þ¾î³ª¸é °ÅÁþÀ̵˴ϴÙ. ¹Ýȯ °ªÀÌ Á¤Á¡ Áß Çϳª ÀÎ °æ¿ì ¹Ýȯ °ªÀÌ ÁöÁ¤µÇÁö ¾Ê°Å³ª ¹Ýȯ °ªÀÌ ½ÇÁ¦·Î Z¿Í M Çʵ带 ¹«½ÃÇÏ´Â ±Ç¼± ¹øÈ£°¡ ½ÇÁ¦·Î °è»êµÇ¾î ÀÖÀ¸¸ç Æ÷ÀÎÆ®°¡ Æ÷ÇԵǾî ÀÖÀ¸¸é À½¼ö°¡µË´Ï´Ù. À߸øµÈ WAINÀ» °¨´Â ¸ð¾ç. get_segments ($ part)´Â ¸ÖƼ ¼¼±×¸ÕÆ® Part.vertex_centroid ($ part)ÀÇ °¢ ¼¼±×¸ÕÆ®¿¡ ´ëÇÑ Á¡À» Æ÷ÇÔÇÏ´Â ¹è¿­ Çؽ÷Π±¸¼ºµÈ ¹è¿­À» ¹ÝȯÇÕ´Ï´Ù. geo :: shapefile :: point¸¦ ¹ÝȯÇÕ´Ï´Ù. ¼ÎÀÌÇÁ Á¤Á¡ÀÇ °è»ê µÈ Áß½ÉÀ» ³ªÅ¸³À´Ï´Ù. ºÎÇ° À妽º°¡ ÁÖ¾îÁö¸é ÇØ´ç ºÎºÐ¿¡ ´ëÇØ °è»êµË´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é Àüü ¸ð¾çÀ¸·Î °è»êÇÕ´Ï´Ù. vertex_centroid vs area_centroid.area_centroid ($ part)¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº "centroid"¸¦ ÂüÁ¶ÇϽʽÿÀ. ¼ÎÀÌÇÁ ¿µ¿ªÀÇ °è»ê µÈ ¿µ¿ª Áß½ÉÀ» ³ªÅ¸³»´Â Geo :: ShapeFile :: Æ÷ÀÎÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ºÎÇ° À妽º°¡ ÁÖ¾îÁö¸é ÇØ´ç ºÎºÐ¿¡ ´ëÇØ °è»êµË´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é Àüü ¸ð¾çÀ¸·Î °è»êÇÕ´Ï´Ù. vertex_centroid vs area_centroid.centroid ($ part)¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº µÚ·Î ȣȯ¼º ÀÌÀ¯·Î, centroid ()´Â ÇöÀç areax_centroid ()¸¦ °¡¸®Å°´Â °ÍÀÌ ´õ Àǹ̰¡ÀÖÀ» °ÍÀÔ´Ï´Ù. È¥¶õÀ» ÇÇÇϱâ À§ÇØ (±×¸®°í ÇâÈÄ ´õ ÀÌ»ó »ç¿ëµÇÁö ¾ÊÀ½),À̸¦ ÇÇÇÏ°í VertEx_Centroid ¶Ç´Â Area_Centroid.DUMP ()À» »ç¿ëÇؾßÇÕ´Ï´Ù. °´Ã¼ÀÇ ÅؽºÆ® ´ýÇÁ, ¸ð¾ç À¯Çü, ID ¹øÈ£, ºÎÇ° ¼ö, ÃÑ Æ÷ÀÎÆ® ¼ö, x, y, z ¹× m ¹üÀ§ÀÇ ¹üÀ§¿Í ¸ð¾çÀÇ °¢ ºÎºÐ¿¡¼­ Á¡ÀÇ ÁÂÇ¥ÀÔ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


Geo :: ShapeFile :: Shape. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

HTML :: DEBUG.

HTML :: DEBUG´Â HTMLÀÇ µð½ºÇ÷¹ÀÌ¿¡ ´ëÇÑ º¯¼ö ¹× Äõ¸® µð¹ö±ë Á¤º¸ÀÇ Ãâ·ÂÀ» °¡´ÉÇÏ°ÔÇÏ´Â PERL Ŭ·¡½ºÀÔ´Ï´Ù. ...

221

´Ù¿î·Îµå

DBD :: WTSPRITE.

DBD :: WTSPRITE´Â DBI ¿ë PERL È®ÀåÀÚÀ̸ç Ç÷§ ÆÄÀÏÀ» ÅëÇØ µ¥ÀÌÅͺ£À̽º eDrumulationÀ» Á¦°øÇÕ´Ï´Ù. ...

142

´Ù¿î·Îµå