Hi, Have you tried working on the projection? Are you using UTM or Decimal Degree?
I think your data is around Semarang in Central Java, so if you are using UTM it should be something like: PROJECTION "+proj=utm +zone=49 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs no_defs" END If using LATLON, try: PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" END Hope it can help... Cheers, Serge On Thu, Jan 19, 2012 at 11:04 PM, aji setyo <baji240...@gmail.com> wrote: > ooh thats typo, > but if i change to "DATA "the_geom FROM jateng_kec USING UNIQUE gid" " > << the map still doesn't show up, > in attachement u can see the query is fine. > what is the problem ?? > > thanks 4 ur attention > > > sorry for my bad english > > On Thu, Jan 19, 2012 at 9:17 PM, Serge Claudio Rafanoharana < > rafanohar...@gmail.com> wrote: > >> Hi Aji, >> >> It is related to the projection. In your map file, you have the >> information related to projection in comment. You have to decide for the >> which/what projection to use. Another thing, when you call your data "DATA >> "the_geom FROM jateng_kec USING UNIQUE gid using grid = -1"", do you really >> need this grid= -1? I don't know but just wanna make sure you got it right. >> >> Regards, >> Serge >> >> On Thu, Jan 19, 2012 at 2:52 AM, aji setyo <baji240...@gmail.com> wrote: >> >>> ok, thanks 4 ur attention, >>> >>> sorry i have a stupid question !!! >>> can u or all in this mailing list user explain, what its the function of >>> PROJECTION ??? (in simple word please) >>> cause i still confused about PROJECTION. >>> >>> thanks, >>> >>> sorry for my bad english >>> >>> On Thu, Jan 19, 2012 at 5:11 PM, Chris Jackson <webturt...@gmail.com> >>> wrote: >>> >>> > Hi, >>> > All your layer projections seem to be hashed out - maybe you have more >>> > than one projection in the mapfile? >>> > Chris >>> > On 19 Jan 2012 10:04, "aji setyo" <baji240...@gmail.com> wrote: >>> > >>> >> Dear All, >>> >> >>> >> please help me 2 solve this case. >>> >> the map doesn't show but query work fine >>> >> >>> >> this my map layer >>> >> >>> >> LAYER >>> >> NAME "kecamatan" >>> >> TYPE POLYGON >>> >> STATUS ON >>> >> # DATA "countries" >>> >> CONNECTIONTYPE POSTGIS >>> >> CONNECTION "user=postgres dbname=postgis host=localhost port=5432 >>> >> password=b4ji" >>> >> DATA "the_geom FROM jateng_kec USING UNIQUE gid using grid = -1" >>> >> TRANSPARENCY 30 >>> >> # UNITS METERS >>> >> TEMPLATE void >>> >> PROJECTION >>> >> #"init=epsg:4326" >>> >> # "+proj=utm +zone=48 +ellps=WGS72 +units=m +no_defs no_defs" >>> >> #"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" >>> >> END >>> >> METADATA >>> >> "DESCRIPTION" "kecamatan" >>> >> ## ADAPTED TO MULTILINGUAL SHAPEFILE >>> >> "RESULT_FIELDS" "gid,kode,kecamatan,kabupaten,propinsi" >>> >> "RESULT_HEADERS" "gid,kode,kecamatan,kabupaten,propinsi" >>> >> "ows_title" "kecamatan" >>> >> END # Metadata >>> >> CLASS >>> >> NAME "kecamatan" >>> >> COLOR 200 254 199 >>> >> OUTLINECOLOR 0 0 0 >>> >> BACKGROUNDCOLOR 0 0 255 >>> >> END # Class >>> >> END # Layer >>> >> >>> >> >>> >> and this for xml config file >>> >> >>> >> <pmapper> >>> >> <ini> >>> >> <pmapper> >>> >> <pmTitle>p.mapper - A MapServer PHP/MapScript >>> >> Framework</pmTitle> >>> >> <debugLevel>3</debugLevel> >>> >> <plugins>export</plugins> >>> >> <plugins>scalebar</plugins> >>> >> <plugins>transparency</plugins> >>> >> >>> >> </pmapper> >>> >> <config> >>> >> <pm_config_location>default</pm_config_location> >>> >> >>> <pm_javascript_location>javascript/src</pm_javascript_location> >>> >> <pm_print_configfile>common/print.xml</pm_print_configfile> >>> >> <pm_search_configfile>inline</pm_search_configfile> >>> >> </config> >>> >> <map> >>> >> <mapFile>pmapper_demo_coba.map</mapFile> >>> >> <tplMapFile>common/template.map</tplMapFile> >>> >> <categories> >>> >> <category name="cat_admin"> >>> >> <group>kecamatan</group> >>> >> >>> >> </category> >>> >> >>> >> </categories> >>> >> <allGroups> >>> >> <group>kecamatan</group> >>> >> >>> >> </allGroups> >>> >> <defGroups> >>> >> <group>kecamatan</group> >>> >> >>> >> </defGroups> >>> >> <layerAutoRefresh>1</layerAutoRefresh> >>> >> <imgFormat>png</imgFormat> >>> >> <altImgFormat>jpeg</altImgFormat> >>> >> <altImgFormatLayers> >>> >> <layer>jpl_wms_global_mosaic</layer> >>> >> <layer>dem</layer> >>> >> </altImgFormatLayers> >>> >> <sliderMax>max</sliderMax> >>> >> <sliderMin>100000</sliderMin> >>> >> </map> >>> >> <query> >>> >> <limitResult>300</limitResult> >>> >> <highlightColor>0 255 255</highlightColor> >>> >> <highlightSelected>1</highlightSelected> >>> >> <autoZoom>nquery</autoZoom> >>> >> <autoZoom>search</autoZoom> >>> >> <zoomAll>search</zoomAll> >>> >> <zoomAll>nquery</zoomAll> >>> >> <infoWin>dynwin</infoWin> >>> >> <alignQueryResults>1</alignQueryResults> >>> >> <pointBuffer>10000</pointBuffer> >>> >> <shapeQueryBuffer>0.02</shapeQueryBuffer> >>> >> </query> >>> >> <ui> >>> >> <tocStyle>tree</tocStyle> >>> >> <legendStyle>attached</legendStyle> >>> >> <useCategories>1</useCategories> >>> >> <catWithCheckbox>1</catWithCheckbox> >>> >> <scaleLayers>1</scaleLayers> >>> >> <icoW>18</icoW> >>> >> <icoH>14</icoH> >>> >> </ui> >>> >> <locale> >>> >> <defaultLanguage>en</defaultLanguage> >>> >> <defaultCharset>UTF-8</defaultCharset> >>> >> <map2unicode>1</map2unicode> >>> >> </locale> >>> >> <print> >>> >> <printImgFormat>png</printImgFormat> >>> >> <printAltImgFormat>jpeg</printAltImgFormat> >>> >> <pdfres>2</pdfres> >>> >> </print> >>> >> <download> >>> >> <dpiLevels>150</dpiLevels> >>> >> <dpiLevels>200</dpiLevels> >>> >> <dpiLevels>300</dpiLevels> >>> >> </download> >>> >> <php> >>> >> <pearDbClass>MDB2</pearDbClass> >>> >> <defaultTimeZone>Europe/Vienna</defaultTimeZone> >>> >> </php> >>> >> <pluginsConfig> >>> >> <export> >>> >> <formats>XLS</formats> >>> >> <formats>CSV</formats> >>> >> <formats>PDF</formats> >>> >> </export> >>> >> </pluginsConfig> >>> >> </ini> >>> >> >>> >> >>> >> >>> >> <searchlist version="1.0"> >>> >> <dataroot>$</dataroot> >>> >> <searchitem name="kecamatan" description="Kec"> >>> >> <layer type="postgis" name="kecamatan"> >>> >> <field type="s" name="kecamatan" description="KEC" >>> >> wildcard="0" /> >>> >> </layer> >>> >> </searchitem> >>> >> </searchlist> >>> >> >>> >> >>> >> </pmapper> >>> >> >>> >> capture for my case >>> ( >>> >> https://twitter.com/#!/SetyoAjii/status/159938547321810944/photo/1 ) >>> >> >>> >> thanks for your attention. >>> >> >>> >> and sorro for my bad english. >>> >> >>> >> >>> >> -- >>> >> >>> >> >>> >> *Tri Setyo Aji >>> >> >>> >> *+62856 3520707 | +6224 33043304 >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Keep Your Developer Skills Current with LearnDevNow! >>> >> The most comprehensive online learning library for Microsoft >>> developers >>> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >>> MVC3, >>> >> Metro Style Apps, more. Free future releases when you subscribe now! >>> >> http://p.sf.net/sfu/learndevnow-d2d >>> >> _______________________________________________ >>> >> pmapper-users mailing list >>> >> pmapper-users@lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >>> >> >>> > >>> >>> >>> -- >>> >>> >>> *Tri Setyo Aji >>> >>> *0856 3520707 | 024 33043304 >>> >>> >>> ------------------------------------------------------------------------------ >>> Keep Your Developer Skills Current with LearnDevNow! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-d2d >>> _______________________________________________ >>> pmapper-users mailing list >>> pmapper-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users >>> >> >> >> >> -- >> Serge >> > > > > -- > > > *Tri Setyo Aji > > *0856 3520707 | 024 33043304 > > -- Serge ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users