This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from gvsig import geom | |
def main(*args): | |
layer = gvsig.currentLayer() | |
features = layer.features() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gvsig import * | |
import sys | |
import os | |
path_script = os.path.dirname(__file__) | |
use_jar(os.path.join(path_script, "jar", "jOpenDocument-1.3.jar")) | |
from gvsig import geom | |
from java.io import File | |
from org.jopendocument.dom.template import JavaScriptFileTemplate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from gvsig import * | |
from gvsig.libs import gvpy | |
reload(gvpy) | |
import os | |
def main(*args): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
def main(): | |
crs = esriprj2epsg("D:/Working/test/Huimilpan_Circles_copia.shp") | |
print crs | |
def esriprj2epsg(shapeprj_path): | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from org.gvsig.fmap.crs import CRSFactory | |
from org.cresques.cts import ICRSFactory | |
def main(*args): | |
prjcontents="""PROJCS["ED_1950_UTM_Zone_30N",GEOGCS["GCS_European_1950",DATUM["D_European_1950",SPHEROID["International_1924",6378388.0,297.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-3.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
def main(*args): | |
layer = gvsig.currentLayer() | |
store = layer.getFeatureStore() | |
fset0 = store.getFeatureSet() | |
print "Size total: ", fset0.getSize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from gvsig import geom | |
def main(*args): | |
# Creating new layer | |
ft = gvsig.createSchema() | |
ft.append("ID", "INTEGER") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from gvsig import geom | |
def main(*args): | |
# Creating new layer | |
ft = gvsig.createSchema() | |
ft.append("ID", "INTEGER") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
from gvsig import geom | |
from java.awt import Color | |
def main(*args): | |
# Creating new layer | |
ft = gvsig.createSchema() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import gvsig | |
gvsig.uselib.use_plugin("org.gvsig.labeling.app.mainplugin") | |
from gvsig import geom | |
from org.gvsig.labeling.label import GeneralLabelingFactory | |
from org.gvsig.fmap.mapcontext.rendering.legend.styling import IPlacementConstraints | |
from org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling import LabelClassFactory | |
from org.gvsig.symbology import SymbologyLocator |
OlderNewer