Quantcast

[ gpsdrive ] No plugin found for type 'postgis' , Debian Squeeze

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ gpsdrive ] No plugin found for type 'postgis' , Debian Squeeze

poti
Gpsdrive was working for me in Lenny (x86, eeepc), but maps started having
blank spots. This week I upgraded to Squeeze and Gpsdrive no
longer works with mapnik.

I purged python-mapnik postgresql osm2pgsql postgresql-8.4-postgis gpsdrive gpsdrive-data

deleted all the directories associated with their names  that still
remained, in particular .gpsdrive and directories under /usr and /etc.

I then re-installed, upgrading to postgresql-8.4
but gpsdrive will not start in mapnik mode.

The following is where I am getting stuck:

Access denied for user 'gast'@'localhost' (using password: YES)
Creating main window
Cannot init mapnik. Mapnik support DISABLED: Could not create datasource. No plugin found for type 'postgis' (encountered during parsing of layer 'leisure')

I also get a set of warnings that I could fix by changing certain name
references in osm.xml as follows:

*** ~/oldgpsdrive/.gpsdrive/osm.xml 2011-07-12 01:16:22.000000000 -0400
--- ~/.gpsdrive/osm.xml 2011-07-13 03:31:24.000000000 -0400
***************
*** 99,110 ****
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
        <Filter>[amenity]='post_box'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/service/post_box.png" type="png" width="16" height="16" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
        <Filter>[amenity]='post_office'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/service/post_office.png" type="png" width="16" height="16" />
      </Rule>
 
      <Rule>
--- 99,110 ----
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
        <Filter>[amenity]='post_box'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/public/post_box.png" type="png" width="16" height="16" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
        <Filter>[amenity]='post_office'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/public/post_office.png" type="png" width="16" height="16" />
      </Rule>
 
      <Rule>
***************
*** 116,122 ****
       <Rule>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
        <Filter>[railway]='station'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/incomming/railway.png" type="png" width="9" height="9" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>50000</MaxScaleDenominator>
--- 116,122 ----
       <Rule>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
        <Filter>[railway]='station'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/transport/railway.png" type="png" width="9" height="9" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>50000</MaxScaleDenominator>
***************
*** 138,144 ****
      <Rule>
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <Filter>[natural]='peak'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/place/peak.png" type="png" width="8" height="8" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
--- 138,144 ----
      <Rule>
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <Filter>[natural]='peak'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/misc/landmark/peak.png" type="png" width="8" height="8" />
      </Rule>
      <Rule>
        <MaxScaleDenominator>5000</MaxScaleDenominator>
***************
*** 148,154 ****
      <Rule>
        <MaxScaleDenominator>10000</MaxScaleDenominator>
        <Filter>[amenity]='recycling'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/service/recycling.png" type="png" width="20" height="20" />
      </Rule>
     
      <Rule>
--- 148,154 ----
      <Rule>
        <MaxScaleDenominator>10000</MaxScaleDenominator>
        <Filter>[amenity]='recycling'</Filter>
!       <PointSymbolizer file="/usr/share/icons/openstreetmap/classic.small/public/recycling.png" type="png" width="20" height="20" />
      </Rule>
     
      <Rule>
***************
*** 209,215 ****
       <Rule>
        <MaxScaleDenominator>50000</MaxScaleDenominator>
        <Filter>[landuse] = 'cemetery'</Filter>
!       <PolygonPatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/rendering/landuse/cemetery.png" type="png" width="16" height="16"/>
      </Rule>
     
       <Rule>
--- 209,215 ----
       <Rule>
        <MaxScaleDenominator>50000</MaxScaleDenominator>
        <Filter>[landuse] = 'cemetery'</Filter>
!       <PolygonPatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/religion/cemetery.png" type="png" width="16" height="16"/>
      </Rule>
     
       <Rule>
***************
*** 1092,1098 ****
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <MinScaleDenominator>1000</MinScaleDenominator>
        <Filter>[railway] = 'rail'</Filter>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/rendering/track/rail.png" type="png" width="20" height="3" />
      </Rule>
     
       <Rule>
--- 1092,1098 ----
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <MinScaleDenominator>1000</MinScaleDenominator>
        <Filter>[railway] = 'rail'</Filter>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/transport/track/rail.png" type="png" width="20" height="3" />
      </Rule>
     
       <Rule>
***************
*** 1573,1579 ****
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <MinScaleDenominator>1000</MinScaleDenominator>
        <Filter>[railway] = 'preserved'</Filter>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/rendering/rail_preserved.png" type="png" width="20" height="3" />
      </Rule>
     
    </Style>
--- 1573,1579 ----
        <MaxScaleDenominator>100000</MaxScaleDenominator>
        <MinScaleDenominator>1000</MinScaleDenominator>
        <Filter>[railway] = 'preserved'</Filter>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/transport/rail_preserved.png" type="png" width="20" height="3" />
      </Rule>
     
    </Style>
***************
*** 1585,1603 ****
        <Filter>[highway] = 'motorway' and [length] = 2</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book"  size="11" fill="#809bc0" placement="line"  file="/usr/share/icons/openstreetmap/classic.small/rendering/shield/motorway_shield.png" type="png" width="24" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'motorway' and [length] = 3</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#809bc0" placement="line" file="/usr/share/icons/openstreetmap/classic.small/rendering/shield/motorway_shield2.png" type="png" width="31" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'motorway' and [length] = 4</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#809bc0" placement="line" file="/usr/share/icons/openstreetmap/classic.small/rendering/shield/motorway_shield3.png" type="png" width="38" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
--- 1585,1603 ----
        <Filter>[highway] = 'motorway' and [length] = 2</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book"  size="11" fill="#809bc0" placement="line"  file="/usr/share/icons/openstreetmap/classic.small/vehicle/shield/motorway_shield.png" type="png" width="24" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'motorway' and [length] = 3</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#809bc0" placement="line" file="/usr/share/icons/openstreetmap/classic.small/vehicle/shield/motorway_shield2.png" type="png" width="31" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'motorway' and [length] = 4</Filter>
        <MaxScaleDenominator>500000</MaxScaleDenominator>
        <MinScaleDenominator>100</MinScaleDenominator>
!       <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#809bc0" placement="line" file="/usr/share/icons/openstreetmap/classic.small/vehicle/shield/motorway_shield3.png" type="png" width="38" height="17" min_distance="100"/>
      </Rule>
      <Rule>
        <Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
***************
*** 1634,1645 ****
      <Rule>
        <Filter>[oneway] = 'yes' or [oneway] = 'true'</Filter>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/rendering/track/arrow.png" type="png" width="80" height="8" />
      </Rule>
      <Rule>
        <Filter>[oneway] = '-1'</Filter>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/rendering/track/arrow_back.png" type="png" width="80" height="8" />
      </Rule>
   </Style>
 
--- 1634,1645 ----
      <Rule>
        <Filter>[oneway] = 'yes' or [oneway] = 'true'</Filter>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/transport/track/arrow.png" type="png" width="80" height="8" />
      </Rule>
      <Rule>
        <Filter>[oneway] = '-1'</Filter>
        <MaxScaleDenominator>25000</MaxScaleDenominator>
!       <LinePatternSymbolizer file="/usr/share/icons/openstreetmap/classic.small/transport/track/arrow_back.png" type="png" width="80" height="8" />
      </Rule>
   </Style>
 




_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ gpsdrive ] No plugin found for type 'postgis' , Debian Squeeze

hamish-2
Hi,

poti wrote:
> Gpsdrive was working for me in Lenny
> (x86, eeepc), but maps started having
> blank spots.

as in missing tiles?
maybe a tile mis-rendered but got put into the cache anyway? and from
then on you got the broken cached version? or entry without tile?

> This week I upgraded to Squeeze and Gpsdrive
> no longer works with mapnik.
>
> I purged python-mapnik postgresql osm2pgsql
> postgresql-8.4-postgis gpsdrive gpsdrive-data

(probably not needed)

> deleted all the directories associated with their names  that still
> remained, in particular .gpsdrive and directories under
> /usr and /etc.

if installed with apt, you shouldn't have to touch those, and moreover
doing so might break the file accounting system.

if installed from source with 'make install' probably should be put in
/usr/local

note you might have to downgrade the gpsd to lenny's version, not sure.


> I then re-installed, upgrading to postgresql-8.4
> but gpsdrive will not start in mapnik mode.
>
> The following is where I am getting stuck:
>
> Access denied for user 'gast'@'localhost' (using password: YES)
> Creating main window
> Cannot init mapnik. Mapnik support DISABLED: Could not
> create datasource. No plugin found for type 'postgis'
> (encountered during parsing of layer 'leisure')

is the postgis package installed?

> I also get a set of warnings that I could fix by changing
> certain name references in osm.xml as follows:

(please provide unidiffs, i.e. 'diff -u')

> *** ~/oldgpsdrive/.gpsdrive/osm.xml   
> 2011-07-12 01:16:22.000000000 -0400
> --- ~/.gpsdrive/osm.xml    2011-07-13
> 03:31:24.000000000 -0400
> ***************
> *** 99,110 ****
>       <Rule>
>        
> <MaxScaleDenominator>5000</MaxScaleDenominator>
>        
> <Filter>[amenity]='post_box'</Filter>
> !       <PointSymbolizer
> file="/usr/share/icons/openstreetmap/classic.small/service/post_box.png"
> type="png" width="16" height="16" />
>       </Rule>
>       <Rule>

I'm running squeeze as my main OS but am developing for ubuntu 11.04 right
now,
... so stay tuned.


Hamish

_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Loading...