thanks Serge, but its just the same, the map doesn't show up :(
in here my mapfile.
can u check and if u have good time dude,
thank you very much serge,
################################################################################################
# Adapt settings in map file <tt>pmapper_demo.map</tt> for the following
tags to match settings
# on your machine (see additionally MapServer documentation for detailed
information):
#
# MAP
# SHAPEPATH
# FONTSET
# SYMBOLSET
#
# WEB
# IMAGEPATH
# IMAGEURL
#
##################################################################################################
#
# Start of map file
#
MAP
EXTENT 110.174904 -7.1663 110.614357 -6.923019 #110.174789 -7.409725
110.816116 -6.769216
UNITS meters
#EXTENT -15 30 40 70
#UNITS dd
SIZE 600 500
SHAPEPATH "../../../pmapper_demodata"
SYMBOLSET "../common/symbols/symbols-pmapper.sym"
FONTSET "../common/fonts/msfontset.txt"
RESOLUTION 96
IMAGETYPE png
INTERLACE OFF
#CONFIG "PROJ_LIB" "C:/proj/nad/"
PROJECTION
END
#
# Image formates for GD
#
OUTPUTFORMAT
NAME "png"
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
FORMATOPTION INTERLACE=OFF
TRANSPARENT OFF
EXTENSION "png"
END
OUTPUTFORMAT
NAME "png8"
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
FORMATOPTION INTERLACE=OFF
TRANSPARENT OFF
EXTENSION "png"
END
OUTPUTFORMAT
NAME "jpeg"
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
FORMATOPTION "QUALITY=70"
EXTENSION "jpg"
END
#
# Image formats for AGG
#
# OUTPUTFORMAT ### 24 bit PNG
# NAME 'agg_png'
# DRIVER AGG/PNG
# IMAGEMODE RGB
# END
# OUTPUTFORMAT ### 32 bit PNG with alpha channel from transparency
# NAME 'agg_pnga'
# DRIVER AGG/PNG
# IMAGEMODE RGBA
# END
# OUTPUTFORMAT ### 8 bit PNG
# NAME 'agg_png8'
# DRIVER AGG/PNG
# IMAGEMODE RGB
# FORMATOPTION "QUANTIZE_FORCE=ON"
# FORMATOPTION "QUANTIZE_DITHER=OFF"
# FORMATOPTION "QUANTIZE_COLORS=256"
# END
# OUTPUTFORMAT
# NAME 'agg_jpeg'
# DRIVER AGG/JPEG
# IMAGEMODE RGB
# END
OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGB
#FORMATOPTION "TFW=YES"
#FORMATOPTION "COMPRESS=PACKBITS"
EXTENSION "tif"
END
OUTPUTFORMAT
NAME imagemap
MIMETYPE "text/html"
FORMATOPTION SKIPENDTAG=OFF
DRIVER imagemap
END
#
# Start of web interface definition
#
WEB
TEMPLATE "map.html"
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
#"MAPFILE_ENCODING" "ISO-8859-1"
#"ows_title" "WMS Demo Server"
#"ows_onlineresource" "http://wms.yourserver.org?owskey=test&"
#"ows_srs" "EPSG:3035 EPSG:4326"
END # Metadata
END # Web
#
# Start of Reference map definition
#
REFERENCE
EXTENT 110.174904 -7.1663 110.614357 -6.923019 #110.174789 -7.409725
110.816116 -6.769216 #2200000 1400000 8000000 5400000 ,
IMAGE "../../images/reference1.png"
SIZE 199 149
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END # Reference
LEGEND
END
#
# Start of ScaleBar definition
#
SCALEBAR
STATUS OFF
TRANSPARENT off
INTERVALS 4
SIZE 200 3
UNITS kilometers
COLOR 250 250 250
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 100 100 100
STYLE 0
POSTLABELCACHE true
LABEL
COLOR 0 0 90
#OUTLINECOLOR 200 200 200
SIZE small
END # Label
END # Reference
# SYMBOLS USED IN PMAPPER
# - 'circle' always necessary (used e.g. for highlight)
# - 'square' used in currecnt map file
# Symbols can also be defined via tag SYMBOLSET (see above)
Symbol
Name 'circle'
Type ELLIPSE
Filled TRUE
Points
1 1
END
END
Symbol
Name 'square'
Type VECTOR
Filled TRUE
Points
0 1
0 0
1 0
1 1
0 1
END
END
#================== START OF LAYER SECTION =====================#
#
# Start of Layer kecamatan
#
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"
TRANSPARENCY 30
# UNITS METERS
TEMPLATE void
PROJECTION
#"init=epsg:4326"
"proj=longlat"
"ellps=WGS84"
"datum=WGS84"
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
END #Map
On Fri, Jan 20, 2012 at 2:49 PM, Serge Claudio Rafanoharana <
[email protected]> wrote:
> 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 <[email protected]> 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 <
>> [email protected]> 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 <[email protected]> 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 <[email protected]>
>>>> 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" <[email protected]> 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
>>>> >> [email protected]
>>>> >> 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
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>>
>>>
>>>
>>>
>>> --
>>> Serge
>>>
>>
>>
>>
>> --
>>
>>
>> *Tri Setyo Aji
>>
>> *0856 3520707 | 024 33043304
>>
>>
>
>
> --
> Serge
>
--
*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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users